-
Notifications
You must be signed in to change notification settings - Fork 473
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
support slot batch for CLUSTERX SETSLOT #1414
Conversation
ac3e381
to
2a340e6
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.
Thanks for your contribution!
You can run ./x.py format
to format the code and let the CI proceed.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry for the wrong close-button click. 🤣 |
This comment was marked as off-topic.
This comment was marked as off-topic.
CI seems still blocked in format. Not sure your clang-format version, but you can try clang-format 12, which is used in CI. https://github.com/llvm/llvm-project/releases/tag/llvmorg-12.0.1 And I can confirm that clang-format 14 on my local has also no issue.
|
5d48663
to
5d4cf69
Compare
Sorry for this problem. My llvm toolchain version is not unified and the You're too kind. Ignore this problem. |
d245e9c
to
fa57cb7
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 generally, it would be better if you add several golang tests to tests/gocase/integration/cluster/cluster_test.go .
6f9eeab
to
ea4d676
Compare
ea4d676
to
032cb82
Compare
if (old_node == myself_ && old_node != to_assign_node) { | ||
// If slot is migrated from this node | ||
if (migrated_slots_.count(slot) > 0) { | ||
svr_->slot_migrator->ClearKeysOfSlot(kDefaultNamespace, slot); |
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.
One ClearKeyOfSlot
call one writebatch of rocksdb.
So this process exists consistency issues if slot
in the middle is down.
I don't know what to do with it yet
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.
There is indeed this problem and we can persist it to Propagate CF.
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.
After we merge this PR, you can ask an issue and I will solve this problem, which I have solved in production environment.
333f37b
to
870afd2
Compare
LGTM, I think we can remove TODO comments, then submit an issue if you feel it's necessary. |
OK |
8aee7e9
to
e8a5bd4
Compare
1. ref(https://godbolt.org/z/5q6zj5W9s) Signed-off-by: clundro <859287553@qq.com>
1. add cluster_slot_batch ref to apache#529 2. add tests for parsedSlotRange 3. move parse func to commandX Signed-off-by: clundro <859287553@qq.com>
e8a5bd4
to
0ad6d85
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
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
Thanks all, merging... |
closes #1412. refer to #529
ref(https://godbolt.org/z/5q6zj5W9s)