Commit 0e10b1d
cluster_minority_SUITE: Fix race in
[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.
(cherry picked from commit 7166357)
# Conflicts:
# deps/rabbit/test/cluster_minority_SUITE.erlremove_node_when_seed_node_is_leader
1 parent cd705d6 commit 0e10b1d
1 file changed
+28
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
314 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
315 | 343 | | |
316 | 344 | | |
317 | 345 | | |
| |||
0 commit comments