From 38a73883b230a38aac529fecb44f0161017728de Mon Sep 17 00:00:00 2001 From: Andrey Yegorov Date: Tue, 26 Jan 2021 09:42:21 -0800 Subject: [PATCH] Fixed failing tests for /stream. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tests were failing with " “java.lang.UnsatisfiedLinkError: 'long org.rocksdb.LRUCache.newLRUCache(long, int, boolean, double)'”". Fixed following suggestion form https://github.com/facebook/rocksdb/issues/6789 --- .../apache/bookkeeper/statelib/impl/kv/RocksdbKVStore.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stream/statelib/src/main/java/org/apache/bookkeeper/statelib/impl/kv/RocksdbKVStore.java b/stream/statelib/src/main/java/org/apache/bookkeeper/statelib/impl/kv/RocksdbKVStore.java index 0c4b95f9a21..fabf1e4bd15 100644 --- a/stream/statelib/src/main/java/org/apache/bookkeeper/statelib/impl/kv/RocksdbKVStore.java +++ b/stream/statelib/src/main/java/org/apache/bookkeeper/statelib/impl/kv/RocksdbKVStore.java @@ -127,6 +127,10 @@ public class RocksdbKVStore implements KVStore { // rocksdb checkpointer private RocksCheckpointer checkpointer; + static { + RocksDB.loadLibrary(); + } + public RocksdbKVStore() { // initialize the iterators set this.kvIters = Collections.synchronizedSet(Sets.newHashSet());