You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "swamirishi (via GitHub)" <gi...@apache.org> on 2023/07/19 21:12:05 UTC
[GitHub] [ozone] swamirishi opened a new pull request, #5091: HDDS-9029. Intermittent failure in TestOMSnapshotDAG#testDAGReconstruction
swamirishi opened a new pull request, #5091:
URL: https://github.com/apache/ozone/pull/5091
## What changes were proposed in this pull request?
Fix flaky test by invalidating the cache before closing the ozone manager.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9029
## How was this patch tested?
Existing integration test & 10 * 10 repeated run of the test
https://github.com/swamirishi/ozone/actions/runs/5603747725/jobs/10250777251
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] swamirishi closed pull request #5091: HDDS-9029. Intermittent failure in TestOMSnapshotDAG#testDAGReconstruction
Posted by "swamirishi (via GitHub)" <gi...@apache.org>.
swamirishi closed pull request #5091: HDDS-9029. Intermittent failure in TestOMSnapshotDAG#testDAGReconstruction
URL: https://github.com/apache/ozone/pull/5091
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] hemantk-12 commented on a diff in pull request #5091: HDDS-9029. Intermittent failure in TestOMSnapshotDAG#testDAGReconstruction
Posted by "hemantk-12 (via GitHub)" <gi...@apache.org>.
hemantk-12 commented on code in PR #5091:
URL: https://github.com/apache/ozone/pull/5091#discussion_r1268764752
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/freon/TestOMSnapshotDAG.java:
##########
@@ -284,6 +284,7 @@ public void testDAGReconstruction()
snapDB1.close();
snapDB2.close();
snapDB3.close();
+ ozoneManager.getOmSnapshotManager().getSnapshotCache().invalidateAll();
Review Comment:
Why do you need to explicitly invalidate the cache? OM stop should do that for you when you restart the cluster in next line.
[OzoneManager#stop()](https://github.com/apache/ozone/blob/e057eed29fe320685114670ceb7620d9367e0baa/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java#L2194) calls [omSnapshotManager.close()](https://github.com/apache/ozone/blob/e057eed29fe320685114670ceb7620d9367e0baa/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java#L2235) which [invalidates the cache](https://github.com/apache/ozone/blob/c4d9456120868aedf0635aac6e6d82b92a0bbe37/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmSnapshotManager.java#L961).
cluster.restartOzoneManager() -> ozoneManager.stop() -> omSnapshotManager.close() -> snapshotCache.invalidateAll().
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org