[ https://issues.apache.org/jira/browse/HDFS-17102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17765362#comment-17765362 ]
ASF GitHub Bot commented on HDFS-17102: --------------------------------------- hadoop-yetus commented on PR #6072: URL: https://github.com/apache/hadoop/pull/6072#issuecomment-1720151244 :broken_heart: **-1 overall** | Vote | Subsystem | Runtime | Logfile | Comment | |:----:|----------:|--------:|:--------:|:-------:| | +0 :ok: | reexec | 0m 38s | | Docker mode activated. | |||| _ Prechecks _ | | +1 :green_heart: | dupname | 0m 0s | | No case conflicting files found. | | +0 :ok: | codespell | 0m 1s | | codespell was not available. | | +0 :ok: | detsecrets | 0m 1s | | detect-secrets was not available. | | +1 :green_heart: | @author | 0m 0s | | The patch does not contain any @author tags. | | +1 :green_heart: | test4tests | 0m 0s | | The patch appears to include 1 new or modified test files. | |||| _ trunk Compile Tests _ | | +1 :green_heart: | mvninstall | 43m 37s | | trunk passed | | +1 :green_heart: | compile | 1m 20s | | trunk passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04 | | +1 :green_heart: | compile | 1m 14s | | trunk passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05 | | +1 :green_heart: | checkstyle | 1m 11s | | trunk passed | | +1 :green_heart: | mvnsite | 1m 23s | | trunk passed | | +1 :green_heart: | javadoc | 1m 8s | | trunk passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04 | | +1 :green_heart: | javadoc | 1m 37s | | trunk passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05 | | +1 :green_heart: | spotbugs | 3m 11s | | trunk passed | | +1 :green_heart: | shadedclient | 34m 47s | | branch has no errors when building and testing our client artifacts. | |||| _ Patch Compile Tests _ | | +1 :green_heart: | mvninstall | 1m 7s | | the patch passed | | +1 :green_heart: | compile | 1m 9s | | the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04 | | +1 :green_heart: | javac | 1m 9s | | the patch passed | | +1 :green_heart: | compile | 1m 3s | | the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05 | | +1 :green_heart: | javac | 1m 3s | | the patch passed | | +1 :green_heart: | blanks | 0m 0s | | The patch has no blanks issues. | | +1 :green_heart: | checkstyle | 0m 58s | | the patch passed | | +1 :green_heart: | mvnsite | 1m 11s | | the patch passed | | +1 :green_heart: | javadoc | 0m 53s | | the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04 | | +1 :green_heart: | javadoc | 1m 30s | | the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05 | | +1 :green_heart: | spotbugs | 3m 6s | | the patch passed | | +1 :green_heart: | shadedclient | 34m 49s | | patch has no errors when building and testing our client artifacts. | |||| _ Other Tests _ | | -1 :x: | unit | 120m 7s | [/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6072/1/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt) | hadoop-hdfs in the patch passed. | | +1 :green_heart: | asflicense | 0m 42s | | The patch does not generate ASF License warnings. | | | | 257m 42s | | | | Reason | Tests | |-------:|:------| | Failed junit tests | hadoop.hdfs.TestMiniDFSCluster | | | hadoop.hdfs.TestDFSStripedOutputStreamWithFailureWithRandomECPolicy | | | hadoop.hdfs.TestModTime | | | hadoop.hdfs.TestParallelShortCircuitLegacyRead | | | hadoop.hdfs.TestDecommissionWithStripedBackoffMonitor | | | hadoop.hdfs.TestSetrepIncreasing | | | hadoop.hdfs.TestFileChecksum | | | hadoop.hdfs.TestRollingUpgrade | | | hadoop.hdfs.TestClientProtocolForPipelineRecovery | | | hadoop.hdfs.TestErasureCodingMultipleRacks | | | hadoop.hdfs.TestDistributedFileSystem | | | hadoop.hdfs.TestReadStripedFileWithDecoding | | | hadoop.hdfs.client.impl.TestBlockReaderLocal | | Subsystem | Report/Notes | |----------:|:-------------| | Docker | ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6072/1/artifact/out/Dockerfile | | GITHUB PR | https://github.com/apache/hadoop/pull/6072 | | Optional Tests | dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets | | uname | Linux 630ff74880d1 4.15.0-212-generic #223-Ubuntu SMP Tue May 23 13:09:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux | | Build tool | maven | | Personality | dev-support/bin/hadoop.sh | | git revision | trunk / f706cc5bf8f61cba1509b8a3f45eaef86eb39748 | | Default Java | Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05 | | Multi-JDK versions | /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05 | | Test Results | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6072/1/testReport/ | | Max. process+thread count | 3340 (vs. ulimit of 5500) | | modules | C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs | | Console output | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6072/1/console | | versions | git=2.25.1 maven=3.6.3 spotbugs=4.2.2 | | Powered by | Apache Yetus 0.14.0 https://yetus.apache.org | This message was automatically generated. > Timeout encountered when running TestDataNodeOutlierDetectionViaMetrics > ----------------------------------------------------------------------- > > Key: HDFS-17102 > URL: https://issues.apache.org/jira/browse/HDFS-17102 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: ConfX > Priority: Critical > Labels: pull-request-available > Attachments: reproduce.sh > > > h2. What happened: > Got a timeout when running {{TestDataNodeOutlierDetectionViaMetrics}} and > setting min outlier to 0 or negative. > h2. Where's the bug: > In {{TestDataNodeOutlierDetectionViaMetrics.injectFastNodesSamples}} the test > injects several packets into the nodes: > {noformat} > for (int i = 0; > i < 2 * peerMetrics.getMinOutlierDetectionSamples(); > ++i) { > peerMetrics.addSendPacketDownstream( > nodeName, random.nextInt(FAST_NODE_MAX_LATENCY_MS)); > }{noformat} > A similar logic appears in the {{{}injectSlowNodesSamples{}}}. A problem with > this code is that if > {{dfs.datanode.peer.metrics.min.outlier.detection.samples}} is set to > negative or 0, no packet would be injected and the {{waitFor}} later: > {noformat} > GenericTestUtils.waitFor(new Supplier<Boolean>() { > @Override > public Boolean get() { > return peerMetrics.getOutliers().size() > 0; > } > }, 500, 100_000);{noformat} > would keeping waiting until timeout. > h2. How to reproduce: > (1) Set {{dfs.datanode.peer.metrics.min.outlier.detection.samples }} to {{0}} > (2) Run test: > {{org.apache.hadoop.hdfs.server.datanode.metrics.TestDataNodeOutlierDetectionViaMetrics#testOutlierIsDetected}} > h2. Stacktrace: > > {noformat} > java.util.concurrent.TimeoutException: > Timed out waiting for condition. > Thread diagnostics: > Timestamp: 2023-07-04 04:08:54,535 > "Reference Handler" daemon prio=10 tid=2 runnable > java.lang.Thread.State: RUNNABLE > at > java.base@11.0.18/java.lang.ref.Reference.waitForReferencePendingList(Native > Method) > at > java.base@11.0.18/java.lang.ref.Reference.processPendingReferences(Reference.java:241) > at > java.base@11.0.18/java.lang.ref.Reference$ReferenceHandler.run(Reference.java:213) > "surefire-forkedjvm-command-thread" daemon prio=5 tid=23 runnable > java.lang.Thread.State: RUNNABLE > ... > {noformat} > For an easy reproduction, run the reproduce.sh in the attachment. > We are happy to provide a patch if this issue is confirmed. > -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org