-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
When using HandleInner() not all AggregateExceptions are being checked #818
Comments
Just checking in - is this change something that you'd entertain? I'm happy to submit a pull request for discussion. |
This seems reasonable to me, but I'm not sure whether or not it could be considered a breaking behavioural change or not. I guess if it's a minor enough code change to make you could open a PR for it and solicit further comment/opinion. |
…te matches when using HandleInner() App-vNext#818
Understood, I've created PR #822 for your review. The CI appears to have failed but doesn't seem to be related to my change - (Apologies for the second PR, I had some trouble with the first one so I started over) |
…te matches when using HandleInner() App-vNext#818
Fixed in v7.2.2. |
When handling exceptions that that are wrapped in an AggregateException, it looks like only the first exception is recursively searched for a matching predicate. If there are two (or more) exceptions in the InnerExceptions collection, they are not searched.
I was able to make this work by modifying the HandleInner function in src/Polly/PolicyBuilder.OrSyntax.cs:55.
I'm happy to submit a pull request with tests for this if you're willing to entertain it.
The text was updated successfully, but these errors were encountered: