Permalink
Browse files

Fix for weird divide by zero error... not sure how I didn't hit this …

…before
  • Loading branch information...
1 parent 89b1148 commit a5e5662b583b6bfdfa884c95a051ca62542276e7 @apavlo committed Apr 3, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 tests/frontend/org/voltdb/benchmark/tpcc/MultiLoader.java
View
5 tests/frontend/org/voltdb/benchmark/tpcc/MultiLoader.java
@@ -77,7 +77,7 @@
private final LoadThread m_loadThreads[];
final TPCCConfig m_tpccConfig;
- private int MAX_BATCH_SIZE = 10000;
+ private int MAX_BATCH_SIZE = 5000;
private static final VoltTable.ColumnInfo customerTableColumnInfo[] = new VoltTable.ColumnInfo[] {
new VoltTable.ColumnInfo("C_ID", VoltType.INTEGER), new VoltTable.ColumnInfo("C_D_ID", VoltType.TINYINT),
@@ -97,9 +97,6 @@ public MultiLoader(String args[]) {
if (LOG.isDebugEnabled())
LOG.debug("Loader Configuration:\n" + m_tpccConfig);
- // HACK
- MAX_BATCH_SIZE *= Math.min(1000, (10 / m_tpccConfig.num_warehouses));
-
HStoreConf hstore_conf = this.getHStoreConf();
for (int ii = 0; ii < m_tpccConfig.num_loadthreads; ii++) {
ScaleParameters parameters = ScaleParameters.makeWithScaleFactor(m_tpccConfig.num_warehouses, hstore_conf.client.scalefactor);

0 comments on commit a5e5662

Please sign in to comment.