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
Isolate zk client config for suppressing authentication #9438
Conversation
Merged build finished. Test PASSed. |
Test PASSed. |
@bf8086 @madanadit PTAL. Thanks! |
@@ -57,7 +57,8 @@ | |||
</dependency> | |||
<dependency> | |||
<groupId>io.netty</groupId> | |||
<artifactId>netty-all</artifactId> | |||
<artifactId>netty</artifactId> | |||
<version>3.7.0.Final</version> |
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.
why change the version only for this specific module?
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.
This module uses ConcurrentIdentityMap
implementation from netty which is dropped after this version. And that's the only use of netty from this module.
Actually we don't need an explicit netty dependency anymore. I can have another PR to remove netty dependencies throughout the code. (Locally I tested that removing netty dependencies, except this one, has no effect on build.)
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.
did you create a tech dept issue for this?
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.
If we can remove the direct dependency on Netty that would be helpful. (In a separate effort of course)
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.
Created #9449
core/common/src/main/java/alluxio/master/ZkMasterInquireClient.java
Outdated
Show resolved
Hide resolved
Merged build finished. Test FAILed. |
Test FAILed. |
core/common/src/main/java/alluxio/master/MasterInquireClient.java
Outdated
Show resolved
Hide resolved
Merged build finished. Test FAILed. |
Test FAILed. |
Merged build finished. Test FAILed. |
Test FAILed. |
Merged build finished. Test FAILed. |
Test FAILed. |
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 you also add documentation for the new param?
core/common/src/main/java/alluxio/master/ZkMasterInquireClient.java
Outdated
Show resolved
Hide resolved
Merged build finished. Test PASSed. |
Test PASSed. |
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.
LGTM. Thanks!
@madanadit PTAL. |
Merged build finished. Test PASSed. |
Test PASSed. |
@@ -57,7 +57,8 @@ | |||
</dependency> | |||
<dependency> | |||
<groupId>io.netty</groupId> | |||
<artifactId>netty-all</artifactId> | |||
<artifactId>netty</artifactId> | |||
<version>3.7.0.Final</version> |
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.
did you create a tech dept issue for this?
@@ -525,7 +525,13 @@ public String toString() { | |||
.setDescription("Session timeout to use when connecting to Zookeeper") | |||
.setConsistencyCheckLevel(ConsistencyCheckLevel.WARN) | |||
.build(); | |||
|
|||
public static final PropertyKey ZOOKEEPER_AUTH_ENABLED = | |||
new Builder(Name.ZOOKEEPER_AUTH_ENABLED) |
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.
@ns1123 FYI.
alluxio-bot, merge this please. |
alluxio-bot, cherry-pick this to branch-2.0 please. |
Auto cherry-pick successful to branch: branch-2.0 |
@ggezer please cherry-pick to branch-1.8 |
For when more than one zk servers are accessed within a single jvm, global authentication settings are shared via system properties. This PR bumps zk client version for getting a support for client config isolation and makes use of it. Curator has also been updated for compatibility. pr-link: Alluxio#9438 change-id: cid-d9607acb78abb6550721a741de095ad2c2e2acd8
For when more than one zk servers are accessed within a single jvm, global authentication settings are shared via system properties. This PR bumps zk client version for getting a support for client config isolation and makes use of it. Curator has also been updated for compatibility. pr-link: Alluxio#9438 change-id: cid-d9607acb78abb6550721a741de095ad2c2e2acd8
For when more than one zk servers are accessed within a single jvm, global authentication settings are shared via system properties. This PR bumps zk client version for getting a support for client config isolation and makes use of it. Curator has also been updated for compatibility.