Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Snapshot restore integration test fails when restoring form bucket1's snapshot to bucket2.
https://github.com/apache/ozone/blob/HDDS-6517-Snapshot/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestOzoneSnapshotRestore.java#L236
```
[INFO] Running org.apache.hadoop.ozone.om.snapshot.TestOzoneSnapshotRestore
Error: Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 143.221 s <<< FAILURE! - in org.apache.hadoop.ozone.om.snapshot.TestOzoneSnapshotRestore
Error: org.apache.hadoop.ozone.om.snapshot.TestOzoneSnapshotRestore.testRestoreSnapshotDifferentBucket(BucketLayout)[2] Time elapsed: 21.706 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <0> but was: <1>
at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)
at org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:145)
at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:527)
at org.apache.hadoop.ozone.om.snapshot.TestOzoneSnapshotRestore.keyCopy(TestOzoneSnapshotRestore.java:188)
at org.apache.hadoop.ozone.om.snapshot.TestOzoneSnapshotRestore.testRestoreSnapshotDifferentBucket(TestOzoneSnapshotRestore.java:266)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
```