Rudimentary test cases for setIncreaseParallelism

main
Adam Retter 10 years ago
parent eda0dcdd97
commit 17e84f2151
  1. 14
      java/org/rocksdb/test/DBOptionsTest.java
  2. 14
      java/org/rocksdb/test/OptionsTest.java

@ -73,6 +73,20 @@ public class DBOptionsTest {
new Properties());
}
@Test
public void setIncreaseParallelism() {
DBOptions opt = null;
try {
opt = new DBOptions();
final int threads = Runtime.getRuntime().availableProcessors() * 2;
opt.setIncreaseParallelism(threads);
} finally {
if (opt != null) {
opt.dispose();
}
}
}
@Test
public void createIfMissing() {
DBOptions opt = null;

@ -22,6 +22,20 @@ public class OptionsTest {
public static final Random rand = PlatformRandomHelper.
getPlatformSpecificRandomFactory();
@Test
public void setIncreaseParallelism() {
Options opt = null;
try {
opt = new Options();
final int threads = Runtime.getRuntime().availableProcessors() * 2;
opt.setIncreaseParallelism(threads);
} finally {
if (opt != null) {
opt.dispose();
}
}
}
@Test
public void writeBufferSize() throws RocksDBException {
Options opt = null;

Loading…
Cancel
Save