Skip to content

Commit

Permalink
address issue with java e2e getting stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
rmetzger committed Apr 7, 2020
1 parent 606b326 commit a94d369
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ private static boolean isZookeeperRunning(final Path kafkaDir) {
private static boolean isKafkaRunning(final Path kafkaDir) throws IOException {
try {
final AtomicBoolean atomicBrokerStarted = new AtomicBoolean(false);
queryBrokerStatus(kafkaDir, line -> atomicBrokerStarted.compareAndSet(false, !line.contains("Node does not exist")));
queryBrokerStatus(kafkaDir, line -> atomicBrokerStarted.compareAndSet(false, line.contains("dataLength =")));
return atomicBrokerStarted.get();
} catch (final IOException ioe) {
// we get an exception if zookeeper isn't running
Expand Down

0 comments on commit a94d369

Please sign in to comment.