-
Notifications
You must be signed in to change notification settings - Fork 28k
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
[SPARK-45544][CORE] Integrate SSL support into TransportContext #43541
Conversation
cc @mridulm - this should be the final functionality PR for the SSL support (the only other remaining PR is the docs one). |
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.
Just a few minor comments, mostly looks good.
Thanks for working on this @hasnain-db !
common/network-common/src/main/java/org/apache/spark/network/TransportContext.java
Outdated
Show resolved
Hide resolved
common/network-common/src/main/java/org/apache/spark/network/TransportContext.java
Outdated
Show resolved
Hide resolved
common/network-common/src/main/java/org/apache/spark/network/TransportContext.java
Show resolved
Hide resolved
common/network-common/src/main/java/org/apache/spark/network/TransportContext.java
Outdated
Show resolved
Hide resolved
common/network-common/src/main/java/org/apache/spark/network/client/TransportClientFactory.java
Outdated
Show resolved
Hide resolved
.../network-shuffle/src/main/java/org/apache/spark/network/shuffle/ShuffleTransportContext.java
Outdated
Show resolved
Hide resolved
...-shuffle/src/test/java/org/apache/spark/network/shuffle/ExternalShuffleIntegrationSuite.java
Outdated
Show resolved
Hide resolved
...-shuffle/src/test/java/org/apache/spark/network/shuffle/ExternalShuffleIntegrationSuite.java
Outdated
Show resolved
Hide resolved
...ork-shuffle/src/test/java/org/apache/spark/network/shuffle/ShuffleTransportContextSuite.java
Outdated
Show resolved
Hide resolved
...ork-shuffle/src/test/java/org/apache/spark/network/shuffle/ShuffleTransportContextSuite.java
Outdated
Show resolved
Hide resolved
common/network-common/src/main/java/org/apache/spark/network/TransportContext.java
Outdated
Show resolved
Hide resolved
} | ||
}); | ||
if (!future.await(conf.connectionTimeoutMs())) { | ||
logger.info("failed to connect to " + address + " within connection timeout"); |
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.
QQ: Will we have two log messages for the same failure ? Here and in operationComplete
?
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.
I believe so - will remove this.
.../network-shuffle/src/main/java/org/apache/spark/network/shuffle/ShuffleTransportContext.java
Outdated
Show resolved
Hide resolved
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.
Just a couple of minor comments, mostly looks good.
The test |
Merged to master. |
@hasnain-db , can you link all the individual jira's to the original jira please ? |
@mridulm I see them all linked as child JIRAs on https://issues.apache.org/jira/browse/SPARK-44937 -- let's continue the conversation there if you do not see them? |
Sigh, it does not show up if you are not logged in ... did not realize I had gotten logged out of jira. |
What changes were proposed in this pull request?
This integrates SSL support into TransportContext and related modules so that the RPC SSL functionality can work when properly configured.
Why are the changes needed?
This is needed in order to support SSL for RPC connections.
Does this PR introduce any user-facing change?
No
How was this patch tested?
CI
Ran the following tests:
I verified traffic was encrypted using TLS using two mechanisms:
Was this patch authored or co-authored using generative AI tooling?
No