Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-6517 Snapshot support for Ozone
  3. HDDS-7861

[Snapshot] Flaky snapshot restore integration test.

    XMLWordPrintableJSON

Details

    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)
      ```

      Attachments

        Issue Links

          Activity

            People

              hemantk Hemant Kumar
              hemantk Hemant Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: