aljoscha opened a new pull request #12674:
URL: https://github.com/apache/flink/pull/12674
## What is the purpose of the change / Brief change log
This was broken because the behaviour of the Kafka/ZooKeeper command
line tools on Kafka 2.4.1 is slightly different:
zookeeper_shell.sh does not print debug output to stderr as it did
before. We change queryBrokerStatus() to instead consume stdout and
check that we get valid information for the broker.
The output of kafka-topics.sh now has a space between "PartitionCount:"
and the partition count. Before we had "PartitionCount:2", now it's
"PartitionCount: 2". We fix this by making the regex more lenient.
This also splits the waiting on ZooKeeper/Kafka into two loops to better
see which one we're blocking on.
## Verifying this change
This can be verified by manually running `StreamingKafkaITCase`.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): *no*
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: (yes / no)
- The serializers: *no*
- The runtime per-record code paths (performance sensitive): *no*
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: *no*
- The S3 file system connector: *no*
## Documentation
- Does this pull request introduce a new feature? *no*
- If yes, how is the feature documented? *not applicable*
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]