Copilot commented on code in PR #7845:
URL: https://github.com/apache/kyuubi/pull/7845#discussion_r4475624321
##########
externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/session/SparkSQLSessionManager.scala:
##########
@@ -114,8 +114,9 @@ class SparkSQLSessionManager private (name: String, spark:
SparkSession)
// since the session is only one
case CONNECTION => spark
case USER => newSparkSession(spark, sessionConf)
- case GROUP | SERVER if userIsolatedSparkSession =>
newSparkSession(spark, sessionConf)
- case GROUP | SERVER =>
+ case GROUP | SERVER | SERVER_LOCAL if userIsolatedSparkSession =>
+ newSparkSession(spark, sessionConf)
Review Comment:
The new SERVER_LOCAL suite inherits
`ENGINE_USER_ISOLATED_SPARK_SESSION=false`, so it never exercises this guarded
branch; removing SERVER_LOCAL from this case alone would leave the added test
passing while same-user connections incorrectly share state with isolation
enabled. Please add a SERVER_LOCAL regression with single-session mode disabled
and user isolation enabled, verifying independent SQLConf and temporary views
for two same-user connections and that closing one leaves the other usable.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]