turboFei commented on code in PR #7033: URL: https://github.com/apache/kyuubi/pull/7033#discussion_r2062534369
########## kyuubi-server/src/main/scala/org/apache/kyuubi/operation/BatchJobSubmission.scala: ########## @@ -212,6 +215,20 @@ class BatchJobSubmission( metadata match { case Some(metadata) if metadata.peerInstanceClosed => setState(OperationState.CANCELED) + case Some(metadata) + // in case it has been updated by peer kyuubi instance, see KYUUBI-6278 Review Comment: The issue is that, 1. if the batch state already updated by peer with terminated state 2. without this change, it would try to get the current application state and might NOT_FOUND, can then cause the application failure(NOT FOUND As failure). -- 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-unsubscr...@kyuubi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@kyuubi.apache.org For additional commands, e-mail: notifications-h...@kyuubi.apache.org