-
Notifications
You must be signed in to change notification settings - Fork 491
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
HDDS-11347. Add rocks_tools_native lib check in Ozone CLI checknative subcommand #7101
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @smengcl for the patch. Change looks good to me.
@swamirishi Please take a look as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch @smengcl . Changes look good to me apart from a nitpicky question I had.
|
||
// Attempt to load the rocks tools lib | ||
try { | ||
ManagedRawSSTFileReader.loadLibrary(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use NativeLibraryLoader.load(NativeConstants.ROCKS_TOOLS_NATIVE_LIBRARY_NAME) instead? Since we are checking if the rocks tools library gets loaded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Done.
The test failure is weird. I haven't touched anything related to hsync but its failing in one specific test: https://github.com/apache/ozone/actions/runs/10728014894/job/30403969117?pr=7101#step:6:2770
Anyway, I've rebased (merged master) it. Let's see how it goes. |
What changes were proposed in this pull request?
Display rocks-tools native library loading result in Ozone CLI's
checknative
subcommand:What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-11347
How was this patch tested?
Output (Linux):
Output (macOS):