HBase
  1. HBase
  2. HBASE-6021

NullPointerException when running LoadTestTool without specifying compression type

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.94.1, 0.95.2
    • Fix Version/s: 0.94.1, 0.95.0
    • Component/s: util
    • Labels:
      None
    • Environment:

      Hadoop 1.0.2, HBase 0.94.0

    • Hadoop Flags:
      Reviewed

      Description

      If you don't specify a compression type on the LoadTestTool command line then this happens:

      12/05/16 18:41:23 ERROR util.AbstractHBaseTool: Error running command-line tool
      java.lang.NullPointerException
      	at org.apache.hadoop.hbase.HColumnDescriptor.setCompressionType(HColumnDescriptor.java:535)
      	at org.apache.hadoop.hbase.HBaseTestingUtility.createPreSplitLoadTestTable(HBaseTestingUtility.java:1885)
      	at org.apache.hadoop.hbase.util.LoadTestTool.doWork(LoadTestTool.java:297)
      	at org.apache.hadoop.hbase.util.AbstractHBaseTool.run(AbstractHBaseTool.java:103)
      	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
      	at org.apache.hadoop.hbase.util.AbstractHBaseTool.doStaticMain(AbstractHBaseTool.java:173)
      	at org.apache.hadoop.hbase.util.LoadTestTool.main(LoadTestTool.java:341)
      

      This should be handled better.

      1. 6021.patch
        0.6 kB
        Andrew Purtell

        Issue Links

          Activity

          Hide
          Andrew Purtell added a comment -

          Trivial patch.

          Show
          Andrew Purtell added a comment - Trivial patch.
          Hide
          Hadoop QA added a comment -

          -1 overall. Here are the results of testing the latest attachment
          http://issues.apache.org/jira/secure/attachment/12527728/6021.patch
          against trunk revision .

          +1 @author. The patch does not contain any @author tags.

          +1 tests included. The patch appears to include 3 new or modified tests.

          +1 hadoop23. The patch compiles against the hadoop 0.23.x profile.

          +1 javadoc. The javadoc tool did not generate any warning messages.

          +1 javac. The applied patch does not increase the total number of javac compiler warnings.

          -1 findbugs. The patch appears to introduce 31 new Findbugs (version 1.3.9) warnings.

          +1 release audit. The applied patch does not increase the total number of release audit warnings.

          -1 core tests. The patch failed these unit tests:
          org.apache.hadoop.hbase.regionserver.TestSplitTransactionOnCluster
          org.apache.hadoop.hbase.master.TestSplitLogManager

          Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/1900//testReport/
          Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/1900//artifact/trunk/patchprocess/newPatchFindbugsWarnings.html
          Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/1900//console

          This message is automatically generated.

          Show
          Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12527728/6021.patch against trunk revision . +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 3 new or modified tests. +1 hadoop23. The patch compiles against the hadoop 0.23.x profile. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. -1 findbugs. The patch appears to introduce 31 new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. -1 core tests. The patch failed these unit tests: org.apache.hadoop.hbase.regionserver.TestSplitTransactionOnCluster org.apache.hadoop.hbase.master.TestSplitLogManager Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/1900//testReport/ Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/1900//artifact/trunk/patchprocess/newPatchFindbugsWarnings.html Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/1900//console This message is automatically generated.
          Hide
          Andrew Purtell added a comment -

          Will commit this soon if no objections.

          Show
          Andrew Purtell added a comment - Will commit this soon if no objections.
          Hide
          Lars Hofhansl added a comment -

          +1

          Show
          Lars Hofhansl added a comment - +1
          Hide
          Andrew Purtell added a comment -

          Shall I commit HBASE-5124 too/first Lars?

          Show
          Andrew Purtell added a comment - Shall I commit HBASE-5124 too/first Lars?
          Hide
          Andrew Purtell added a comment - - edited

          Committed to trunk, 0.94, and 0.92 branches. Confirmed no more NPE running the tool without specifying compression in all-localhost testing.

          Show
          Andrew Purtell added a comment - - edited Committed to trunk, 0.94, and 0.92 branches. Confirmed no more NPE running the tool without specifying compression in all-localhost testing.
          Hide
          Hudson added a comment -

          Integrated in HBase-TRUNK #2896 (See https://builds.apache.org/job/HBase-TRUNK/2896/)
          HBASE-6021. NullPointerException when running LoadTestTool without specifying compression type (Revision 1339909)

          Result = FAILURE
          apurtell :
          Files :

          • /hbase/trunk/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
          Show
          Hudson added a comment - Integrated in HBase-TRUNK #2896 (See https://builds.apache.org/job/HBase-TRUNK/2896/ ) HBASE-6021 . NullPointerException when running LoadTestTool without specifying compression type (Revision 1339909) Result = FAILURE apurtell : Files : /hbase/trunk/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
          Hide
          Hudson added a comment -

          Integrated in HBase-0.94 #198 (See https://builds.apache.org/job/HBase-0.94/198/)
          HBASE-6021. NullPointerException when running LoadTestTool without specifying compression type (Revision 1339911)

          Result = FAILURE
          apurtell :
          Files :

          • /hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
          Show
          Hudson added a comment - Integrated in HBase-0.94 #198 (See https://builds.apache.org/job/HBase-0.94/198/ ) HBASE-6021 . NullPointerException when running LoadTestTool without specifying compression type (Revision 1339911) Result = FAILURE apurtell : Files : /hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
          Hide
          Hudson added a comment -

          Integrated in HBase-TRUNK-on-Hadoop-2.0.0 #8 (See https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-2.0.0/8/)
          HBASE-6021. NullPointerException when running LoadTestTool without specifying compression type (Revision 1339909)

          Result = FAILURE
          apurtell :
          Files :

          • /hbase/trunk/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
          Show
          Hudson added a comment - Integrated in HBase-TRUNK-on-Hadoop-2.0.0 #8 (See https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-2.0.0/8/ ) HBASE-6021 . NullPointerException when running LoadTestTool without specifying compression type (Revision 1339909) Result = FAILURE apurtell : Files : /hbase/trunk/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
          Hide
          Hudson added a comment -

          Integrated in HBase-0.92 #410 (See https://builds.apache.org/job/HBase-0.92/410/)
          HBASE-6021. NullPointerException when running LoadTestTool without specifying compression type (Revision 1339912)

          Result = FAILURE
          apurtell :
          Files :

          • /hbase/branches/0.92/CHANGES.txt
          • /hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
          Show
          Hudson added a comment - Integrated in HBase-0.92 #410 (See https://builds.apache.org/job/HBase-0.92/410/ ) HBASE-6021 . NullPointerException when running LoadTestTool without specifying compression type (Revision 1339912) Result = FAILURE apurtell : Files : /hbase/branches/0.92/CHANGES.txt /hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
          Hide
          Hudson added a comment -

          Integrated in HBase-0.92-security #107 (See https://builds.apache.org/job/HBase-0.92-security/107/)
          HBASE-6021. NullPointerException when running LoadTestTool without specifying compression type (Revision 1339912)

          Result = FAILURE
          apurtell :
          Files :

          • /hbase/branches/0.92/CHANGES.txt
          • /hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
          Show
          Hudson added a comment - Integrated in HBase-0.92-security #107 (See https://builds.apache.org/job/HBase-0.92-security/107/ ) HBASE-6021 . NullPointerException when running LoadTestTool without specifying compression type (Revision 1339912) Result = FAILURE apurtell : Files : /hbase/branches/0.92/CHANGES.txt /hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
          Hide
          Hudson added a comment -

          Integrated in HBase-0.94-security #27 (See https://builds.apache.org/job/HBase-0.94-security/27/)
          HBASE-6021. NullPointerException when running LoadTestTool without specifying compression type (Revision 1339911)

          Result = SUCCESS
          apurtell :
          Files :

          • /hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
          Show
          Hudson added a comment - Integrated in HBase-0.94-security #27 (See https://builds.apache.org/job/HBase-0.94-security/27/ ) HBASE-6021 . NullPointerException when running LoadTestTool without specifying compression type (Revision 1339911) Result = SUCCESS apurtell : Files : /hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java

            People

            • Assignee:
              Andrew Purtell
              Reporter:
              Andrew Purtell
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development