[SPARK-45798][CONNECT] Assert server-side session ID#43664
Closed
grundprinzip wants to merge 18 commits intoapache:masterfrom
Closed
[SPARK-45798][CONNECT] Assert server-side session ID#43664grundprinzip wants to merge 18 commits intoapache:masterfrom
grundprinzip wants to merge 18 commits intoapache:masterfrom
Conversation
connector/connect/common/src/main/protobuf/spark/connect/base.proto
Outdated
Show resolved
Hide resolved
...mmon/src/main/scala/org/apache/spark/sql/connect/client/CustomSparkConnectBlockingStub.scala
Outdated
Show resolved
Hide resolved
...mmon/src/main/scala/org/apache/spark/sql/connect/client/CustomSparkConnectBlockingStub.scala
Outdated
Show resolved
Hide resolved
...mmon/src/main/scala/org/apache/spark/sql/connect/client/CustomSparkConnectBlockingStub.scala
Outdated
Show resolved
Hide resolved
...main/scala/org/apache/spark/sql/connect/client/ExecutePlanResponseReattachableIterator.scala
Show resolved
Hide resolved
...ctor/connect/common/src/main/scala/org/apache/spark/sql/connect/client/ArtifactManager.scala
Show resolved
Hide resolved
.../server/src/main/scala/org/apache/spark/sql/connect/service/SparkConnectAnalyzeHandler.scala
Outdated
Show resolved
Hide resolved
...onnect/common/src/main/scala/org/apache/spark/sql/connect/client/SparkConnectStubState.scala
Outdated
Show resolved
Hide resolved
...onnect/common/src/main/scala/org/apache/spark/sql/connect/client/SparkConnectStubState.scala
Outdated
Show resolved
Hide resolved
...onnect/common/src/main/scala/org/apache/spark/sql/connect/client/SparkConnectStubState.scala
Outdated
Show resolved
Hide resolved
...ver/src/test/scala/org/apache/spark/sql/connect/service/SparkConnectSessionHolderSuite.scala
Outdated
Show resolved
Hide resolved
...onnect/common/src/main/scala/org/apache/spark/sql/connect/client/SparkConnectStubState.scala
Outdated
Show resolved
Hide resolved
juliuszsompolski
approved these changes
Nov 7, 2023
juliuszsompolski
approved these changes
Nov 8, 2023
Contributor
juliuszsompolski
left a comment
There was a problem hiding this comment.
LGTM
Would be good if someone knowing python looked at it (@HyukjinKwon ?) but it looks good to me.
Contributor
|
https://github.com/grundprinzip/spark/actions/runs/6796293583/job/18489636721 looks like it flaked out after already running all connect tests successfuly. |
HyukjinKwon
approved these changes
Nov 10, 2023
Member
|
Merged to master. |
HyukjinKwon
pushed a commit
that referenced
this pull request
Dec 13, 2023
…Info ### What changes were proposed in this pull request? Small followup to #43664 - add serverSessionId to SessionHolderInfo. ### Why are the changes needed? SessionHolderInfo should contain this kind of information about the session. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? NA ### Was this patch authored or co-authored using generative AI tooling? No. Closes #44334 from juliuszsompolski/SPARK-45798-fup. Authored-by: Juliusz Sompolski <julek@databricks.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Without this patch, when the server would restart because of an abnormal condition, the client would not realize that this be the case. For example, when a driver OOM occurs and the driver is restarted, the client would not realize that the server is restarted and a new session is assigned.
This patch fixes this behavior and asserts that the server side session ID does not change during the connection. If it does change it throws an exception like this:
Why are the changes needed?
Stability
Does this PR introduce any user-facing change?
No
How was this patch tested?
Was this patch authored or co-authored using generative AI tooling?
No