-
Notifications
You must be signed in to change notification settings - Fork 328
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
chore: impl KvBackend for MetaPeerClient #3076
Conversation
e9d9f57
to
8f1a948
Compare
8f1a948
to
f41ad80
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3076 +/- ##
==========================================
- Coverage 85.58% 85.00% -0.59%
==========================================
Files 805 818 +13
Lines 130658 133901 +3243
==========================================
+ Hits 111822 113820 +1998
- Misses 18836 20081 +1245 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM. Thank u, @lyang24
f41ad80
to
0c24374
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
This pr intended to implement KvBackend trait for MetaPeerClient.
Please explain IN DETAIL what the changes are in this PR and why they are needed:
This pr fixes the todo lefted in #3046
This pr does a few things:
KvBackend
trait impl.TxnService
forMetaPeerClient
as prerequisite forKvBackend
trait.KvBackend
trait's default get impl.MetaPeerClient
does not support mutable method (i.e. put, delete) it will return unsupported error when these methods get called. Please note the status code of the unsupported error is actually 1003 internal instead of 1001 as documented in the public api.Checklist
Refer to a related PR or issue link (optional)