chungen0126 opened a new pull request, #7290: URL: https://github.com/apache/ozone/pull/7290
## What changes were proposed in this pull request? Not sure how important of the NativeLibraryNotLoadedException. Keep seeing the following ERROR in the OM log. If it is important, it should throw the exception out and stop OM; otherwise, change it to WARN and consider not printing the stack trace. ``` 024-09-24 23:02:20,241 ERROR [main]-org.apache.hadoop.ozone.om.snapshot.SnapshotDiffManager: Native Library for raw sst file reading loading failed. org.apache.hadoop.hdds.utils.NativeLibraryNotLoadedException: Unable to load library ozone_rocksdb_tools from both java.library.path & resource file libozone_rocksdb_tools.so from jar. at org.apache.hadoop.hdds.utils.db.managed.ManagedRawSSTFileReader.loadLibrary(ManagedRawSSTFileReader.java:40) at org.apache.hadoop.ozone.om.snapshot.SnapshotDiffManager.initNativeLibraryForEfficientDiff(SnapshotDiffManager.java:292) at org.apache.hadoop.ozone.om.snapshot.SnapshotDiffManager.<init>(SnapshotDiffManager.java:266) at org.apache.hadoop.ozone.om.OmSnapshotManager.<init>(OmSnapshotManager.java:278) at org.apache.hadoop.ozone.om.OzoneManager.instantiateServices(OzoneManager.java:847) at org.apache.hadoop.ozone.om.OzoneManager.<init>(OzoneManager.java:674) at org.apache.hadoop.ozone.om.OzoneManager.createOm(OzoneManager.java:759) at org.apache.hadoop.ozone.om.OzoneManagerStarter$OMStarterHelper.start(OzoneManagerStarter.java:189) at org.apache.hadoop.ozone.om.OzoneManagerStarter.startOm(OzoneManagerStarter.java:86) at org.apache.hadoop.ozone.om.OzoneManagerStarter.call(OzoneManagerStarter.java:74) at org.apache.hadoop.hdds.cli.GenericCli.call(GenericCli.java:38) ... at org.apache.hadoop.hdds.cli.GenericCli.run(GenericCli.java:91) at org.apache.hadoop.ozone.om.OzoneManagerStarter.main(OzoneManagerStarter.java:58) ``` Please describe your PR in detail: Using native libs to read raw sst file is set by default. If the native libs were not loaded, `SnapshotDiffManager` handles deltas instead. I think log warn message is fine, since `SnapshotDiffManager sill works. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-11486 ## How was this patch tested? CI: https://github.com/chungen0126/ozone/actions/runs/11253054528 -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
