adoroszlai opened a new pull request, #4632:
URL: https://github.com/apache/ozone/pull/4632
## What changes were proposed in this pull request?
Frequent timeout of `TestRootedOzoneFileSystem` (fork is killed after 20
minutes) is caused by increased snapshot diff wait time (1 minute instead of 1
second, changed in #4511).
```
[INFO] Running org.apache.hadoop.fs.ozone.TestRootedOzoneFileSystem
...
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) on
project ozone-integration-test: There was a timeout in the fork -> [Help 1]
```
Thread dump excerpt:
```
"Time-limited test"
java.lang.Thread.State: TIMED_WAITING
at java.lang.Thread.sleep(Native Method)
at
org.apache.hadoop.fs.ozone.BasicRootedOzoneClientAdapterImpl.getSnapshotDiffReportOnceComplete(BasicRootedOzoneClientAdapterImpl.java:1351)
at
org.apache.hadoop.fs.ozone.BasicRootedOzoneClientAdapterImpl.getSnapshotDiffReport(BasicRootedOzoneClientAdapterImpl.java:1318)
at
org.apache.hadoop.fs.ozone.BasicRootedOzoneFileSystem.getSnapshotDiffReport(BasicRootedOzoneFileSystem.java:1515)
at
org.apache.hadoop.fs.ozone.TestRootedOzoneFileSystem.testSnapshotDiff(TestRootedOzoneFileSystem.java:2478)
```
Locally running `TestRootedOzoneFileSystem.testSnapshotDiff` only:
```
$ mvn -am -pl :ozone-integration-test
-Dtest='TestRootedOzoneFileSystem#testSnapshotDiff' clean test
...
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 985.776 s -
in org.apache.hadoop.fs.ozone.TestRootedOzoneFileSystem
```
This PR:
* fixes timeout by setting 1 second snapshot diff wait time for all
integration tests, not just `TestOmSnapshot`
* changes wait loop to allow exit before first sleep
https://issues.apache.org/jira/browse/HDDS-8510
## How was this patch tested?
```
$ mvn -am -pl :ozone-integration-test
-Dtest='TestRootedOzoneFileSystem#testSnapshotDiff' clean test
...
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 100.248 s -
in org.apache.hadoop.fs.ozone.TestRootedOzoneFileSystem
```
CI:
https://github.com/adoroszlai/hadoop-ozone/actions/runs/4838984327
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]