Open thrykol opened 6 years ago
Sorry to comment on a closed issue, but not sure how to get around it. I've just built and tested master
and am still seeing the same issue. #152 didn't address the underlying issue of the process hanging when stopping ZooKeeper and Kafka after starting each service independently (startZookeeper
and startKafka
.
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):