[ 
https://issues.apache.org/jira/browse/HDDS-7861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hemant Kumar updated HDDS-7861:
-------------------------------
    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)
```

  was:There is an issue while running a UT that included a snapdiff call, The 
problem was that it included 2 consecutive createSnapshot calls , The first one 
created a checkpoint however the second didn’t and gave an error during 
snapshot read (as checkpoint hadn't been created). although it didn’t give an 
error during snapshot create and returned a response, It looks like the 
checkpoint creation is happening async and not blocking call. One more 
observation is that this occurs only when ratisEnabled set to true . 


> [Snapshot] Flaky snapshot restore integration test.
> ---------------------------------------------------
>
>                 Key: HDDS-7861
>                 URL: https://issues.apache.org/jira/browse/HDDS-7861
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Hemant Kumar
>            Assignee: Hemant Kumar
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: HDDS-6517-Snapshot
>
>
> 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)
> ```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to