Skip to content

Conversation

@dumbbell
Copy link
Collaborator

Why

When node A becomes the leader, it still takes a few exchanges with followers to allow cluster changes again.

Concurrently, the testcase blocks traffic between A and other nodes to simulate a network partition. If this happens after A becomes the leader but before cluster changes are permitted again, the testcase will never succeed and will eventually abort with:

Case: cluster_minority_SUITE:remove_node_when_seed_node_is_leader
Reason: {error,
            {{awaitMatch,
                 [{module,cluster_minority_SUITE},
                  {expression, "..."},
                  {pattern,"ok"},
                  {value,
                      {error,69,<<"Error:\ncluster_change_not_permitted">>}}]},

How

Before blocking traffic, we wait for cluster changes to be permitted again on node A.

…ader`

[Why]
When node A becomes the leader, it still takes a few exchanges with
followers to allow cluster changes again.

Concurrently, the testcase blocks traffic between A and other nodes to
simulate a network partition. If this happens after A becomes the leader
but before cluster changes are permitted again, the testcase will never
succeed and will eventually abort with:

    Case: cluster_minority_SUITE:remove_node_when_seed_node_is_leader
    Reason: {error,
                {{awaitMatch,
                     [{module,cluster_minority_SUITE},
                      {expression, "..."},
                      {pattern,"ok"},
                      {value,
                          {error,69,<<"Error:\ncluster_change_not_permitted">>}}]},

[How]
Before blocking traffic, we wait for cluster changes to be permitted
again on node A.
@dumbbell dumbbell requested a review from mkuratczyk June 27, 2025 18:13
@dumbbell dumbbell self-assigned this Jun 27, 2025
@dumbbell dumbbell marked this pull request as ready for review June 29, 2025 21:35
@dumbbell dumbbell merged commit cfcd203 into main Jun 29, 2025
834 of 839 checks passed
@dumbbell dumbbell deleted the fix-race-in-cluster_minority_SUITE branch June 29, 2025 21:35
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