txn.createDatabase(dbName, numIndices);
for (int j = 0; j < numKVPairs; j++) {
String kv = intToString(j, ("" + numKVPairs).length());
txn.insertRecord(dbName, j % numIndices, kv.getBytes(), kv.getBytes());
}
dbMan.executeTransaction(txn);
}
if (errors.size() > 0)
throw errors.get(0);