srowen commented on a change in pull request #23895: [SPARK-26992][STS] Fix STS
scheduler pool correct delivery
URL: https://github.com/apache/spark/pull/23895#discussion_r271289122
##########
File path:
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkExecuteStatementOperation.scala
##########
@@ -291,6 +287,20 @@ private[hive] class SparkExecuteStatementOperation(
sqlContext.sparkContext.cancelJobGroup(statementId)
}
}
+
+ private def withSchedulerPool[T](body: => T): T = {
+ val pool = sessionToActivePool.get(parentSession.getSessionHandle)
+ if (pool != null) {
Review comment:
Although this looks like it undoes the previous fix, you're saying it will
always be null when this method starts right? It seems easier to
unconditionally set it, unless there's some overhead I'm missing
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]