johntomcat7408-cmyk opened a new pull request, #4459: URL: https://github.com/apache/streampark/pull/4459
## What changes were proposed in this pull request Issue Number: close #4332 Allow Kubernetes application jobs in `FAILING` state to be canceled and prevent stale, non-terminal watcher snapshots from reverting an in-flight `CANCELLING` transition. The persistence guard is intentionally scoped to the application main state `CANCELLING`. This keeps cancel-with-savepoint stable without blocking an ordinary standalone savepoint from clearing `SAVEPOINTING`. ## Brief change log - Show the Cancel action for both `RUNNING` and `FAILING` applications. - Preserve `CANCELLING` across non-terminal Kubernetes watcher events while still accepting terminal convergence. - Keep the cancellation option state until a terminal watcher result is observed. - Make metrics persistence protect only an active cancellation while continuing to refresh runtime metrics. - Add regression coverage for cancellation races, cancel-with-savepoint, standalone savepoint completion, and terminal convergence. ## Verifying this change This change added tests and was verified as follows: - Console persistence regression tests: 4 passed. - Kubernetes watcher state inference tests: 2 passed. - Maven Spotless check passed for the affected Console and Kubernetes modules. - `git diff --check` passed. - The conditional update truth table passed on MySQL 8.0.39 and H2 PostgreSQL compatibility mode. ## Does this pull request potentially affect one of the following parts - Dependencies (does it add or upgrade a dependency): no -- 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]
