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

fix: grid not retrieving resources from the new master network in a network merge #467

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

raoulvdberge
Copy link
Contributor

@raoulvdberge raoulvdberge commented Jan 2, 2024

The grid would only sync resources that were part of the (removed) slave network after a network merge because the storages from the master network just "remain" and don't get removed and re-added.

In 1d4d3ae an initial fix was made to ensure correct behavior for network splits, by making the grid highest-priority and relying on the moved storages re-adding themselves afterwards.

However, for network merges, it would
completely ignore storages that were already part of the new network as those remain and don't get re-added.

If the storages from the new network remain and don't get re-added, we need to notify the grid of these storages somehow (by re-syncing).

This change adds the re-syncing (replay) necessary for network merges. For network splits, it will still re-sync (replay) but won't actually do anything as the network is newly-created and empty at that point.

Fixes #366

…etwork merge

The grid would only sync resources that were part of the (removed) slave network after a network
merge because the storages from the master network just "remain" and don't get removed and re-added.

In 1d4d3ae an initial fix was made to ensure correct behavior for network splits, by making the
grid highest-priority and relying on the moved storages re-adding themselves afterwards.

However, for network merges, it would
completely ignore storages that were already part of the new network as those remain
and don't get re-added.

If the storages from the new network remain and don't get re-added, we need to notify the grid of
these storages somehow (by re-syncing).

This change adds the re-syncing (replay) necessary for network merges.
For network splits, it will still re-sync (replay) but won't actually do anything as the network is
newly-created and empty at that point.
@raoulvdberge raoulvdberge force-pushed the fix/GH-366/grid-merge branch from f0b16d4 to a2b0865 Compare January 2, 2024 01:22
Copy link

sonarqubecloud bot commented Jan 2, 2024

@raoulvdberge raoulvdberge merged commit fc6d121 into develop Jan 2, 2024
6 checks passed
@raoulvdberge raoulvdberge deleted the fix/GH-366/grid-merge branch January 2, 2024 01:32
@raoulvdberge
Copy link
Contributor Author

See #366

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Grid menu doesn't handle network changes
1 participant