Re: RouteConfiguration#OnCompletion when error

2022-12-22 Thread Babak Vahdat
> On 22 Dec 2022, at 14:11, Babak Vahdat > wrote: > > Thanks for the confirmation. > > Yeah OnCompletionProcessor#onFailure callback was exactly where I stumbled > upon as I was debugging. > > Will then create the JIRA with the corresponding fix. Raised https://issues.apache.org/jira/browse

Re: RouteConfiguration#OnCompletion when error

2022-12-22 Thread Babak Vahdat
Thanks for the confirmation. Yeah OnCompletionProcessor#onFailure callback was exactly where I stumbled upon as I was debugging. Will then create the JIRA with the corresponding fix. — Babak > On 22 Dec 2022, at 13:52, Claus Ibsen wrote: > > Hi > > Yes it appears to be a bug. > > In the On

Re: RouteConfiguration#OnCompletion when error

2022-12-22 Thread Claus Ibsen
Hi Yes it appears to be a bug. In the OnCompletionProcessor the code in onComplete should be copied to onFailure. Its the code in the beginning that checks that its only invoked at the correct point. If you copy that code then it looks like it works. You are welcome to create a JIRA and "fix" th

Re: RouteConfiguration#OnCompletion when error

2022-12-21 Thread Babak Vahdat
And using 3.20.0 here... > On 22 Dec 2022, at 07:36, Babak Vahdat > wrote: > > Hi > > There seems to be a bug in RouteConfiguration#OnCompletion support which in > case of an error, then it would run a given Callback as many times as the > number of the routes that you have. However if no er

RouteConfiguration#OnCompletion when error

2022-12-21 Thread Babak Vahdat
Hi There seems to be a bug in RouteConfiguration#OnCompletion support which in case of an error, then it would run a given Callback as many times as the number of the routes that you have. However if no error then it gets called exactly once which is as expected. Here a simple reproducible: h