Fix rocksexception

This commit is contained in:
Andrea Cavalli 2024-03-30 02:51:07 +01:00
parent e038effde9
commit 82b2848222
2 changed files with 5 additions and 14 deletions

View File

@ -50,6 +50,11 @@
},
{
"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,
"allPublicClasses": true,
"queryAllDeclaredConstructors": true,

View File

@ -55,20 +55,6 @@ 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;