Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ private void check(String node1Name, String node2Name) throws Exception {

final Ignite node2 = "client".equals(node2Name) ? startClientGrid(node2Name) : startGrid(node2Name);

awaitPartitionMapExchange();

@chesnokoff chesnokoff Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Test started server2 and immediately executed CQ with an initial scan query. At this moment partition map exchange could still be in progress and the initial scan sometimes did not see all existing entries.

In failed run the initial query returned only 2 entries instead of 5. Then all update events arrived, but the latch was still not fully counted down and the test failed with AssertionError: 4

The fix is to wait for pme after starting server2 and before executing the continuous query


final ContinuousQuery<Integer, MarshallerCheckingEntry> qry = new ContinuousQuery<>();

ScanQuery<Integer, MarshallerCheckingEntry> scanQry = new ScanQuery<>(new IgniteBiPredicate<Integer, MarshallerCheckingEntry>() {
Expand Down