Rudimentary test cases for setIncreaseParallelism
This commit is contained in:
parent
eda0dcdd97
commit
17e84f2151
@ -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…
Reference in New Issue
Block a user