mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
tests: remove kafka deprecated --new-consumer
flag in setup
> KIP-176 removes the `--new-consumer` option for all consumer based tools. > This option is redundant since the new consumer is automatically used if > `--bootstrap-server` is defined. > > -- [Kafka 2.0.0 Changelog](https://kafka.apache.org/documentation/#upgrade_200_notable) Fixes #10217
This commit is contained in:
parent
a163b86c0b
commit
dc174b2802
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ wait_for_messages() {
|
|||
|
||||
echo "Checking if Kafka topic has been populated with data"
|
||||
while [[ $read_lines -ne $KAFKA_MESSAGES ]] && [[ $count -ne 0 ]]; do
|
||||
read_lines=`$KAFKA_HOME/bin/kafka-console-consumer.sh --topic $KAFKA_TOPIC --new-consumer --bootstrap-server localhost:9092 --from-beginning --max-messages $KAFKA_MESSAGES --timeout-ms 10000 | wc -l`
|
||||
read_lines=`$KAFKA_HOME/bin/kafka-console-consumer.sh --topic $KAFKA_TOPIC --bootstrap-server localhost:9092 --from-beginning --max-messages $KAFKA_MESSAGES --timeout-ms 10000 | wc -l`
|
||||
count=$(( $count - 1 ))
|
||||
[[ $count -eq 0 ]] && return 1
|
||||
sleep 0.5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue