mladjan-gadzic commented on code in PR #4949:
URL: https://github.com/apache/ozone/pull/4949#discussion_r1243960577
##########
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);
Review Comment:
I did exacly how you suggested. However, it did not work. Please have a look
at
[CI](https://github.com/mladjan-gadzic/ozone/actions/runs/5389078718/jobs/9782557417#step:4:5698)
and
[commit](https://github.com/mladjan-gadzic/ozone/commit/7db461503c6bb17a787bd0f246858d3489b25331).
--
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]