Skip to content

HDDS-9078. Set ratis.thirdparty.io.netty.native.workdir as OZONE home temp directory #5111

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

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

ashishkumar50
Copy link
Contributor

What changes were proposed in this pull request?

When there is noexec permission on /tmp directory, While executing ozone shell it prompts warning related to netty working directory.
/tmp/liborg_apache_ratis_thirdparty_netty_transport_native_epoll_x86_646071388068053995247.so exists but cannot be executed even when execute permissions set; check volume for "noexec" flag; use -Dorg.apache.ratis.thirdparty.io.netty.native.workdir=[path] to set native working directory separately.
In this PR moving netty working directory inside Ozone home temp directory.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-9078

How was this patch tested?

Verification pending in cluster

@ashishkumar50
Copy link
Contributor Author

@duongkame @szetszwo @sumitagrawl Please help to review.

Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 the change looks good.

@@ -78,6 +78,7 @@ function ozonecmd_case
# This parameter significantly reduces GC pressure for Datanode.
# Corresponding Ratis issue https://issues.apache.org/jira/browse/RATIS-534.
RATIS_OPTS="-Dorg.apache.ratis.thirdparty.io.netty.allocator.useCacheForAllThreads=false ${RATIS_OPTS}"
OZONE_OPTS="-Dorg.apache.ratis.thirdparty.io.netty.native.workdir=${OZONE_HOME}/temp ${OZONE_OPTS}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@szetszwo does this look safe to you?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to https://netty.io/4.0/xref/io/netty/util/internal/NativeLibraryLoader.html , the change here is to use Ozone temp dir instead of the perform temp dir. So, it seems okay.

@arp7 , do you see any problems which may occur?

@sodonnel sodonnel merged commit 6db519a into apache:master Aug 30, 2023
ChenSammi added a commit that referenced this pull request Nov 20, 2023
ashishkumar50 added a commit to ashishkumar50/ozone that referenced this pull request Nov 20, 2023
ChenSammi pushed a commit that referenced this pull request Nov 20, 2023
jojochuang pushed a commit to jojochuang/ozone that referenced this pull request Feb 1, 2024
…orkdir as OZONE home temp directory. (apache#5111)" (apache#5630)

(cherry picked from commit 9934cd6)
Change-Id: Iab760d08fdab16b7c500db3a9d0d5e9b8617d34b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants