Flaky ClusterRoleInfoRoleLeaderCaseTests.RoleLeaderChanged_for_driver_then_Driver_keeps_distinct_entries under full-suite load #590

Closed
opened 2026-10-08 00:17:12 -04:00 by dohertj2 · 1 comment
Owner

ClusterRoleInfoRoleLeaderCaseTests.RoleLeaderChanged_for_driver_then_Driver_keeps_distinct_entries times out (~32 s) in full-solution dotnet test runs — seen on master 04b65632 (2026-10-08) and again on 390c8269. The Cluster.Tests project alone passes (244/244), so it only shows under full-suite load.

  • Reproduce under CPU contention (loop the project, trx), identify what the test waits on (real Akka cluster formation? a fixed AwaitAssert window?), fix deterministically without simply raising timeouts.
`ClusterRoleInfoRoleLeaderCaseTests.RoleLeaderChanged_for_driver_then_Driver_keeps_distinct_entries` times out (~32 s) in full-solution `dotnet test` runs — seen on master `04b65632` (2026-10-08) and again on `390c8269`. The Cluster.Tests project alone passes (244/244), so it only shows under full-suite load. - [ ] Reproduce under CPU contention (loop the project, trx), identify what the test waits on (real Akka cluster formation? a fixed AwaitAssert window?), fix deterministically without simply raising timeouts.
Author
Owner

Fixed a production race: ClusterRoleInfo resolved the RoleLeaderChanged address via the asynchronously-published Cluster.State.Members and stored null on a miss, permanently. It now stores the event's address. Deterministic unit test added; 4/10 loaded before, 20/20 after. (merge 15dd7537 on master, pushed 2026-10-08)

Fixed a production race: ClusterRoleInfo resolved the RoleLeaderChanged address via the asynchronously-published Cluster.State.Members and stored null on a miss, permanently. It now stores the event's address. Deterministic unit test added; 4/10 loaded before, 20/20 after. (merge `15dd7537` on master, pushed 2026-10-08)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#590