mladjan-gadzic commented on code in PR #4949:
URL: https://github.com/apache/ozone/pull/4949#discussion_r1237764147
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmSnapshot.java:
##########
@@ -413,7 +412,22 @@ public void checkKey() throws Exception {
String snapshotKeyPrefix = createSnapshot(volumeName, bucketName);
- ozoneBucket.deleteKey(key1);
+
+ GenericTestUtils.waitFor(() -> {
+ try {
+ int keyCount = keyCount(ozoneBucket, key1);
+ if (keyCount == 0) {
+ return true;
+ }
+
+ ozoneBucket.deleteKey(key1);
+
+ return false;
+ } catch (Exception e) {
+ return false;
+ }
+ }, 1000, 10000);
+
try {
ozoneBucket.deleteKey(dir1);
Review Comment:
This is where the issue was. Dir could not be deleted because it was not
empty.
--
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]