-
Notifications
You must be signed in to change notification settings - Fork 83
EmbeddedKafka.stop() fails to shutdown Zookeeper #150
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
Comments
Sorry to comment on a closed issue, but not sure how to get around it. I've just built and tested |
No worries @thrykol, I'm sorry this didn't fix the problem. Would you be able to submit a PR to fix this? |
I think this was fixed in the new WIP repo... |
Using
"net.manub" %% "scalatest-embedded-kafka" % "1.1.1"
I'm seeing an issue with stopping the embedded servers if the servers have been started individually. When I start the servers by callingstart()
the subsequent call tostop()
works as expected. However, when starting each server individually, a call tostop()
results in repeatedConnection refused
ZooKeeper errors .Looking at the code, the discrepancy can be explained by the fact that
start()
does not add theEmbeddedZ
instance toservers
and is thus never stopped by a call tostop()
whilestartZooKeeper()
adds the instance toservers
.This is best demonstrated in the REPL (I canceled the session after two errors but they repeat indefinitely):
The text was updated successfully, but these errors were encountered: