Skip to content

Conversation

@dumbbell
Copy link
Collaborator

@dumbbell dumbbell commented Jan 4, 2023

If a virgin node starts as clustered (thanks to peer discovery), we need to mark feature flags already enabled remotely as enabled locally too.

We can't do a regular cluster sync because remote nodes may have required feature flags which are disabled locally on the virgin node. Therefore, those nodes don't have the migration code for these feature flags anymore and the feature flags' state can't be changed.

By doing this special sync, we allow a clustered virgin node to join a cluster with remote nodes having required feature flags.

@dumbbell dumbbell force-pushed the enable-remote-ff-on-virgin-node branch from bad9b97 to bc8b53f Compare January 5, 2023 07:03
@dumbbell dumbbell self-assigned this Jan 5, 2023
@dumbbell dumbbell force-pushed the enable-remote-ff-on-virgin-node branch from bc8b53f to a36a3aa Compare January 5, 2023 07:53
@dumbbell dumbbell marked this pull request as ready for review January 5, 2023 08:57
@dumbbell dumbbell marked this pull request as draft January 5, 2023 09:39
@dumbbell dumbbell force-pushed the enable-remote-ff-on-virgin-node branch from a36a3aa to 854cbb4 Compare January 5, 2023 14:02
@dumbbell dumbbell marked this pull request as ready for review January 5, 2023 14:19
@dumbbell dumbbell force-pushed the enable-remote-ff-on-virgin-node branch from 854cbb4 to f171843 Compare January 5, 2023 14:22
…n node

If a virgin node starts as clustered (thanks to peer discovery), we need
to mark feature flags already enabled remotely as enabled locally too.

We can't do a regular cluster sync because remote nodes may have
required feature flags which are disabled locally on the virgin node.
Therefore, those nodes don't have the migration code for these feature
flags anymore and the feature flags' state can't be changed.

By doing this special sync, we allow a clustered virgin node to join a
cluster with remote nodes having required feature flags.
@dumbbell dumbbell force-pushed the enable-remote-ff-on-virgin-node branch from f171843 to 2f301b4 Compare January 5, 2023 14:54
@dumbbell dumbbell merged commit c239399 into main Jan 5, 2023
@dumbbell dumbbell changed the title rabbit_feature_flags: Sync enabled feature flags differently on virgin node Feature flags: Sync enabled feature flags differently on virgin node Jan 5, 2023
@dumbbell dumbbell deleted the enable-remote-ff-on-virgin-node branch January 9, 2023 21:05
@dumbbell dumbbell added this to the 3.12.0 milestone Jan 9, 2023
dumbbell added a commit that referenced this pull request Jan 9, 2023
Feature flags: Sync enabled feature flags differently on virgin node (backport #6791)
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.

2 participants