Skip to content
This repository
Browse code

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

…before
  • Loading branch information...
commit a5e5662b583b6bfdfa884c95a051ca62542276e7 1 parent 89b1148
Andy Pavlo authored
5 tests/frontend/org/voltdb/benchmark/tpcc/MultiLoader.java
@@ -77,7 +77,7 @@
77 77 private final LoadThread m_loadThreads[];
78 78 final TPCCConfig m_tpccConfig;
79 79
80   - private int MAX_BATCH_SIZE = 10000;
  80 + private int MAX_BATCH_SIZE = 5000;
81 81
82 82 private static final VoltTable.ColumnInfo customerTableColumnInfo[] = new VoltTable.ColumnInfo[] {
83 83 new VoltTable.ColumnInfo("C_ID", VoltType.INTEGER), new VoltTable.ColumnInfo("C_D_ID", VoltType.TINYINT),
@@ -97,9 +97,6 @@ public MultiLoader(String args[]) {
97 97 if (LOG.isDebugEnabled())
98 98 LOG.debug("Loader Configuration:\n" + m_tpccConfig);
99 99
100   - // HACK
101   - MAX_BATCH_SIZE *= Math.min(1000, (10 / m_tpccConfig.num_warehouses));
102   -
103 100 HStoreConf hstore_conf = this.getHStoreConf();
104 101 for (int ii = 0; ii < m_tpccConfig.num_loadthreads; ii++) {
105 102 ScaleParameters parameters = ScaleParameters.makeWithScaleFactor(m_tpccConfig.num_warehouses, hstore_conf.client.scalefactor);

0 comments on commit a5e5662

Please sign in to comment.
Something went wrong with that request. Please try again.