Repository navigation
fix(embedded): clean up a failed service task delivery even if reporting the failure fails - #174
Merged
emaarco merged 1 commit intoNov 26, 2026
Conversation
emaarco
force-pushed
the
emaarco/embedded-pull-delivery-never-re-delivers-a-servi
branch
from
November 26, 2026 12:16
971ba71 to
4794924
Compare
emaarco
force-pushed
the
emaarco/embedded-pull-delivery-never-re-delivers-a-servi
branch
from
November 26, 2026 13:20
4794924 to
a53001d
Compare
emaarco
deleted the
emaarco/embedded-pull-delivery-never-re-delivers-a-servi
branch
November 26, 2026 13:39
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.
Why
When a service task handler throws and reporting that failure to the engine fails too (e.g. the database is down), the task is never run again. The adapter still remembers it as "delivered" and skips it every time the engine offers it again, so the task stays locked by this worker until the application restarts: no retry, no incident, no log. The same happens when the handler throws an
Errorinstead of anException.What
cleanupFailedDeliveryfrom fix(cib7-embedded): align failed service task delivery with the other adapters #176: deactivate the subscription and call the termination handler), also when reporting the failure throws. The engine then offers the task again and it is delivered again.…-048).Errorthrown by the handler (e.g.NoClassDefFoundError) is reported as a failure like anException.This is a 1:1 port of the Camunda 7 fix (bpm-crafters/process-engine-adapters-camunda-7#318).
Verification
EmbeddedPullServiceTaskDeliveryThreadingTest: the handler sees CREATE → DELETE → CREATE → DELETE when reporting fails, and anErroris reported with decremented retries. Both fail ondevelopand pass with the fix../mvnw verifyforcib-seven-embedded-core(82 tests) andcib-seven-embedded-spring-boot-starter(25 tests) pass; the threading test class passed 6 of 6 repeated runs.Out of scope / Follow-ups
Refs bpm-crafters/process-engine-adapters-camunda-7#316