Uh oh!
There was an error while loading. Please reload this page.
HDDS-8389. [Snapshot] Added integration test for SnapDiff when OM leader failover happens - #4657
Conversation
1313363 to
116cd7cCompare…der failover happens
smengcl
commented
May 11, 2023
@swamirishi Could you take a look at this? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
smengcl
left a comment
There was a problem hiding this comment.
Thanks @hemantk-12 . Great test additions. Nicely written.
Uh oh!
There was an error while loading. Please reload this page.
| // If job was IN_PROGRESS or DONE state when OM restarted, it should be | ||
| // DONE by this time. | ||
| // If job FAILED during crash (which mostly happens in the test because |
There was a problem hiding this comment.
nit: Do we have a unit test case for the FAILED state?
There was a problem hiding this comment.
No integration test for FAILED state. I added few tests as unit test in PR: https://github.com/apache/ozone/pull/4716/files#diff-11392a9810b911a6b87f9f4440cb5e5342b2a9c112851e7dceafa5103d999e1dR427
Uh oh!
There was an error while loading. Please reload this page.
| }); | ||
| } | ||
| assertEquals(1, snapshotIds.stream().distinct().count()); |
There was a problem hiding this comment.
Is snapshotId assertion enough? I guess we should also check rocks db contents.
There was a problem hiding this comment.
Checking only snapshotId should be enough. Test is to make sure that snapshotId is consistent among all the OM nodes. We don't care about it value.
What do you mean by "check rocks db contents"?
There was a problem hiding this comment.
the list of sst files should be same I believe.
There was a problem hiding this comment.
I don't think that should be tested as part of this test.
Uh oh!
There was an error while loading. Please reload this page.
smengcl
commented
May 18, 2023
There are some conflicts in the test due to HDDS-8645. |
Resolved conflicts and also ran test 100 times to make sure there is no flakiness. It passed all the time (Workflow failed because of timeout) : https://github.com/hemantk-12/ozone/actions/runs/5049594952/jobs/9059656428 |
smengcl
commented
May 23, 2023
Thanks @hemantk-12 for the test addition, and @swamirishi for the review. |
What changes were proposed in this pull request?
snapshotDiffManagerand invalidatesnapshotCacheuponOmSnapshotManager#close.snapDiffExecutorandsstDumpToolExecutorinSnapshotDiffManager#close.What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8389
How was this patch tested?
Ran newly added tests locally and verified they pass.