-
Notifications
You must be signed in to change notification settings - Fork 508
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
After the cluster expansion completes the slot migration, the total dbsize value of all shard master nodes is greater than the value before the expansion #2715
Comments
I found the same issue in my tests.
feel free to contact me for more test details |
@903174293 @hongleis Thanks for your report. I have missed this issue in the past few days. I want to know:
|
yes,but it cannot be found using get, but can be found using keys*; |
@git-hulk for the duplicated key, it located in both source node and destionation node. when we use the redis get command ,it will go to the destionation node to search. But I connect to the source node(not cluster mode) and use redis scan command to search, I can find the deplicated key. In a word, it did not affect the first migration, but when we migration mulitiple times , i am afraid the depulicated keys which not cleaned may be the dirty values |
@hongleis Got your point, thanks for both of your information. Will take a look at this issue when I get time. |
Search before asking
Version
v2.9.0
Minimal reproduce step
1、kvrocks version:v2.9.0
2、init env:3 shard,One master and one slave,Single Node Specifications:8C16G、disk:500GB
3、After expansion:5 shard,One master and one slave,Single Node Specifications:8C16G、disk:500GB
4、Expansion method:Calling the controller interface
5、Phenomenon:
Before expansion: the total dbsize value of all shard master nodes:12484
After expansion:the total dbsize value of all shard master nodes:12489
What did you expect to see?
The total dbsize of all master nodes is equal before and after expansion
What did you see instead?
Before expansion: the total dbsize value of all shard master nodes:12484
After expansion:the total dbsize value of all shard master nodes:12489
Anything Else?
Migration interface for controllers:
POST /api/v1/namespaces/clusters/{cluster name}/migrate
{
"target": 4,
"slot": 1000,
"slot_only": false
}
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: