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
TEPHRA-171 Added implementation TephraZKClientService which does not depend on the guava service listeners. #115
Conversation
@@ -29,7 +29,6 @@ | |||
import com.google.inject.Guice; | |||
import com.google.inject.Injector; | |||
import org.apache.hadoop.conf.Configuration; | |||
import org.apache.twill.zookeeper.ZKClientService; |
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.
Removed all occurrences of Twill's ZKClientService
from tephra.
|
||
@Override | ||
public void startAndWait() { | ||
((ServiceDelegate) serviceDelegate).connectToZookeeper(); |
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.
Explicitly calling connectToZookeeper
to synchronously connecting to the zookeeper. This may not be the best method since we require casting here.
@chtyim @poornachandra Please take a look. Thanks! |
/** | ||
* Initiates service startup (if necessary), returning once the service has finished starting. | ||
*/ | ||
void startAndWait(); |
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.
Just call it start
and stop
.
d9d5037
to
cdf1901
Compare
import java.util.List; | ||
|
||
/** | ||
* |
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.
Add a line of javadoc.
Just one comment. Otherwise the code change LGTM. Also make sure we don't use |
…depend on the guava service listners.
cdf1901
to
2b8b1ee
Compare
Thank you @chtyim for the review. Made sure we are not using |
Build passed. Merging. |
TEPHRA-171 Added ZkClientService in Tephra which does not extend from…
JIRA: https://issues.cask.co/browse/TEPHRA-171