-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Spring Integraton- Issue with Nested Scatter Gather Errors not Propagated #2735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
thank you very much for reporting this! I'll take a look into your ZIP soon, but would you mind in the future share with us really projects on GH? Thanks for understanding! |
Hi Artem, I will try to route this request through Pivotal support, who will create repository in Git on our behalf. I am trying to secure required approvals to checkin source code in Github for Tech only projects like this. Also to contribute to Spring Integration, we are currently in process of securing approvals, which is long pending as it goes through legal & compliance. Thanks for your understanding. Regards, |
It turns out that nested Scatter-Gather is not guilty. We can simply reproduce an issue with this configuration:
The problem in this scenario is similar to what we have with a gateway and an So, I guess we need something over there to be sure that we deal with the proper Looking into that today... |
I found the workaround for you:
So, we wrap erroneous flow to its own gateway, which will populate its own The problem is that this is really an expected behavior, where our Scatter-Gather is just a router for downstream flows. And it isn't so clear if that is OK to have just a single error from downstream especially when all recipients are async. Would be better from design perspective to catch those exceptions is their own branches and convert them to some compensation result which could be filtered by the gatherer upstream or already in the next flow after Scatter-Gather reply. I think for convenience we will consider to add some How that all make sense... BTW, this issue is fully not related to what we talked about Gateway and an Thanks for understanding. |
Hi @artembilan , I have created a local build of Spring-Integration, but the error test case in my project is still failing. I fear the error is not fixed with the fix provided. Behavior is not changed yet. Thanks, |
The fix provided is not about your problem. It is for a more convenient configuration and some explanation in docs. Plus, you need to change your configuration as I explained: with that Anyway the answer is there in the docs. Please, don't treat this issue as similar to what we have with nested gateways. |
HI @artembilan , Thanks for the explanation. This is a change in behavior of the scatter gather compared to what it use to be prior to this change. Prior to this Fix, Error use to be thrown back to the caller. This will now has to be explicitly handled in Aggregator. |
I don't think so. What we did here is just a convenient property for the I think you still deal with the nested |
Affects Version(s): <Spring Integration version 5.1.1>
We are facing issues with Spring Integration, when nested Scatter Gather is used, success Response is getting propagated to the caller. Error Response is not being sent back to the caller.
Here is the reference project that I am using to replicate the issue.
ScatterGatherTest.zip
This issue is similar to the issue reported here.#2731
Thanks for your support in advance.
The text was updated successfully, but these errors were encountered: