Skip to content

Filter out null failedmessages #1465

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

Merged
merged 2 commits into from
Oct 19, 2018
Merged

Filter out null failedmessages #1465

merged 2 commits into from
Oct 19, 2018

Conversation

WilliamBZA
Copy link
Member

@WilliamBZA WilliamBZA commented Oct 19, 2018

Fixes #1464

2 Commits. One to bump the zip package version (I can remove this?) and a second to filter out null failed messages.

I can't figure out how to force the expired documents to run in an acceptance test so am not sure how to add a test around this. Any suggestions?

Copy link
Member

@SzymonPobiega SzymonPobiega left a comment

Choose a reason for hiding this comment

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

I am fine with bumping the dotnetzip dependency.

@@ -27,10 +27,9 @@ protected override async Task<IEnumerable<object>> PublishEvents(IEnumerable<Dis
var failedMessages = new List<object>(failedMessageData.Length);
foreach (var entity in failedMessageData)
{
session.Advanced.Evict(entity);

if (entity != null)
Copy link
Contributor

Choose a reason for hiding this comment

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

Another option would be to add a where clause to the list and then iterate over that but I prefer the if approach

Copy link
Member Author

Choose a reason for hiding this comment

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

I had that originally, but then saw the if that was in the loop already and thought it looked neater than including the where in the loop above.

@WilliamBZA WilliamBZA merged commit 854f978 into hotfix-3.2.3 Oct 19, 2018
@WilliamBZA WilliamBZA deleted the eventpublisher branch October 19, 2018 08:45
WilliamBZA added a commit that referenced this pull request Oct 19, 2018
* Bump zip dependency

* Filter out null values
WilliamBZA added a commit that referenced this pull request Oct 19, 2018
* Bump zip dependency

* Filter out null values
WilliamBZA added a commit that referenced this pull request Oct 19, 2018
* Bump zip dependency

* Filter out null values
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.

3 participants