LsomeYeah opened a new pull request, #6297:
URL: https://github.com/apache/paimon/pull/6297
<!-- Please specify the module before the PR name: [core] ... or [flink] ...
-->
### Purpose
<!-- Linking this pull request to the issue -->
Linked issue: close #xxx
<!-- What is the purpose of the change -->
```java
public RocksDBStateFactory(
String path, org.apache.paimon.options.Options conf, @Nullable
Duration ttlSecs)
throws IOException {
DBOptions dbOptions =
RocksDBOptions.createDBOptions(
new DBOptions()
.setUseFsync(false)
.setStatsDumpPeriodSec(0)
.setCreateIfMissing(true),
conf);
// ignore
}
public class DBOptions extends RocksObject
implements DBOptionsInterface<DBOptions>,
MutableDBOptionsInterface<DBOptions> {
static {
RocksDB.loadLibrary();
}
// ignore
}
```
When init `RocksDBStateFactory`, `RocksDB.loadLibrary()` will be invoked in
static segments of `DBOptions.class`, and if some exceptions or errors occured
when loading library, we can not get detailed information about the exception.
This pr will load library in advance and catch the exception or error.
### Tests
<!-- List UT and IT cases to verify this change -->
### API and Format
<!-- Does this change affect API or storage format -->
### Documentation
<!-- Does this change introduce a new feature -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]