Skip to content
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

Extend SlotLoader to work with multiple slot ranges #894

Merged
merged 1 commit into from Mar 23, 2020

Conversation

rahul342
Copy link
Contributor

@rahul342 rahul342 commented Mar 22, 2020

With multiple resharding, different slot ranges can be assigned to a
node.
e.g.
Screenshot 2020-03-22 02 23 01

Current logic only preassigns the last slot range, causing errors & retries for unassigned slots.
This commit makes it work with multiple slot ranges and assigning all slots.

I tested this locally, but couldn't figure how to add tests for this scenario.
edit: Added partial tests.

@byroot
Copy link
Collaborator

byroot commented Mar 22, 2020

Code looks sane to me. I'll merge once you add the test @supercaracal required.

With multiple resharding, different slot ranges can be assigned to a
node. Current logic only pre assigns the last slot range, causing errors
& retries for unassigned slots.
This commit makes it work with multiple slot ranges and assigning all
slots.
@rahul342
Copy link
Contributor Author

@byroot done

@rahul342
Copy link
Contributor Author

cc @cliu55

@byroot byroot merged commit 7127f3b into redis:master Mar 23, 2020
@byroot
Copy link
Collaborator

byroot commented Mar 23, 2020

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants