-
Notifications
You must be signed in to change notification settings - Fork 237
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
Use SecureRandom for UCPListener TCP port choice #2810
Use SecureRandom for UCPListener TCP port choice #2810
Conversation
Signed-off-by: Alessandro Bellina <abellina@nvidia.com>
Side note: I did check in this scenario that With the default algorithm |
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.
Small nit but otherwise lgtm.
@@ -183,6 +183,7 @@ class UCX(transport: UCXShuffleTransport, executor: BlockManagerId, rapidsConf: | |||
worker = context.newWorker(workerParams) | |||
logInfo(s"UCX Worker created") | |||
if (rapidsConf.shuffleUcxUseSockaddr) { | |||
val secureRandom = new SecureRandom() |
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.
Nit: Why not move this within the one block that needs it? If the port is specified in the conf then this will still construct an unused instance.
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.
Fixed!
build |
Signed-off-by: Alessandro Bellina abellina@nvidia.com
Please note that once UCX 1.11 is released, we will remove the need for this choice since UCX will delegate to the kernel to set the ephemeral port.