[
https://issues.apache.org/jira/browse/HDDS-8510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17717913#comment-17717913
]
Attila Doroszlai commented on HDDS-8510:
----------------------------------------
Running only {{testSnapshotDiff}} takes ~16.5 minutes locally.
{code}
$ 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
{code}
The problem is that HDDS-8322 changed the default wait time in
SnapshotDiffManager from 1 second to 1 minute.
{code}
+ public static final long OZONE_OM_SNAPSHOT_DIFF_JOB_DEFAULT_WAIT_TIME_DEFAULT
+ = TimeUnit.MINUTES.toMillis(1);
...
- private static final Duration DEFAULT_WAIT_TIME = Duration.ofSeconds(1);
...
+ this.defaultWaitTime = ozoneManager.getConfiguration().getTimeDuration(
+ OZONE_OM_SNAPSHOT_DIFF_JOB_DEFAULT_WAIT_TIME,
+ OZONE_OM_SNAPSHOT_DIFF_JOB_DEFAULT_WAIT_TIME_DEFAULT,
+ TimeUnit.MILLISECONDS
+ );
{code}
> Intermittent timeout in TestRootedOzoneFileSystem#testSnapshotDiff
> ------------------------------------------------------------------
>
> Key: HDDS-8510
> URL: https://issues.apache.org/jira/browse/HDDS-8510
> Project: Apache Ozone
> Issue Type: Sub-task
> Affects Versions: 1.4.0
> Reporter: Attila Doroszlai
> Priority: Blocker
>
> {code:title=https://github.com/adoroszlai/ozone-build-results/blob/master/2023/04/28/21934/it-filesystem/output.log}
> [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]
> {code}
> {code:title=https://github.com/adoroszlai/ozone-build-results/blob/master/2023/04/28/21934/it-filesystem/2023-04-28T18-29-56_535-jvmRun1.dump}
> "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)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]