Nikita Amelchev created IGNITE-29267:
----------------------------------------
Summary: Fix flaky SnapshotCompatibilityTest#testSnapshotRestore
Key: IGNITE-29267
URL: https://issues.apache.org/jira/browse/IGNITE-29267
Project: Ignite
Issue Type: Bug
Reporter: Nikita Amelchev
Assignee: Nikita Amelchev
SnapshotCompatibilityTest#testSnapshotRestore is flaky: a snapshot restore
started right after the cluster activation fails with "Cache group restore
operation was rejected. The cluster should be active."
IgniteCluster#state returns when all nodes have finished the state change
exchange, but the local cluster state stays in transition until
ChangeGlobalStateFinishMessage is processed. SnapshotRestoreProcess#start
checks the transition flag in the caller's thread and rejects the operation.
The transition check can be safely removed from SnapshotRestoreProcess#start:
the cluster state is validated again on the prepare phase, which is ordered
with the finish message by discovery.
Test history:
https://ci2.ignite.apache.org/test/-5934796684669845926?currentProjectId=IgniteTests24Java8
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)