turboFei commented on code in PR #7320:
URL: https://github.com/apache/kyuubi/pull/7320#discussion_r2785628691
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/server/metadata/jdbc/JDBCMetadataStore.scala:
##########
@@ -376,9 +376,11 @@ class JDBCMetadataStore(conf: KyuubiConf) extends
MetadataStore with Logging {
setClauses += "engine_state = ?"
params += metadata.engineState
}
- metadata.engineError.foreach { error =>
+ // Update engineError when it's defined or when engineId is defined
+ // This ensures pending reasons are cleared when app transitions to success
Review Comment:
K8S App:
Pending (appError=Some("reason")) -> FINISHED (appError = None), and then
the pending reason is stored in the metadata store.
--
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]