You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Denis Chudov (Jira)" <ji...@apache.org> on 2024/09/02 16:29:00 UTC
[jira] [Created] (IGNITE-23125) AssertionError: Unexpected primary replica state STOPPED in ItRestartPartitionsCommandTest.testRestartAllPartitions
Denis Chudov created IGNITE-23125:
-------------------------------------
Summary: AssertionError: Unexpected primary replica state STOPPED in ItRestartPartitionsCommandTest.testRestartAllPartitions
Key: IGNITE-23125
URL: https://issues.apache.org/jira/browse/IGNITE-23125
Project: Ignite
Issue Type: Bug
Reporter: Denis Chudov
This assertion happens when ReplicaStateManager get an event notification about primary replica elected, and replica is already stopped. Usually, replica is reserved as primary at the moment when this notification is gotten (and there is clear HB), and cannot be stopped because of assignments change if it is reserved as primary. But it can be stopped because of replica restart (which happens in this test) and this assertion doesn't take into account this reason.
It seems that this assertion is invalid and can be removed.
See ReplicaManager.ReplicaStateManager#onPrimaryElected.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)