Skip to content

IGNITE-27934 Fix flaky GridBinaryAffinityKeySelfTest#testAffinity#12896

Open
zstan wants to merge 1 commit intoapache:masterfrom
zstan:ignite-27934
Open

IGNITE-27934 Fix flaky GridBinaryAffinityKeySelfTest#testAffinity#12896
zstan wants to merge 1 commit intoapache:masterfrom
zstan:ignite-27934

Conversation

@zstan
Copy link
Contributor

@zstan zstan commented Mar 16, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes flakiness in GridBinaryAffinityKeySelfTest#testAffinity by adding an explicit wait intended to ensure topology-related state is updated before running affinity assertions on a newly started node.

Changes:

  • Added GridTestUtils dependency to the test.
  • Introduced a waitForCondition assertion to wait for a minor topology version change before calling checkAffinity(igniteNoCache).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +105 to +108
assertTrue("Failed to wait for minor version change",
GridTestUtils.waitForCondition(() ->
grid(0).context().discovery().topologyVersionEx().minorTopologyVersion() == 1,
5_000));
@zstan zstan force-pushed the ignite-27934 branch 2 times, most recently from c1c0bb9 to c8e0e3d Compare March 17, 2026 05:09
@sonarqubecloud
Copy link

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