Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12613

TestFind.processArguments occasionally fails

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 2.7.3, 3.0.0-alpha1
    • Component/s: test
    • Labels:
      None

      Description

      This failure seems to exist after November 3rd. I am still tracing where this can come from.
      https://builds.apache.org/job/Hadoop-Common-trunk/2066/testReport/org.apache.hadoop.fs.shell.find/TestFind/processArguments/
      Error Message

      test timed out after 1000 milliseconds

      Stacktrace

      java.lang.Exception: test timed out after 1000 milliseconds
      	at java.util.AbstractList$Itr.next(AbstractList.java:357)
      	at java.util.SubList$1.next(AbstractList.java:707)
      	at java.util.AbstractCollection.toArray(AbstractCollection.java:141)
      	at java.util.ArrayList.addAll(ArrayList.java:559)
      	at org.mockito.internal.exceptions.base.StackTraceFilter.filter(StackTraceFilter.java:54)
      	at org.mockito.internal.debugging.Location.<init>(Location.java:22)
      	at org.mockito.internal.debugging.Location.<init>(Location.java:17)
      	at org.mockito.internal.invocation.Invocation.<init>(Invocation.java:60)
      	at org.mockito.internal.creation.MethodInterceptorFilter.intercept(MethodInterceptorFilter.java:46)
      	at org.apache.hadoop.fs.FileStatus$$EnhancerByMockitoWithCGLIB$$a131b1e2.isSymlink(<generated>)
      	at org.apache.hadoop.fs.shell.find.Find.recursePath(Find.java:355)
      	at org.apache.hadoop.fs.shell.Command.processPaths(Command.java:323)
      	at org.apache.hadoop.fs.shell.Command.recursePath(Command.java:377)
      	at org.apache.hadoop.fs.shell.find.Find.recursePath(Find.java:369)
      	at org.apache.hadoop.fs.shell.Command.processPaths(Command.java:323)
      	at org.apache.hadoop.fs.shell.Command.processPathArgument(Command.java:293)
      	at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:275)
      	at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:259)
      	at org.apache.hadoop.fs.shell.find.Find.processArguments(Find.java:427)
      	at org.apache.hadoop.fs.shell.find.TestFind.processArguments(TestFind.java:253)
      
      1. HADOOP-12613.001.patch
        3 kB
        Wei-Chiu Chuang
      2. HADOOP-12613.002.patch
        8 kB
        Wei-Chiu Chuang

        Issue Links

          Activity

          Hide
          jojochuang Wei-Chiu Chuang added a comment -

          I have ran it locally a few hundred times without only two failures. The test failure appears sporadic (does not time out at the same location at all), and maybe the fact is the test simply requires more than 1000 milliseconds to execute in some cases.

          Show
          jojochuang Wei-Chiu Chuang added a comment - I have ran it locally a few hundred times without only two failures. The test failure appears sporadic (does not time out at the same location at all), and maybe the fact is the test simply requires more than 1000 milliseconds to execute in some cases.
          Hide
          jojochuang Wei-Chiu Chuang added a comment -

          Rev01: updated timeout from 1 second to 10 seconds.
          I ran this patch several hundred times without seeing any failures.

          Show
          jojochuang Wei-Chiu Chuang added a comment - Rev01: updated timeout from 1 second to 10 seconds. I ran this patch several hundred times without seeing any failures.
          Hide
          stevel@apache.org Steve Loughran added a comment -

          This might be a time to move to a single test rule for future maintenance

            @Rule
            public Timeout testTimeout = new Timeout(10000)
          
          Show
          stevel@apache.org Steve Loughran added a comment - This might be a time to move to a single test rule for future maintenance @Rule public Timeout testTimeout = new Timeout(10000)
          Hide
          hadoopqa Hadoop QA added a comment -
          -1 overall



          Vote Subsystem Runtime Comment
          0 reexec 0m 0s Docker mode activated.
          +1 @author 0m 0s The patch does not contain any @author tags.
          +1 test4tests 0m 0s The patch appears to include 1 new or modified test files.
          +1 mvninstall 8m 26s trunk passed
          +1 compile 9m 36s trunk passed with JDK v1.8.0_66
          +1 compile 10m 9s trunk passed with JDK v1.7.0_85
          +1 checkstyle 0m 18s trunk passed
          +1 mvnsite 1m 5s trunk passed
          +1 mvneclipse 0m 15s trunk passed
          +1 findbugs 1m 54s trunk passed
          +1 javadoc 0m 58s trunk passed with JDK v1.8.0_66
          +1 javadoc 1m 6s trunk passed with JDK v1.7.0_85
          +1 mvninstall 1m 41s the patch passed
          +1 compile 8m 47s the patch passed with JDK v1.8.0_66
          +1 javac 8m 47s the patch passed
          +1 compile 9m 22s the patch passed with JDK v1.7.0_85
          +1 javac 9m 22s the patch passed
          +1 checkstyle 0m 16s the patch passed
          +1 mvnsite 1m 5s the patch passed
          +1 mvneclipse 0m 14s the patch passed
          +1 whitespace 0m 1s Patch has no whitespace issues.
          +1 findbugs 2m 8s the patch passed
          +1 javadoc 0m 57s the patch passed with JDK v1.8.0_66
          +1 javadoc 1m 8s the patch passed with JDK v1.7.0_85
          -1 unit 8m 14s hadoop-common in the patch failed with JDK v1.8.0_66.
          -1 unit 8m 9s hadoop-common in the patch failed with JDK v1.7.0_85.
          +1 asflicense 0m 25s Patch does not generate ASF License warnings.
          77m 25s



          Reason Tests
          JDK v1.8.0_66 Failed junit tests hadoop.ipc.TestRPC
          JDK v1.7.0_85 Failed junit tests hadoop.metrics2.impl.TestGangliaMetrics
            hadoop.fs.shell.TestCopyPreserveFlag



          Subsystem Report/Notes
          Docker Image:yetus/hadoop:0ca8df7
          JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12775627/HADOOP-12613.001.patch
          JIRA Issue HADOOP-12613
          Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
          uname Linux 01cb6b09aade 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
          Build tool maven
          Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
          git revision trunk / 62e9348
          findbugs v3.0.0
          unit https://builds.apache.org/job/PreCommit-HADOOP-Build/8179/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.8.0_66.txt
          unit https://builds.apache.org/job/PreCommit-HADOOP-Build/8179/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.7.0_85.txt
          unit test logs https://builds.apache.org/job/PreCommit-HADOOP-Build/8179/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.8.0_66.txt https://builds.apache.org/job/PreCommit-HADOOP-Build/8179/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.7.0_85.txt
          JDK v1.7.0_85 Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/8179/testReport/
          modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common
          Max memory used 76MB
          Powered by Apache Yetus http://yetus.apache.org
          Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/8179/console

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 reexec 0m 0s Docker mode activated. +1 @author 0m 0s The patch does not contain any @author tags. +1 test4tests 0m 0s The patch appears to include 1 new or modified test files. +1 mvninstall 8m 26s trunk passed +1 compile 9m 36s trunk passed with JDK v1.8.0_66 +1 compile 10m 9s trunk passed with JDK v1.7.0_85 +1 checkstyle 0m 18s trunk passed +1 mvnsite 1m 5s trunk passed +1 mvneclipse 0m 15s trunk passed +1 findbugs 1m 54s trunk passed +1 javadoc 0m 58s trunk passed with JDK v1.8.0_66 +1 javadoc 1m 6s trunk passed with JDK v1.7.0_85 +1 mvninstall 1m 41s the patch passed +1 compile 8m 47s the patch passed with JDK v1.8.0_66 +1 javac 8m 47s the patch passed +1 compile 9m 22s the patch passed with JDK v1.7.0_85 +1 javac 9m 22s the patch passed +1 checkstyle 0m 16s the patch passed +1 mvnsite 1m 5s the patch passed +1 mvneclipse 0m 14s the patch passed +1 whitespace 0m 1s Patch has no whitespace issues. +1 findbugs 2m 8s the patch passed +1 javadoc 0m 57s the patch passed with JDK v1.8.0_66 +1 javadoc 1m 8s the patch passed with JDK v1.7.0_85 -1 unit 8m 14s hadoop-common in the patch failed with JDK v1.8.0_66. -1 unit 8m 9s hadoop-common in the patch failed with JDK v1.7.0_85. +1 asflicense 0m 25s Patch does not generate ASF License warnings. 77m 25s Reason Tests JDK v1.8.0_66 Failed junit tests hadoop.ipc.TestRPC JDK v1.7.0_85 Failed junit tests hadoop.metrics2.impl.TestGangliaMetrics   hadoop.fs.shell.TestCopyPreserveFlag Subsystem Report/Notes Docker Image:yetus/hadoop:0ca8df7 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12775627/HADOOP-12613.001.patch JIRA Issue HADOOP-12613 Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux 01cb6b09aade 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / 62e9348 findbugs v3.0.0 unit https://builds.apache.org/job/PreCommit-HADOOP-Build/8179/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.8.0_66.txt unit https://builds.apache.org/job/PreCommit-HADOOP-Build/8179/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.7.0_85.txt unit test logs https://builds.apache.org/job/PreCommit-HADOOP-Build/8179/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.8.0_66.txt https://builds.apache.org/job/PreCommit-HADOOP-Build/8179/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.7.0_85.txt JDK v1.7.0_85 Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/8179/testReport/ modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common Max memory used 76MB Powered by Apache Yetus http://yetus.apache.org Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/8179/console This message was automatically generated.
          Hide
          jojochuang Wei-Chiu Chuang added a comment -

          Thanks for the suggestion. That's a good idea. Attaching rev002 that sets one timeout for the entire test class.

          Show
          jojochuang Wei-Chiu Chuang added a comment - Thanks for the suggestion. That's a good idea. Attaching rev002 that sets one timeout for the entire test class.
          Hide
          hadoopqa Hadoop QA added a comment -
          -1 overall



          Vote Subsystem Runtime Comment
          0 reexec 0m 0s Docker mode activated.
          +1 @author 0m 0s The patch does not contain any @author tags.
          +1 test4tests 0m 0s The patch appears to include 1 new or modified test files.
          +1 mvninstall 10m 10s trunk passed
          +1 compile 12m 28s trunk passed with JDK v1.8.0_66
          +1 compile 11m 30s trunk passed with JDK v1.7.0_85
          +1 checkstyle 0m 20s trunk passed
          +1 mvnsite 1m 22s trunk passed
          +1 mvneclipse 0m 18s trunk passed
          +1 findbugs 2m 23s trunk passed
          +1 javadoc 1m 12s trunk passed with JDK v1.8.0_66
          +1 javadoc 1m 20s trunk passed with JDK v1.7.0_85
          +1 mvninstall 2m 2s the patch passed
          +1 compile 12m 36s the patch passed with JDK v1.8.0_66
          +1 javac 12m 36s the patch passed
          +1 compile 11m 39s the patch passed with JDK v1.7.0_85
          +1 javac 11m 39s the patch passed
          +1 checkstyle 0m 22s the patch passed
          +1 mvnsite 1m 20s the patch passed
          +1 mvneclipse 0m 19s the patch passed
          +1 whitespace 0m 0s Patch has no whitespace issues.
          +1 findbugs 2m 35s the patch passed
          +1 javadoc 1m 12s the patch passed with JDK v1.8.0_66
          +1 javadoc 1m 24s the patch passed with JDK v1.7.0_85
          -1 unit 9m 18s hadoop-common in the patch failed with JDK v1.8.0_66.
          +1 unit 9m 11s hadoop-common in the patch passed with JDK v1.7.0_85.
          +1 asflicense 0m 31s Patch does not generate ASF License warnings.
          95m 55s



          Reason Tests
          JDK v1.8.0_66 Failed junit tests hadoop.metrics2.impl.TestMetricsSystemImpl
            hadoop.test.TestTimedOutTestsListener



          Subsystem Report/Notes
          Docker Image:yetus/hadoop:0ca8df7
          JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12775697/HADOOP-12613.002.patch
          JIRA Issue HADOOP-12613
          Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
          uname Linux ae702bf74e39 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
          Build tool maven
          Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
          git revision trunk / 924a33d
          findbugs v3.0.0
          unit https://builds.apache.org/job/PreCommit-HADOOP-Build/8180/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.8.0_66.txt
          unit test logs https://builds.apache.org/job/PreCommit-HADOOP-Build/8180/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.8.0_66.txt
          JDK v1.7.0_85 Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/8180/testReport/
          modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common
          Max memory used 76MB
          Powered by Apache Yetus http://yetus.apache.org
          Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/8180/console

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 reexec 0m 0s Docker mode activated. +1 @author 0m 0s The patch does not contain any @author tags. +1 test4tests 0m 0s The patch appears to include 1 new or modified test files. +1 mvninstall 10m 10s trunk passed +1 compile 12m 28s trunk passed with JDK v1.8.0_66 +1 compile 11m 30s trunk passed with JDK v1.7.0_85 +1 checkstyle 0m 20s trunk passed +1 mvnsite 1m 22s trunk passed +1 mvneclipse 0m 18s trunk passed +1 findbugs 2m 23s trunk passed +1 javadoc 1m 12s trunk passed with JDK v1.8.0_66 +1 javadoc 1m 20s trunk passed with JDK v1.7.0_85 +1 mvninstall 2m 2s the patch passed +1 compile 12m 36s the patch passed with JDK v1.8.0_66 +1 javac 12m 36s the patch passed +1 compile 11m 39s the patch passed with JDK v1.7.0_85 +1 javac 11m 39s the patch passed +1 checkstyle 0m 22s the patch passed +1 mvnsite 1m 20s the patch passed +1 mvneclipse 0m 19s the patch passed +1 whitespace 0m 0s Patch has no whitespace issues. +1 findbugs 2m 35s the patch passed +1 javadoc 1m 12s the patch passed with JDK v1.8.0_66 +1 javadoc 1m 24s the patch passed with JDK v1.7.0_85 -1 unit 9m 18s hadoop-common in the patch failed with JDK v1.8.0_66. +1 unit 9m 11s hadoop-common in the patch passed with JDK v1.7.0_85. +1 asflicense 0m 31s Patch does not generate ASF License warnings. 95m 55s Reason Tests JDK v1.8.0_66 Failed junit tests hadoop.metrics2.impl.TestMetricsSystemImpl   hadoop.test.TestTimedOutTestsListener Subsystem Report/Notes Docker Image:yetus/hadoop:0ca8df7 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12775697/HADOOP-12613.002.patch JIRA Issue HADOOP-12613 Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux ae702bf74e39 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / 924a33d findbugs v3.0.0 unit https://builds.apache.org/job/PreCommit-HADOOP-Build/8180/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.8.0_66.txt unit test logs https://builds.apache.org/job/PreCommit-HADOOP-Build/8180/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.8.0_66.txt JDK v1.7.0_85 Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/8180/testReport/ modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common Max memory used 76MB Powered by Apache Yetus http://yetus.apache.org Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/8180/console This message was automatically generated.
          Hide
          jojochuang Wei-Chiu Chuang added a comment -

          Test failures are unrelated and have been observed previously.
          I locally ran the patched TestFind for more than 500 runs without failures.

          Show
          jojochuang Wei-Chiu Chuang added a comment - Test failures are unrelated and have been observed previously. I locally ran the patched TestFind for more than 500 runs without failures.
          Hide
          stevel@apache.org Steve Loughran added a comment -

          +1, fixed

          Show
          stevel@apache.org Steve Loughran added a comment - +1, fixed
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-trunk-Commit #9069 (See https://builds.apache.org/job/Hadoop-trunk-Commit/9069/)
          HADOOP-12613. TestFind.processArguments occasionally fails. (Wei-Chiu (stevel: rev 172d07825c138e021b0fb40f768e1da8c91914e3)

          • hadoop-common-project/hadoop-common/CHANGES.txt
          • hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/find/TestFind.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-trunk-Commit #9069 (See https://builds.apache.org/job/Hadoop-trunk-Commit/9069/ ) HADOOP-12613 . TestFind.processArguments occasionally fails. (Wei-Chiu (stevel: rev 172d07825c138e021b0fb40f768e1da8c91914e3) hadoop-common-project/hadoop-common/CHANGES.txt hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/find/TestFind.java
          Hide
          jojochuang Wei-Chiu Chuang added a comment -
          Show
          jojochuang Wei-Chiu Chuang added a comment - Thanks Steve Loughran !
          Hide
          ajisakaa Akira Ajisaka added a comment -

          Cherry-picked to branch-2.8 and branch-2.7 because HADOOP-12989 depends on this commit.

          Show
          ajisakaa Akira Ajisaka added a comment - Cherry-picked to branch-2.8 and branch-2.7 because HADOOP-12989 depends on this commit.
          Hide
          vinodkv Vinod Kumar Vavilapalli added a comment -

          Closing the JIRA as part of 2.7.3 release.

          Show
          vinodkv Vinod Kumar Vavilapalli added a comment - Closing the JIRA as part of 2.7.3 release.

            People

            • Assignee:
              jojochuang Wei-Chiu Chuang
              Reporter:
              jojochuang Wei-Chiu Chuang
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development