allthingssecurity commented on PR #30760:
URL: https://github.com/apache/camel/pull/30760#issuecomment-7155780853
Thanks Claus. All in one new commit: f555ecc7b4.
1. Self-wait guard: the thread that calls the compensation or completion
endpoint is now marked with the saga id (a ThreadLocal set around `send` in
`doFinalize`, previous value restored in `finally`), and `afterFinalization`
checks it as well as the property, which stays for copies on other threads. New
test: a compensation route that runs `removeProperties("*")` then
`to("saga:compensate")` gets its answer at once; on the first commit it times
out. Left open: a route that removes all properties and then goes to another
thread before `saga:compensate`.
2. `SagaFinalizationInProgressTest` no longer asserts in route processors: a
latch wait that times out fails the exchange with a clear message, and the
class is package-private.
3. Failing the open outcomes on stop: I will do it as a follow-up JIRA.
Failing the waiter's outcome alone is not enough (it answers from the status,
still COMPENSATING), and the winner's own future also stays open when the
executor drops its task, so it needs its own change.
Saga tests of camel-core: 54 run, 0 failures; the changed test class 20
times: 120 run, 0 failures.
--
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]