luigidemasi opened a new pull request, #31362:
URL: https://github.com/apache/camel/pull/31362

   A blocking or asynchronous `SendMessage` could discard intermediate messages 
and earlier turns when it saved the route reply. A blocking caller could also 
receive `COMPLETED` after a concurrent `CancelTask` had returned `CANCELED`, 
even though `GetTask` continued to report the cancellation. These cases were 
identified during review of 
[#31358](https://github.com/apache/camel/pull/31358), which restored emitted 
artifacts. [CAMEL-28108](https://issues.apache.org/jira/browse/CAMEL-28108)
   
   This change appends the route's final message to the stored task history. A 
follow-up submission preserves the existing snapshot, including when it has to 
wait for capacity. The blocking caller's `historyLength` setting applies after 
storage, so a later `GetTask` can retrieve the full conversation.
   
   The consumer uses the outcome of the conditional write to decide whether to 
publish a completion event. If cancellation has already won, the blocking 
caller receives the stored terminal task and subscribers see a single terminal 
transition. The in-memory store owns its lock across endpoint shutdown. 
Endpoints wrapping the same registry store coordinate their writes without 
keeping the bean alive. Custom stores with writers on other nodes can implement 
the conditional write in their backing store.
   
   - [x] Targets `main` and includes the component guide, catalog copies, and 
upgrade guidance for task-store providers.
   - [x] All 612 `camel-a2a` tests passed. The regressions exercise JSON-RPC 
history limits, blocking and async cancellation, queued continuation, shared 
registry-store guards, and late progress after shutdown.
   - [x] All 734 modules passed the full root build with `mvnd -T 3 clean 
install -DskipTests`.
   - [x] The commit is signed and includes Signed-off-by and AI co-authorship 
trailers.
   
   Generated by OpenAI Codex via /oss-address-review on behalf of Luigi De Masi 
(@luigidemasi).
   


-- 
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]

Reply via email to