Fix rocksexception
This commit is contained in:
parent
e038effde9
commit
82b2848222
@ -50,6 +50,11 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name" : "org.rocksdb.RocksDBException",
|
"name" : "org.rocksdb.RocksDBException",
|
||||||
|
"methods": [
|
||||||
|
{ "name" : "<init>", "parameterTypes" : ["java.lang.String"] },
|
||||||
|
{ "name" : "<init>", "parameterTypes" : ["java.lang.String", "org.rocksdb.Status"] },
|
||||||
|
{ "name" : "<init>", "parameterTypes" : ["org.rocksdb.Status"] }
|
||||||
|
],
|
||||||
"allPublicConstructors": true,
|
"allPublicConstructors": true,
|
||||||
"allPublicClasses": true,
|
"allPublicClasses": true,
|
||||||
"queryAllDeclaredConstructors": true,
|
"queryAllDeclaredConstructors": true,
|
||||||
|
@ -55,20 +55,6 @@ import org.rocksdb.WriteOptions;
|
|||||||
|
|
||||||
public class EmbeddedDB implements RocksDBSyncAPI, Closeable {
|
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;
|
private static final int INITIAL_DIRECT_READ_BYTE_BUF_SIZE_BYTES = 4096;
|
||||||
public static final long MAX_TRANSACTION_DURATION_MS = 10_000L;
|
public static final long MAX_TRANSACTION_DURATION_MS = 10_000L;
|
||||||
private static final boolean USE_FAST_GET = true;
|
private static final boolean USE_FAST_GET = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user