hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r1534353 - /hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
Date Mon, 21 Oct 2013 19:58:33 GMT
Author: apurtell
Date: Mon Oct 21 19:58:32 2013
New Revision: 1534353

URL: http://svn.apache.org/r1534353
Log:
HBASE-9716. LoadTestTool should provide default min and max settings to the data generator

Modified:
    hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java

Modified: hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java?rev=1534353&r1=1534352&r2=1534353&view=diff
==============================================================================
--- hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
(original)
+++ hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
Mon Oct 21 19:58:32 2013
@@ -61,6 +61,9 @@ public class LoadTestTool extends Abstra
   /** Column families used by the test */
   protected static final byte[][] COLUMN_FAMILIES = { COLUMN_FAMILY };
 
+  /** The default data size if not specified */
+  protected static final int DEFAULT_DATA_SIZE = 64;
+
   /** The number of reader/writer threads if not specified */
   protected static final int DEFAULT_NUM_THREADS = 20;
 
@@ -139,7 +142,7 @@ public class LoadTestTool extends Abstra
   // Writer options
   protected int numWriterThreads = DEFAULT_NUM_THREADS;
   protected int minColsPerKey, maxColsPerKey;
-  protected int minColDataSize, maxColDataSize;
+  protected int minColDataSize = DEFAULT_DATA_SIZE, maxColDataSize = DEFAULT_DATA_SIZE;
   protected boolean isMultiPut;
 
   // Updater options



Mime
View raw message