ozone icon indicating copy to clipboard operation
ozone copied to clipboard

HDDS-10366. Add new testPrepare() in TestOzoneManagerPrepare

Open aryangupta1998 opened this issue 1 year ago • 1 comments

What changes were proposed in this pull request?

Adding new testPrepare() in TestOzoneManagerPrepare which has snapshot interval set to 1, when upgrade prepare request comes, triggers force snapshot from ratis and waits for complete, once force snapshot is completed, then submit the upgrade prepare for the remaining task to mark the upgrade prepare complete. We then verify that prepare index should always be less than the current transaction index.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-10366

How was this patch tested?

Tested Manually.

aryangupta1998 avatar Feb 21 '24 06:02 aryangupta1998

@aryangupta1998 TestOzoneManagerHA subclasses historically had several intermittent failures. Please run them in flaky-test-check workflow to ensure reduced snapshot threshold does not cause regressions.

Also, please compare test run time before/after the change.

adoroszlai avatar Feb 21 '24 07:02 adoroszlai