rmetzger opened a new pull request #11295: [FLINK-10885][e2e] Stabilize confluent schema registry test URL: https://github.com/apache/flink/pull/11295 ## What is the purpose of the change **Potential problem**: - the error message "No supported Kafka endpoints are configured. Either kafkastore.bootstrap.servers must have at least one endpoint matching kafkastore.security.protocol or broker endpoints loaded from ZooKeeper must have at least one endpoint matching" indicates that one of the mentioned config parameters has to be set, or the brokers need to be listed in Zookeeper. - The source code of the "KafkaStore" in the schema registry supports this hypothesis: https://github.com/confluentinc/schema-registry/blob/3.2.0-post/core/src/main/java/io/confluent/kafka/schemaregistry/storage/KafkaStore.java#L121 - after starting the Kafka cluster, we wait until "Node does not exist" is not returned by the ZK Cli. - However, if ZK is not (yet) running, we'll also have outputs such as "WARN Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect (org.apache.zookeeper.ClientCnxn)", stopping the wait loop. **Solution**: Wait till we have a ZK Cli output indicating that the broker is registered. ## Verifying this change I ran this change 3 times over night, without a failure. Still, there is no guarantee that the problem is really fixed
---------------------------------------------------------------- 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] With regards, Apache Git Services
