adoroszlai commented on code in PR #8611:
URL: https://github.com/apache/ozone/pull/8611#discussion_r2142243063
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestSnapshotDeletingServiceIntegrationTest.java:
##########
@@ -414,7 +422,7 @@ public void testSnapshotWithFSO() throws Exception {
client.getObjectStore().deleteSnapshot(VOLUME_NAME, BUCKET_NAME_FSO,
"snap2");
-
+ rcSnap2.close();
Review Comment:
Why do we need to close this and `rcSnap3` explicitly?
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestSnapshotDeletingServiceIntegrationTest.java:
##########
@@ -115,6 +115,7 @@ public class TestSnapshotDeletingServiceIntegrationTest {
private static final String BUCKET_NAME_ONE = "bucket1";
private static final String BUCKET_NAME_TWO = "bucket2";
private static final String BUCKET_NAME_FSO = "bucketfso";
+ private static final Stack<UncheckedAutoCloseableSupplier<OmSnapshot>>
RC_SNAPS = new Stack<>();
Review Comment:
- should not be `static`
- prefer `Deque` over `Stack` (which `extends Vector`)
--
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]