[hotfix][Process] Fail and untrack processes with a missing engine - #4330
Draft
czy006 wants to merge 1 commit into
Draft
[hotfix][Process] Fail and untrack processes with a missing engine#4330czy006 wants to merge 1 commit into
czy006 wants to merge 1 commit into
Conversation
…missing executeOrTraceProcess returned early when the configured execution engine was not installed, but register() had already tracked the PENDING process: hasAliveTableProcess then blocked this action for the table on every scheduler tick until restart - and recovery after restart repeated the same failure, looping forever while leaking the tracked entry. Persist a FAILED record with an 'Execution engine not found' message (via the TableProcessStore interface, no cast; transition failures are logged, never thrown) and untrack so later ticks can schedule the action again once the engine is restored. Regression test testMissingEngineMarksProcessFailedAndUntracks (red before: status stayed PENDING, entry stayed tracked). Fix record: docs/fix-records/2026-08-16-fix-16-missing-engine-stuck-process.md
czy006
force-pushed
the
codex/hotfix-process-missing-engine
branch
from
August 18, 2026 02:16
9c037f5 to
3d03d2c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brief change log
When the configured execution engine is absent, persist the process as failed and untrack it from the table runtime. This prevents a pending process from blocking later scheduling attempts indefinitely.
How was this patch tested?
TestDefaultProcessService#testRunTableProcesslocally with JDK 11 before creating this pull request.Documentation