-
Notifications
You must be signed in to change notification settings - Fork 71
(TWILL-177) Make ZKDiscoveryService AutoCloseable #8
Conversation
chtyim
commented
Aug 29, 2016
- Release ZK watches when closed
|
||
@Before | ||
public void beforeTest() { | ||
LOG.info("Before test {}", testName.getMethodName()); |
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.
this was just for investigation? Can be removed now?
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.
Why? It helps identify which parts in the log is for which test.
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.
Wouldn't JUnit already log the test method before it is executed?
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.
No, it won't
98bcb2d
to
9c0939f
Compare
Rebased on master and resolved conflicts. |
import org.junit.Before; | ||
import org.junit.Rule; | ||
import org.junit.rules.ExternalResource; | ||
import org.junit.rules.TestName; |
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.
unused imports?
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.
fixed
one minor comment, otherwise lgtm |
- Release ZK watches when closed - Fixed a race condition in ZKDiscoveryServiceTest - Fix the easy to fail InitializeFailTestRun - Match with an error message emitted from AM instead of from the container. - It’s possible that the one from the container don’t have chance to send out before it gets killed.
0e9ef1b
to
170a729
Compare
Squashed commits. |