Skip to content

HDDS-9132. [snapshot] Add unordered snapshot deletion unit-testcase#5194

Merged
sadanand48 merged 2 commits intoapache:masterfrom
jyotirmoy-gh:HDDS-9132
Aug 21, 2023
Merged

HDDS-9132. [snapshot] Add unordered snapshot deletion unit-testcase#5194
sadanand48 merged 2 commits intoapache:masterfrom
jyotirmoy-gh:HDDS-9132

Conversation

@jyotirmoy-gh
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Add unordered snapshot deletion unit-testcase - TestOzoneSnapshotRestore#testUnorderedDeletion

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-9132

How was this patch tested?

Testcase file - hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestOzoneSnapshotRestore.java

mvn -l testlog.out -Dtest=TestOzoneSnapshotRestore test
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.hadoop.ozone.om.snapshot.TestOzoneSnapshotRestore
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 213.91 s - in org.apache.hadoop.ozone.om.snapshot.TestOzoneSnapshotRestore
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0

@jyotirmoy-gh
Copy link
Copy Markdown
Contributor Author

Please review - @nilotpalnandi @smengcl @sadanand48

@smengcl smengcl added the snapshot https://issues.apache.org/jira/browse/HDDS-6517 label Aug 17, 2023
@smengcl
Copy link
Copy Markdown
Contributor

smengcl commented Aug 17, 2023

Thanks @jyotirmoy-gh for the test case.

Can you address the findbugs warning:

https://github.com/apache/ozone/actions/runs/5889493468/job/15992065863?pr=5194#step:6:2365

M D ST: Write to static field org.apache.hadoop.ozone.om.snapshot.TestOzoneSnapshotRestore.counter from instance method org.apache.hadoop.ozone.om.snapshot.TestOzoneSnapshotRestore.init()  At TestOzoneSnapshotRestore.java:[line 129]

Copy link
Copy Markdown
Contributor

@sadanand48 sadanand48 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jyotirmoy-gh , looks good overall.

@jyotirmoy-gh
Copy link
Copy Markdown
Contributor Author

Thanks @jyotirmoy-gh for the test case.

Can you address the findbugs warning:

https://github.com/apache/ozone/actions/runs/5889493468/job/15992065863?pr=5194#step:6:2365

M D ST: Write to static field org.apache.hadoop.ozone.om.snapshot.TestOzoneSnapshotRestore.counter from instance method org.apache.hadoop.ozone.om.snapshot.TestOzoneSnapshotRestore.init()  At TestOzoneSnapshotRestore.java:[line 129]

Made some changes for above fix. Please review - @smengcl

@sadanand48 sadanand48 merged commit 5e52dfe into apache:master Aug 21, 2023
@sadanand48
Copy link
Copy Markdown
Contributor

Thanks @jyotirmoy-gh for the test , @smengcl for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

snapshot https://issues.apache.org/jira/browse/HDDS-6517

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants