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

ClassCastException when we use Bzipcodec for Fsimage compression

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 2.7.4, 3.0.0-alpha2
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Trace

      java.lang.ClassCastException: org.apache.hadoop.io.compress.BZip2Codec$BZip2CompressionOutputStream cannot be cast to org.apache.hadoop.io.compress.CompressorStream
      	at org.apache.hadoop.hdfs.server.namenode.FSImageFormatProtobuf$Saver.flushSectionOutputStream(FSImageFormatProtobuf.java:420)
      	at org.apache.hadoop.hdfs.server.namenode.FSImageFormatProtobuf$Saver.commitSection(FSImageFormatProtobuf.java:405)
      	at org.apache.hadoop.hdfs.server.namenode.FSImageFormatProtobuf$Saver.saveNameSystemSection(FSImageFormatProtobuf.java:583)
      	at org.apache.hadoop.hdfs.server.namenode.FSImageFormatProtobuf$Saver.saveInternal(FSImageFormatProtobuf.java:494)
      	at org.apache.hadoop.hdfs.server.namenode.FSImageFormatProtobuf$Saver.save(FSImageFormatProtobuf.java:431)
      	at org.apache.hadoop.hdfs.server.namenode.FSImage.saveFSImage(FSImage.java:913)
      	at org.apache.hadoop.hdfs.server.namenode.FSImage$FSImageSaver.run(FSImage.java:964)
      	at java.lang.Thread.run(Thread.java:745)
      
      1. HDFS-11263-002.patch
        3 kB
        Brahma Reddy Battula
      2. HDFS-11263.patch
        3 kB
        Brahma Reddy Battula

        Activity

        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11016 (See https://builds.apache.org/job/Hadoop-trunk-Commit/11016/)
        HDFS-11263. ClassCastException when we use Bzipcodec for Fsimage (brahma: rev 1b401f6a734df4e23a79b3bd89c816a1fc0de574)

        • (edit) hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImageFormatProtobuf.java
        • (edit) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFSImage.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11016 (See https://builds.apache.org/job/Hadoop-trunk-Commit/11016/ ) HDFS-11263 . ClassCastException when we use Bzipcodec for Fsimage (brahma: rev 1b401f6a734df4e23a79b3bd89c816a1fc0de574) (edit) hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImageFormatProtobuf.java (edit) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFSImage.java
        Hide
        brahmareddy Brahma Reddy Battula added a comment -

        Committed to trunk,branch-2,branch-2.8 and branch-2.7..Yiqun Lin and Wei-Chiu Chuang thanks for your reviews.

        Show
        brahmareddy Brahma Reddy Battula added a comment - Committed to trunk,branch-2,branch-2.8 and branch-2.7.. Yiqun Lin and Wei-Chiu Chuang thanks for your reviews.
        Hide
        brahmareddy Brahma Reddy Battula added a comment -

        Wei-Chiu Chuang thanks for review.. I will commit.

        Show
        brahmareddy Brahma Reddy Battula added a comment - Wei-Chiu Chuang thanks for review.. I will commit.
        Hide
        jojochuang Wei-Chiu Chuang added a comment -

        Nice finding Brahma Reddy Battula!
        LGTM +1

        Show
        jojochuang Wei-Chiu Chuang added a comment - Nice finding Brahma Reddy Battula ! LGTM +1
        Hide
        hadoopqa Hadoop QA added a comment -
        +1 overall



        Vote Subsystem Runtime Comment
        0 reexec 0m 16s 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 12m 39s trunk passed
        +1 compile 0m 44s trunk passed
        +1 checkstyle 0m 26s trunk passed
        +1 mvnsite 0m 49s trunk passed
        +1 mvneclipse 0m 13s trunk passed
        +1 findbugs 1m 40s trunk passed
        +1 javadoc 0m 40s trunk passed
        +1 mvninstall 0m 44s the patch passed
        +1 compile 0m 43s the patch passed
        +1 javac 0m 43s the patch passed
        +1 checkstyle 0m 24s hadoop-hdfs-project/hadoop-hdfs: The patch generated 0 new + 39 unchanged - 1 fixed = 39 total (was 40)
        +1 mvnsite 0m 48s the patch passed
        +1 mvneclipse 0m 9s the patch passed
        +1 whitespace 0m 0s The patch has no whitespace issues.
        +1 findbugs 1m 47s the patch passed
        +1 javadoc 0m 36s the patch passed
        +1 unit 61m 43s hadoop-hdfs in the patch passed.
        +1 asflicense 0m 19s The patch does not generate ASF License warnings.
        85m 51s



        Subsystem Report/Notes
        Docker Image:yetus/hadoop:a9ad5d6
        JIRA Issue HDFS-11263
        JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12843844/HDFS-11263-002.patch
        Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
        uname Linux 6b4fa4655793 3.13.0-103-generic #150-Ubuntu SMP Thu Nov 24 10:34:17 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
        Build tool maven
        Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
        git revision trunk / ef2dd7b
        Default Java 1.8.0_111
        findbugs v3.0.0
        Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/17892/testReport/
        modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs
        Console output https://builds.apache.org/job/PreCommit-HDFS-Build/17892/console
        Powered by Apache Yetus 0.5.0-SNAPSHOT http://yetus.apache.org

        This message was automatically generated.

        Show
        hadoopqa Hadoop QA added a comment - +1 overall Vote Subsystem Runtime Comment 0 reexec 0m 16s 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 12m 39s trunk passed +1 compile 0m 44s trunk passed +1 checkstyle 0m 26s trunk passed +1 mvnsite 0m 49s trunk passed +1 mvneclipse 0m 13s trunk passed +1 findbugs 1m 40s trunk passed +1 javadoc 0m 40s trunk passed +1 mvninstall 0m 44s the patch passed +1 compile 0m 43s the patch passed +1 javac 0m 43s the patch passed +1 checkstyle 0m 24s hadoop-hdfs-project/hadoop-hdfs: The patch generated 0 new + 39 unchanged - 1 fixed = 39 total (was 40) +1 mvnsite 0m 48s the patch passed +1 mvneclipse 0m 9s the patch passed +1 whitespace 0m 0s The patch has no whitespace issues. +1 findbugs 1m 47s the patch passed +1 javadoc 0m 36s the patch passed +1 unit 61m 43s hadoop-hdfs in the patch passed. +1 asflicense 0m 19s The patch does not generate ASF License warnings. 85m 51s Subsystem Report/Notes Docker Image:yetus/hadoop:a9ad5d6 JIRA Issue HDFS-11263 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12843844/HDFS-11263-002.patch Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux 6b4fa4655793 3.13.0-103-generic #150-Ubuntu SMP Thu Nov 24 10:34:17 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / ef2dd7b Default Java 1.8.0_111 findbugs v3.0.0 Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/17892/testReport/ modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs Console output https://builds.apache.org/job/PreCommit-HDFS-Build/17892/console Powered by Apache Yetus 0.5.0-SNAPSHOT http://yetus.apache.org This message was automatically generated.
        Hide
        brahmareddy Brahma Reddy Battula added a comment -

        Yiqun Lin thanks for your review..

        Uploaded the patch to remove the unused import.

        Show
        brahmareddy Brahma Reddy Battula added a comment - Yiqun Lin thanks for your review.. Uploaded the patch to remove the unused import.
        Hide
        linyiqun Yiqun Lin added a comment -

        Nice catch, change CompressorStream to CompressionOutputStream makes sense for this, +1.

        Show
        linyiqun Yiqun Lin added a comment - Nice catch, change CompressorStream to CompressionOutputStream makes sense for this, +1.
        Hide
        brahmareddy Brahma Reddy Battula added a comment -

        Uploaded the patch, Kindly Review..

        Show
        brahmareddy Brahma Reddy Battula added a comment - Uploaded the patch, Kindly Review..

          People

          • Assignee:
            brahmareddy Brahma Reddy Battula
            Reporter:
            brahmareddy Brahma Reddy Battula
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development