ozone
ozone copied to clipboard
HDDS-10366. Add new testPrepare() in TestOzoneManagerPrepare
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 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.