Bypass error

This commit is contained in:
Andrea Cavalli 2024-03-30 02:44:10 +01:00
parent c57a3d2a45
commit 9e66b17e58
1 changed files with 14 additions and 0 deletions

View File

@ -55,6 +55,20 @@ import org.rocksdb.WriteOptions;
public class EmbeddedDB implements RocksDBSyncAPI, Closeable {
static {
//noinspection ThrowableNotThrown
var exceptionLoadBypass = new RocksDBException("test");
//noinspection ResultOfMethodCallIgnored
exceptionLoadBypass.getMessage();
try {
var clazz = Class.forName("org.rocksdb.RocksDBException");
//noinspection ResultOfMethodCallIgnored
clazz.getSimpleName();
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
}
private static final int INITIAL_DIRECT_READ_BYTE_BUF_SIZE_BYTES = 4096;
public static final long MAX_TRANSACTION_DURATION_MS = 10_000L;
private static final boolean USE_FAST_GET = true;