Skip to content
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

Merged
merged 7 commits into from Jul 11, 2019

Conversation

ggezer
Copy link
Contributor

@ggezer ggezer commented Jul 9, 2019

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.

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4532/
Test PASSed.

@ggezer
Copy link
Contributor Author

ggezer commented Jul 9, 2019

@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>
Copy link
Contributor

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?

Copy link
Contributor Author

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.)

Copy link
Contributor

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?

Copy link
Contributor

@calvinjia calvinjia Jul 11, 2019

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)

Copy link
Contributor Author

@ggezer ggezer Jul 11, 2019

Choose a reason for hiding this comment

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

Created #9449

@AmplabJenkins
Copy link

Merged build finished. Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4537/
Test FAILed.

@AmplabJenkins
Copy link

Merged build finished. Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4540/
Test FAILed.

@AmplabJenkins
Copy link

Merged build finished. Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4541/
Test FAILed.

@AmplabJenkins
Copy link

Merged build finished. Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4542/
Test FAILed.

Copy link
Contributor

@madanadit madanadit left a 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?

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4544/
Test PASSed.

Copy link
Contributor

@bf8086 bf8086 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@ggezer
Copy link
Contributor Author

ggezer commented Jul 11, 2019

@madanadit PTAL.

@ZacBlanco ZacBlanco removed their assignment Jul 11, 2019
@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4548/
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>
Copy link
Contributor

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)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ns1123 FYI.

@madanadit
Copy link
Contributor

alluxio-bot, merge this please.

@alluxio-bot alluxio-bot merged commit 22e0027 into Alluxio:master Jul 11, 2019
@madanadit
Copy link
Contributor

alluxio-bot, cherry-pick this to branch-2.0 please.

@alluxio-bot
Copy link
Contributor

Auto cherry-pick successful to branch: branch-2.0

alluxio-bot pushed a commit that referenced this pull request Jul 11, 2019
Auto cherry-pick of existing commit.
orig-pr: #9438
orig-commit: 22e0027
orig-commit-author: Göktürk Gezer <gokturk@alluxio.com>

pr-link: #9438
change-id: cid-d9607acb78abb6550721a741de095ad2c2e2acd8
@madanadit
Copy link
Contributor

@ggezer please cherry-pick to branch-1.8

ggezer pushed a commit to ggezer/alluxio that referenced this pull request Jul 12, 2019
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
alluxio-bot pushed a commit that referenced this pull request Jul 12, 2019
Cherry-pick of existing commit.
orig-pr: #9438
orig-commit: 22e0027
orig-commit-author: Göktürk Gezer <gokturk@alluxio.com>

pr-link: #9451
change-id: cid-d9607acb78abb6550721a741de095ad2c2e2acd8
jiacheliu3 pushed a commit to jiacheliu3/alluxio that referenced this pull request Nov 12, 2019
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants