-
Notifications
You must be signed in to change notification settings - Fork 30
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
Keep assignments got from shard manager in updateAssignments #135
Conversation
The assignments from Shard Manager contain the full map of assignments, so we can simply replace it. |
Does it mean that previous shardAssigments could be discarded altogether? |
Yeah, I think I added the |
You probably mean that a non-empty map is unexpected, as sharding-client will refresh assignments during startup. And the first thing it will receive should be shard-manager response with its current state. |
|
Agree. What I am trying to convey is that the code |
Ah, you are right, it's doing the opposite 🤔 |
Thanks for the catch! |
It seems that here client will throw away assignments got from shard manager if there are any assignments already. Not sure if that was intended.