adoroszlai commented on code in PR #10917:
URL: https://github.com/apache/ozone/pull/10917#discussion_r3703676492
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOMRatisSnapshots.java:
##########
@@ -597,6 +607,134 @@ public void
testInstallSnapshotFromLeaderFailedDownloadCleanupSucceeds()
followerOM.getOmSnapshotProvider().setInjector(null);
}
+ /**
+ * Regression test for bootstrap when leader logs are purged: checkpoint
install
+ * must proceed during {@code BOOTSTRAPPING} with the default v2 checkpoint
API
+ * and complete successfully.
+ */
+ @Test
+ public void testBootstrapInstallSnapshotDuringBootstrapping() throws
Exception {
+ IOUtils.closeQuietly(client);
+ if (cluster != null) {
+ cluster.shutdown();
+ }
Review Comment:
Thanks.
Before:
```
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 162.9 s --
in org.apache.hadoop.ozone.om.TestOMRatisSnapshots
```
After:
```
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 213.8 s --
in org.apache.hadoop.ozone.om.TestOMRatisSnapshots
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]