hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r1339909 - /hbase/trunk/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
Date Thu, 17 May 2012 22:54:56 GMT
Author: apurtell
Date: Thu May 17 22:54:56 2012
New Revision: 1339909

URL: http://svn.apache.org/viewvc?rev=1339909&view=rev
Log:
HBASE-6021. NullPointerException when running LoadTestTool without specifying compression
type

Modified:
    hbase/trunk/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java

Modified: hbase/trunk/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java?rev=1339909&r1=1339908&r2=1339909&view=diff
==============================================================================
--- hbase/trunk/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java (original)
+++ hbase/trunk/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java Thu May 17 22:54:56
2012
@@ -280,7 +280,7 @@ public class LoadTestTool extends Abstra
     }
 
     String compressStr = cmd.getOptionValue(OPT_COMPRESSION);
-    compressAlgo = compressStr == null ? null :
+    compressAlgo = compressStr == null ? Compression.Algorithm.NONE :
         Compression.Algorithm.valueOf(compressStr);
 
     String bloomStr = cmd.getOptionValue(OPT_BLOOM);



Mime
View raw message