[
https://issues.apache.org/jira/browse/HDDS-16598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-16598:
----------------------------------
Labels: pull-request-available (was: )
> Intermittent failure in TestContainerStateMachine#testRatisSnapshotRetention
> ----------------------------------------------------------------------------
>
> Key: HDDS-16598
> URL: https://issues.apache.org/jira/browse/HDDS-16598
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Shuo Huang
> Assignee: Shuo Huang
> Priority: Major
> Labels: pull-request-available
>
> TestContainerStateMachine#testRatisSnapshotRetention intermittently fails
> because it expects no snapshot before writing keys:
> expected: <null>
> but was: <SingleFileSnapshotInfo(t:1, i:0):[.../snapshot.1_0]>
> The test sets HDDS_RATIS_SNAPSHOT_THRESHOLD_KEY to 1. After leader election,
> the initial Raft entry at index 0 can asynchronously trigger snapshot.1_0,
> racing with the assertion.
> Instead of assuming an empty initial state, record the last applied index
> before each write batch, wait for a newer snapshot, then verify the retained
> snapshot count.
> Recent failure:
> https://github.com/apache/ozone/actions/runs/35998440323/job/107633673581
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]