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

Avoiding throw AggregateException #217

Merged
merged 2 commits into from
Aug 16, 2017

Conversation

zhenlineo
Copy link
Contributor

@zhenlineo zhenlineo commented Aug 10, 2017

Made Retry and TcpClient to not throw AggregatedException on the top level.
But as Retry and TcpClient still try to do some work for several times, the inner errors as a list are still stored in a AggregatedException.

@zhenlineo zhenlineo force-pushed the 1.5-remove-AggregateException branch 3 times, most recently from 22138b1 to 9bc6939 Compare August 10, 2017 15:37
@zhenlineo zhenlineo requested a review from ali-ince August 11, 2017 08:27
@@ -62,7 +62,7 @@ private void Retry(int index, IRetryLogic retryLogic)
}));
timer.Stop();

var error = e as AggregateException;
var error = e.InnerException as AggregateException;
Copy link
Contributor

Choose a reason for hiding this comment

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

We shall also check for e's type against ServiceUnavailableException.

@@ -46,11 +46,12 @@ public void ShouldRetry()
}));
timer.Stop();

var error = e as AggregateException;
var error = e.InnerException as AggregateException;
Copy link
Contributor

Choose a reason for hiding this comment

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

We shall also check for e's type against ServiceUnavailableException.

@zhenlineo zhenlineo force-pushed the 1.5-remove-AggregateException branch from 9bc6939 to 324f7f7 Compare August 16, 2017 08:45
@zhenlineo
Copy link
Contributor Author

@ali-ince Done

@ali-ince ali-ince merged commit 106cd98 into neo4j:1.5 Aug 16, 2017
@zhenlineo zhenlineo deleted the 1.5-remove-AggregateException branch August 16, 2017 09:19
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.

2 participants