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

Units hanging on shard removal #301

Closed
MiaAltieri opened this issue Nov 6, 2023 · 1 comment
Closed

Units hanging on shard removal #301

MiaAltieri opened this issue Nov 6, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@MiaAltieri
Copy link
Contributor

This bug is flakey and may take several times to reproduce

Steps to reproduce

juju deploy ./*charm --config role="config-server" config-server-one -n2
juju deploy ./*charm --config role="shard" shard-one -n2
juju deploy ./*charm --config role="shard" shard-two -n2
juju integrate config-server-one:config-server shard-one:sharding
juju integrate config-server-one:config-server shard-two:sharding
juju remove-relation config-server-one:config-server shard-two:sharding

Then see that the non-leader unit for shard-two is stuck forever draining

Expected behaviour

Shard-two to complete draining when mongos shows it has finished draining

Actual behaviour

Shard-two is shown forever draining (but is not actually draining by the mongos status)

Why this is happening

The leader updates the draining status to finished in the app data but the non-leader units do not get the updated app data

@MiaAltieri MiaAltieri added the bug Something isn't working label Nov 6, 2023
Copy link

github-actions bot commented Nov 6, 2023

@MiaAltieri MiaAltieri mentioned this issue Nov 6, 2023
MiaAltieri added a commit that referenced this issue Nov 6, 2023
## Issue
We have several bugs in the sharding implementation, fix them
#297 
#301 
#302
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant