Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9428

Fix intermittent failure of TestDNFencing.testQueueingWithAppend

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    1. HDFS-9428.001.patch
      0.7 kB
      Masatake Iwasaki
    2. HDFS-9428.002.patch
      0.8 kB
      Masatake Iwasaki

      Activity

      Hide
      hudson Hudson added a comment -

      FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #631 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/631/)
      HDFS-9428. Fix intermittent failure of (waltersu4549: rev 5aba093361dcf6bb642e533700f772b9a94154ad)

      • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java
      • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
      Show
      hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #631 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/631/ ) HDFS-9428 . Fix intermittent failure of (waltersu4549: rev 5aba093361dcf6bb642e533700f772b9a94154ad) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
      Hide
      hudson Hudson added a comment -

      FAILURE: Integrated in Hadoop-Hdfs-trunk #2569 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2569/)
      HDFS-9428. Fix intermittent failure of (waltersu4549: rev 5aba093361dcf6bb642e533700f772b9a94154ad)

      • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java
      • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
      Show
      hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk #2569 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2569/ ) HDFS-9428 . Fix intermittent failure of (waltersu4549: rev 5aba093361dcf6bb642e533700f772b9a94154ad) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
      Hide
      hudson Hudson added a comment -

      FAILURE: Integrated in Hadoop-Mapreduce-trunk #2643 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2643/)
      HDFS-9428. Fix intermittent failure of (waltersu4549: rev 5aba093361dcf6bb642e533700f772b9a94154ad)

      • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java
      • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
      Show
      hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk #2643 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2643/ ) HDFS-9428 . Fix intermittent failure of (waltersu4549: rev 5aba093361dcf6bb642e533700f772b9a94154ad) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
      Hide
      hudson Hudson added a comment -

      FAILURE: Integrated in Hadoop-Yarn-trunk #1436 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/1436/)
      HDFS-9428. Fix intermittent failure of (waltersu4549: rev 5aba093361dcf6bb642e533700f772b9a94154ad)

      • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java
      • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
      Show
      hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk #1436 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/1436/ ) HDFS-9428 . Fix intermittent failure of (waltersu4549: rev 5aba093361dcf6bb642e533700f772b9a94154ad) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
      Hide
      hudson Hudson added a comment -

      FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #713 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/713/)
      HDFS-9428. Fix intermittent failure of (waltersu4549: rev 5aba093361dcf6bb642e533700f772b9a94154ad)

      • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java
      • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
      Show
      hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #713 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/713/ ) HDFS-9428 . Fix intermittent failure of (waltersu4549: rev 5aba093361dcf6bb642e533700f772b9a94154ad) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
      Hide
      hudson Hudson added a comment -

      FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #702 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/702/)
      HDFS-9428. Fix intermittent failure of (waltersu4549: rev 5aba093361dcf6bb642e533700f772b9a94154ad)

      • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
      • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java
      Show
      hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #702 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/702/ ) HDFS-9428 . Fix intermittent failure of (waltersu4549: rev 5aba093361dcf6bb642e533700f772b9a94154ad) hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java
      Hide
      hudson Hudson added a comment -

      FAILURE: Integrated in Hadoop-trunk-Commit #8859 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8859/)
      HDFS-9428. Fix intermittent failure of (waltersu4549: rev 5aba093361dcf6bb642e533700f772b9a94154ad)

      • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java
      • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
      Show
      hudson Hudson added a comment - FAILURE: Integrated in Hadoop-trunk-Commit #8859 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8859/ ) HDFS-9428 . Fix intermittent failure of (waltersu4549: rev 5aba093361dcf6bb642e533700f772b9a94154ad) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDNFencing.java hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
      Hide
      walter.k.su Walter Su added a comment -

      I've committed the patch to trunk and branch-2. Thanks Masatake Iwasaki for the contribution.

      Show
      walter.k.su Walter Su added a comment - I've committed the patch to trunk and branch-2. Thanks Masatake Iwasaki for the contribution.
      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 9m 51s trunk passed
      +1 compile 1m 3s trunk passed with JDK v1.8.0_66
      +1 compile 0m 55s trunk passed with JDK v1.7.0_85
      +1 checkstyle 0m 21s trunk passed
      +1 mvnsite 1m 10s trunk passed
      +1 mvneclipse 0m 16s trunk passed
      +1 findbugs 2m 31s trunk passed
      +1 javadoc 1m 33s trunk passed with JDK v1.8.0_66
      +1 javadoc 2m 24s trunk passed with JDK v1.7.0_85
      +1 mvninstall 1m 5s the patch passed
      +1 compile 1m 3s the patch passed with JDK v1.8.0_66
      +1 javac 1m 3s the patch passed
      +1 compile 0m 55s the patch passed with JDK v1.7.0_85
      +1 javac 0m 55s the patch passed
      +1 checkstyle 0m 20s the patch passed
      +1 mvnsite 1m 10s the patch passed
      +1 mvneclipse 0m 16s the patch passed
      +1 whitespace 0m 1s Patch has no whitespace issues.
      +1 findbugs 2m 44s the patch passed
      +1 javadoc 1m 32s the patch passed with JDK v1.8.0_66
      +1 javadoc 2m 23s the patch passed with JDK v1.7.0_85
      -1 unit 82m 4s hadoop-hdfs in the patch failed with JDK v1.8.0_66.
      -1 unit 79m 47s hadoop-hdfs in the patch failed with JDK v1.7.0_85.
      -1 asflicense 0m 23s Patch generated 57 ASF License warnings.
      197m 14s



      Reason Tests
      JDK v1.8.0_66 Failed junit tests hadoop.hdfs.TestDFSUpgradeFromImage
        hadoop.hdfs.TestBlockReaderLocal
        hadoop.hdfs.server.namenode.ha.TestEditLogTailer
        hadoop.hdfs.TestDFSStripedOutputStreamWithFailure020
        hadoop.hdfs.server.balancer.TestBalancer
        hadoop.hdfs.server.namenode.TestBackupNode
        hadoop.hdfs.server.namenode.TestCacheDirectives
        hadoop.hdfs.server.datanode.TestDirectoryScanner
      JDK v1.7.0_85 Failed junit tests hadoop.hdfs.TestPread
        hadoop.hdfs.server.namenode.ha.TestEditLogTailer
        hadoop.hdfs.TestPersistBlocks
        hadoop.hdfs.TestDFSStripedOutputStreamWithFailure120
        hadoop.hdfs.server.datanode.TestIncrementalBrVariations
        hadoop.hdfs.server.mover.TestStorageMover
        hadoop.hdfs.server.namenode.ha.TestSeveralNameNodes
        hadoop.fs.TestSymlinkHdfsFileContext



      Subsystem Report/Notes
      Docker Image:yetus/hadoop:0ca8df7
      JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12772436/HDFS-9428.002.patch
      JIRA Issue HDFS-9428
      Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
      uname Linux 7f646ce0a783 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 / a30eccb
      findbugs v3.0.0
      unit https://builds.apache.org/job/PreCommit-HDFS-Build/13594/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_66.txt
      unit https://builds.apache.org/job/PreCommit-HDFS-Build/13594/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_85.txt
      unit test logs https://builds.apache.org/job/PreCommit-HDFS-Build/13594/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_66.txt https://builds.apache.org/job/PreCommit-HDFS-Build/13594/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_85.txt
      JDK v1.7.0_85 Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/13594/testReport/
      asflicense https://builds.apache.org/job/PreCommit-HDFS-Build/13594/artifact/patchprocess/patch-asflicense-problems.txt
      modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs
      Max memory used 75MB
      Powered by Apache Yetus http://yetus.apache.org
      Console output https://builds.apache.org/job/PreCommit-HDFS-Build/13594/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 9m 51s trunk passed +1 compile 1m 3s trunk passed with JDK v1.8.0_66 +1 compile 0m 55s trunk passed with JDK v1.7.0_85 +1 checkstyle 0m 21s trunk passed +1 mvnsite 1m 10s trunk passed +1 mvneclipse 0m 16s trunk passed +1 findbugs 2m 31s trunk passed +1 javadoc 1m 33s trunk passed with JDK v1.8.0_66 +1 javadoc 2m 24s trunk passed with JDK v1.7.0_85 +1 mvninstall 1m 5s the patch passed +1 compile 1m 3s the patch passed with JDK v1.8.0_66 +1 javac 1m 3s the patch passed +1 compile 0m 55s the patch passed with JDK v1.7.0_85 +1 javac 0m 55s the patch passed +1 checkstyle 0m 20s the patch passed +1 mvnsite 1m 10s the patch passed +1 mvneclipse 0m 16s the patch passed +1 whitespace 0m 1s Patch has no whitespace issues. +1 findbugs 2m 44s the patch passed +1 javadoc 1m 32s the patch passed with JDK v1.8.0_66 +1 javadoc 2m 23s the patch passed with JDK v1.7.0_85 -1 unit 82m 4s hadoop-hdfs in the patch failed with JDK v1.8.0_66. -1 unit 79m 47s hadoop-hdfs in the patch failed with JDK v1.7.0_85. -1 asflicense 0m 23s Patch generated 57 ASF License warnings. 197m 14s Reason Tests JDK v1.8.0_66 Failed junit tests hadoop.hdfs.TestDFSUpgradeFromImage   hadoop.hdfs.TestBlockReaderLocal   hadoop.hdfs.server.namenode.ha.TestEditLogTailer   hadoop.hdfs.TestDFSStripedOutputStreamWithFailure020   hadoop.hdfs.server.balancer.TestBalancer   hadoop.hdfs.server.namenode.TestBackupNode   hadoop.hdfs.server.namenode.TestCacheDirectives   hadoop.hdfs.server.datanode.TestDirectoryScanner JDK v1.7.0_85 Failed junit tests hadoop.hdfs.TestPread   hadoop.hdfs.server.namenode.ha.TestEditLogTailer   hadoop.hdfs.TestPersistBlocks   hadoop.hdfs.TestDFSStripedOutputStreamWithFailure120   hadoop.hdfs.server.datanode.TestIncrementalBrVariations   hadoop.hdfs.server.mover.TestStorageMover   hadoop.hdfs.server.namenode.ha.TestSeveralNameNodes   hadoop.fs.TestSymlinkHdfsFileContext Subsystem Report/Notes Docker Image:yetus/hadoop:0ca8df7 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12772436/HDFS-9428.002.patch JIRA Issue HDFS-9428 Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux 7f646ce0a783 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 / a30eccb findbugs v3.0.0 unit https://builds.apache.org/job/PreCommit-HDFS-Build/13594/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_66.txt unit https://builds.apache.org/job/PreCommit-HDFS-Build/13594/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_85.txt unit test logs https://builds.apache.org/job/PreCommit-HDFS-Build/13594/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_66.txt https://builds.apache.org/job/PreCommit-HDFS-Build/13594/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_85.txt JDK v1.7.0_85 Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/13594/testReport/ asflicense https://builds.apache.org/job/PreCommit-HDFS-Build/13594/artifact/patchprocess/patch-asflicense-problems.txt modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs Max memory used 75MB Powered by Apache Yetus http://yetus.apache.org Console output https://builds.apache.org/job/PreCommit-HDFS-Build/13594/console This message was automatically generated.
      Hide
      walter.k.su Walter Su added a comment -

      +1 pending jenkins.

      Show
      walter.k.su Walter Su added a comment - +1 pending jenkins.
      Hide
      iwasakims Masatake Iwasaki added a comment -

      I added the fix to wrong place... I update the patch.

      Show
      iwasakims Masatake Iwasaki added a comment - I added the fix to wrong place... I update the patch.
      Hide
      iwasakims Masatake Iwasaki added a comment -

      I attached 001.

      The assertion failed due to checking the condition before all datanodes processed IBR which is asynchronous to FSDataOutputStream#close. MiniDFSCluster#triggerHeartbeats can be used to wait for IBRs to be processed.

      Show
      iwasakims Masatake Iwasaki added a comment - I attached 001. The assertion failed due to checking the condition before all datanodes processed IBR which is asynchronous to FSDataOutputStream#close . MiniDFSCluster#triggerHeartbeats can be used to wait for IBRs to be processed.
      Hide
      iwasakims Masatake Iwasaki added a comment -
      Running org.apache.hadoop.hdfs.server.namenode.ha.TestDNFencing
      Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 38.89 sec <<< FAILURE! - in org.apache.hadoop.hdfs.server.namenode.ha.TestDNFencing
      testQueueingWithAppend(org.apache.hadoop.hdfs.server.namenode.ha.TestDNFencing)  Time elapsed: 3.466 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<21> but was:<20>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:555)
      	at org.junit.Assert.assertEquals(Assert.java:542)
      	at org.apache.hadoop.hdfs.server.namenode.ha.TestDNFencing.testQueueingWithAppend(TestDNFencing.java:461)
      
      Show
      iwasakims Masatake Iwasaki added a comment - Running org.apache.hadoop.hdfs.server.namenode.ha.TestDNFencing Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 38.89 sec <<< FAILURE! - in org.apache.hadoop.hdfs.server.namenode.ha.TestDNFencing testQueueingWithAppend(org.apache.hadoop.hdfs.server.namenode.ha.TestDNFencing) Time elapsed: 3.466 sec <<< FAILURE! java.lang.AssertionError: expected:<21> but was:<20> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.junit.Assert.assertEquals(Assert.java:555) at org.junit.Assert.assertEquals(Assert.java:542) at org.apache.hadoop.hdfs.server.namenode.ha.TestDNFencing.testQueueingWithAppend(TestDNFencing.java:461)

        People

        • Assignee:
          iwasakims Masatake Iwasaki
          Reporter:
          iwasakims Masatake Iwasaki
        • Votes:
          0 Vote for this issue
          Watchers:
          6 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development