You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Ivan Andika (Jira)" <ji...@apache.org> on 2026/01/22 10:04:00 UTC
[jira] [Commented] (HDDS-11353) Intermittent assertion failure in TestOzoneManagerHAWithStoppedNodes#testOMHAMetrics
[ https://issues.apache.org/jira/browse/HDDS-11353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18053501#comment-18053501 ]
Ivan Andika commented on HDDS-11353:
------------------------------------
The root cause should be because old leader will trigger StateMachine#notifyLeaderChanged only when it receives AppendEntries from the leader. Therefore, instead of relying on the AppendEntries from heartbeats, we can simply do some writes so that the old leader will be aware of the new leader.
> Intermittent assertion failure in TestOzoneManagerHAWithStoppedNodes#testOMHAMetrics
> ------------------------------------------------------------------------------------
>
> Key: HDDS-11353
> URL: https://issues.apache.org/jira/browse/HDDS-11353
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Ethan Rose
> Assignee: Ivan Andika
> Priority: Major
> Attachments: it-om.zip
>
>
> Seen [here|https://github.com/errose28/ozone/actions/runs/10478142479/job/29021386554]
> {code}
> -------------------------------------------------------------------------------
> Test set: org.apache.hadoop.ozone.om.TestOzoneManagerHAWithStoppedNodes
> -------------------------------------------------------------------------------
> Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 214.836 s <<< FAILURE! - in org.apache.hadoop.ozone.om.TestOzoneManagerHAWithStoppedNodes
> org.apache.hadoop.ozone.om.TestOzoneManagerHAWithStoppedNodes.testOMHAMetrics Time elapsed: 7.073 s <<< FAILURE!
> org.opentest4j.AssertionFailedError: expected: <0> but was: <1>
> at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
> at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
> at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
> at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
> at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:145)
> at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:531)
> at org.apache.hadoop.ozone.om.TestOzoneManagerHAWithStoppedNodes.testOMHAMetrics(TestOzoneManagerHAWithStoppedNodes.java:517)
> at java.base/java.lang.reflect.Method.invoke(Method.java:569)
> at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
> at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org