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

flakey relation broken for shards on sharding interface #297

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

flakey relation broken for shards on sharding interface #297

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

Comments

@MiaAltieri
Copy link
Contributor

Steps to reproduce

Run tox -e sharding-integration, the flakey behavior may reveal itself or you can run again

Expected behavior

Removal to run seemlessly

Actual behavior

stop hook fails

Why it is failing

Deferred relation-broken events no longer have access to remote-app data during after they have been defered. On the first time they have been deferred there is no issue. So when the event is defered:

    mongos_hosts = event.relation.data[event.relation.app].get(HOSTS_KEY, None)`

gives the error

KeyError: 'Cannot index relation data with "None". Are you trying to access remote app data during a relation-broken event? This is not allowed.'

Versions

Juju CLI: 3.1.6

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

github-actions bot commented Nov 3, 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