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

IGNITE-8158 Wrap the method afterTestsStopped() call with try/catch b… #4464

Closed
wants to merge 4 commits into from

Conversation

zzzadruga
Copy link
Contributor

…lock

if (isLastTest() && isSafeTopology() && stopGridErr)
throw new RuntimeException("Not all Ignite instances has been stopped. Please, see log for details.");
if (isLastTest()) {
if (err != null)
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use RuntimeException(String message, Throwable cause) constructor to reduce this if-else statement. As I can see, cause can be nullable.

try {
afterTestsStopped();
}
catch (Exception e){
Copy link
Contributor

Choose a reason for hiding this comment

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

Suppose, we've missed space here?

@zzzadruga zzzadruga force-pushed the IGNITE-8158 branch 2 times, most recently from 0aeacab to 72fb701 Compare August 3, 2018 13:28
@zzzadruga zzzadruga force-pushed the IGNITE-8158 branch 2 times, most recently from 3ac453c to 93b2a66 Compare August 9, 2018 11:12
@asfgit asfgit closed this in 1894541 Sep 5, 2018
SGrimstad pushed a commit to gridgain/apache-ignite that referenced this pull request Sep 11, 2018
Fixes apache#4464.

Signed-off-by: Nikolay Izhikov <nizhikov@apache.org>
akalash pushed a commit to gridgain/apache-ignite that referenced this pull request Nov 19, 2018
Fixes apache#4464.

Signed-off-by: Nikolay Izhikov <nizhikov@apache.org>
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.

None yet

2 participants