Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream tests fails to run with “java.lang.UnsatisfiedLinkError: 'long org.rocksdb.LRUCache.newLRUCache(long, int, boolean, double)'” #2550

Closed
dlg99 opened this issue Jan 26, 2021 · 0 comments
Assignees
Labels

Comments

@dlg99
Copy link
Contributor

dlg99 commented Jan 26, 2021

BUG REPORT

Describe the bug

Stream tests fails to run with “java.lang.UnsatisfiedLinkError: 'long org.rocksdb.LRUCache.newLRUCache(long, int, boolean, double)'”

To Reproduce

cd bookkeeper/stream/statelib
mvn clean install -DskipTests
mvn test -DstreamTests -Dtest=org.apache.bookkeeper.statelib.impl.rocksdb.checkpoint.RocksCheckpointerTest

Fails to run with “java.lang.UnsatisfiedLinkError: 'long org.rocksdb.LRUCache.newLRUCache(long, int, boolean, double)'”

Expected behavior

test passes

@dlg99 dlg99 added the type/bug label Jan 26, 2021
@dlg99 dlg99 self-assigned this Jan 26, 2021
eolivelli pushed a commit that referenced this issue Jan 28, 2021
Descriptions of the changes in this PR:

Fixed tests for /stream, RocksDB initialization.
Same as #2551 but for master branch

### Motivation

Tests were failing with " “java.lang.UnsatisfiedLinkError: 'long org.rocksdb.LRUCache.newLRUCache(long, int, boolean, double)'”".

### Changes

Fixed following suggestion form facebook/rocksdb#6789
Added
`    static {
        RocksDB.loadLibrary();
    }`
to extract the native library from the jar file etc.

Master Issue: #2550




Reviewers: Enrico Olivelli <eolivelli@gmail.com>

This closes #2554 from dlg99/master-streams-tests
eolivelli pushed a commit that referenced this issue Jan 28, 2021
Descriptions of the changes in this PR:

Fixed tests for /stream, RocksDB initialization.
Same as #2551 but for master branch

### Motivation

Tests were failing with " “java.lang.UnsatisfiedLinkError: 'long org.rocksdb.LRUCache.newLRUCache(long, int, boolean, double)'”".

### Changes

Fixed following suggestion form facebook/rocksdb#6789
Added
`    static {
        RocksDB.loadLibrary();
    }`
to extract the native library from the jar file etc.

Master Issue: #2550

Reviewers: Enrico Olivelli <eolivelli@gmail.com>

This closes #2554 from dlg99/master-streams-tests

(cherry picked from commit 73b4cd4)
Signed-off-by: Enrico Olivelli <eolivelli@apache.org>
eolivelli pushed a commit that referenced this issue Jan 28, 2021
Descriptions of the changes in this PR:

Fixed tests for /stream, RocksDB initialization.
Same as #2551 but for master branch

### Motivation

Tests were failing with " “java.lang.UnsatisfiedLinkError: 'long org.rocksdb.LRUCache.newLRUCache(long, int, boolean, double)'”".

### Changes

Fixed following suggestion form facebook/rocksdb#6789
Added
`    static {
        RocksDB.loadLibrary();
    }`
to extract the native library from the jar file etc.

Master Issue: #2550

Reviewers: Enrico Olivelli <eolivelli@gmail.com>

This closes #2554 from dlg99/master-streams-tests

(cherry picked from commit 73b4cd4)
Signed-off-by: Enrico Olivelli <eolivelli@apache.org>
eolivelli pushed a commit that referenced this issue Jan 28, 2021
Descriptions of the changes in this PR:

Fixed tests for /stream, RocksDB initialization.
Same as #2551 but for master branch

### Motivation

Tests were failing with " “java.lang.UnsatisfiedLinkError: 'long org.rocksdb.LRUCache.newLRUCache(long, int, boolean, double)'”".

### Changes

Fixed following suggestion form facebook/rocksdb#6789
Added
`    static {
        RocksDB.loadLibrary();
    }`
to extract the native library from the jar file etc.

Master Issue: #2550

Reviewers: Enrico Olivelli <eolivelli@gmail.com>

This closes #2554 from dlg99/master-streams-tests

(cherry picked from commit 73b4cd4)
Signed-off-by: Enrico Olivelli <eolivelli@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants