-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Conversation
if (isLastTest() && isSafeTopology() && stopGridErr) | ||
throw new RuntimeException("Not all Ignite instances has been stopped. Please, see log for details."); | ||
if (isLastTest()) { | ||
if (err != null) |
There was a problem hiding this comment.
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){ |
There was a problem hiding this comment.
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?
0aeacab
to
72fb701
Compare
3ac453c
to
93b2a66
Compare
Fixes apache#4464. Signed-off-by: Nikolay Izhikov <nizhikov@apache.org>
Fixes apache#4464. Signed-off-by: Nikolay Izhikov <nizhikov@apache.org>
…lock