You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "pan3793 (via GitHub)" <gi...@apache.org> on 2023/09/18 09:41:09 UTC

[GitHub] [kyuubi] pan3793 commented on a diff in pull request #5305: [V2][REST] Return dump log when batch job was picked but not handler by session manager

pan3793 commented on code in PR #5305:
URL: https://github.com/apache/kyuubi/pull/5305#discussion_r1328475961


##########
kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/BatchesResource.scala:
##########
@@ -415,6 +415,16 @@ private[v1] class BatchesResource extends ApiRequestContext with Logging {
         } else if (fe.connectionUrl != metadata.kyuubiInstance) {
           val internalRestClient = getInternalRestClient(metadata.kyuubiInstance)
           internalRestClient.getBatchLocalLog(userName, batchId, from, size)
+        } else if (batchV2Enabled(metadata.requestConf) &&
+          // Aims to cover the case that batch job been picked by current instance
+          // but the batch id not been handled by this SessionManager.
+          // Ref to we open session first then hand the session
+          // and mark operation RUNNING also has code gap with handler session,
+          // we consider RUNNING state too

Review Comment:
   ```suggestion
             // in batch v2 impl, the operation state is changed from PENDING to RUNNING
             // before being added to SessionManager.
   ```



-- 
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: notifications-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org