[
https://issues.apache.org/jira/browse/IGNITE-29371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mikhail Petrov reassigned IGNITE-29371:
---------------------------------------
Assignee: Mikhail Petrov
> Fix flaky PartitionsExchangeAwareTest
> -------------------------------------
>
> Key: IGNITE-29371
> URL: https://issues.apache.org/jira/browse/IGNITE-29371
> Project: Ignite
> Issue Type: Test
> Reporter: Mikhail Petrov
> Assignee: Mikhail Petrov
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> PartitionsExchangeAwareTest is flaky.
> See for more details -
> https://ci2.ignite.apache.org/project.html?projectId=IgniteTests24Java8&testNameId=-7417328023583142774&tab=testDetails
> Root cause:
> 1. The test starts node 2, and ig0 (coordinator) and ig1 begin PME 3.0. The
> test's hooks stop both in onInitBeforeTopologyLock.
> 2. The test releases both at once. ig1 sends its
> GridDhtPartitionsSingleMessage to ig0.
> 3. On a slow run, that message reaches ig0 before ig0 leaves init() →
> distributedExchange(), so ig0 already has all the answers.
> 4. At GridDhtPartitionsExchangeFuture.java:1698 the coordinator then calls
> onAllReceived() inline, inside init().
> 5. That call completes the exchange, and onDone runs
> onDoneBeforeTopologyUnlock on the exchange-worker thread.
> onInitAfterTopologyLock has not been called yet, because init() calls it only
> after distributedExchange() returns.
> 6. The test's onDoneBeforeTopologyUnlock hook blocks on a latch the test
> releases much later, so init() never reaches onInitAfterTopologyLock on ig0.
> 7. initAfterLockReachedLatch stays at 1 of 2, and line 222 times out.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)