You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "changgyoopark-db (via GitHub)" <gi...@apache.org> on 2024/11/04 10:15:22 UTC
Re: [PR] [SPARK-50176][CONNECT][FOLLOWUP][3.5] Fix ReattachableExecuteSuite failure [spark]
changgyoopark-db commented on code in PR #48745:
URL: https://github.com/apache/spark/pull/48745#discussion_r1827490570
##########
connector/connect/server/src/main/scala/org/apache/spark/sql/connect/service/SparkConnectReattachExecuteHandler.scala:
##########
@@ -30,8 +30,10 @@ class SparkConnectReattachExecuteHandler(
def handle(v: proto.ReattachExecuteRequest): Unit = {
// An exception will be raised if the session is not available.
- val _sessionHolder =
+ val sessionHolder =
SparkConnectService.getIsolatedSession(v.getUserContext.getUserId, v.getSessionId)
+ assert(sessionHolder != null)
Review Comment:
Being pedantic - the compiler might remove _sessionHolder entirely as part of dead code elimination; adding an assertion shall prevent the compiler from doing so.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org