Skip to content
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

Fixes FailChunkExecution does not handle DbExceptions wrapped in an AggregateException #6361

Merged
merged 1 commit into from Jan 25, 2023

Conversation

ismaelhamed
Copy link
Member

@ismaelhamed ismaelhamed commented Jan 25, 2023

? aggregateException.Flatten().InnerExceptions.OfType<DbException>().FirstOrDefault()
?? aggregateException.Flatten().InnerExceptions[0]
: message.Cause;

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An alternative to this would be to stop throwing an AggregateException in line #1003

@ismaelhamed ismaelhamed marked this pull request as ready for review January 25, 2023 15:24
Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aaronontheweb Aaronontheweb merged commit fb4fe01 into akkadotnet:dev Jan 25, 2023
@Aaronontheweb
Copy link
Member

@ismaelhamed do we need to backport this to v1.4?

@ismaelhamed
Copy link
Member Author

Yes. We have a customer that is being impacted by this.

@Aaronontheweb
Copy link
Member

@ismaelhamed we can do a deploy today if that'd help you

@ismaelhamed
Copy link
Member Author

That'd be great @Aaronontheweb

@Aaronontheweb
Copy link
Member

If you can send the PR, I'll prepare the release notes and take care of that today.

ismaelhamed added a commit to ismaelhamed/akka.net that referenced this pull request Jan 26, 2023
Aaronontheweb pushed a commit that referenced this pull request Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BatchingSqlJournal's FailChunkExecution mishandles DbExceptions wrapped in an AggregateException
2 participants