-
Couldn't load subscription status.
- Fork 285
add txn based cache for partition metadata read #22658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #16438
What this PR does / why we need it:
add txn based cache for partition metadata read
PR Type
Enhancement
Description
Add transaction-based cache for partition metadata reads
Implement Set/Get/Delete cache methods in TxnOperator interface
Cache partition metadata using tableID as key during transactions
Invalidate cache on partition metadata modifications
Update all test mocks and implementations with new cache methods
Diagram Walkthrough
File Walkthrough
5 files
Add cache methods to TxnOperator interfaceAdd sync.Map cache field to txnOperatorImplement Set/Get/Delete cache operationsIntegrate transaction cache for metadataAdd cache method stubs to StorageTxnOperator6 files
Add unit tests for cache operationsImplement cache methods in test mockAdd cache method mocks to MockTxnOperatorImplement cache methods in test operatorImplement cache methods in test operatorImplement cache methods in test operator