Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reliable check for Kafka broker being ready (#5154)
## Which problem is this PR solving? Resolves #5148 ## Description of the changes - The previous approach used ```nc``` to check the availability of the ```Kafka port```, which was not reliable, especially when the Kafka container was started asynchronously. The updated script now ensures a more reliable check for Kafka readiness by attempting to list topics using ```kafka-topics.sh``` within a loop. This modification ensures that the script waits until Kafka is fully initialized before proceeding with integration tests. ## How was this change tested? - This modification ensures that the script waits until Kafka is fully initialized before proceeding with integration tests. - Ran ```bash scripts/kafka-integration-test.sh -k``` from the project root. ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [ ] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `yarn lint` and `yarn test` Signed-off-by: Shashank Mittal <shashank.mittal.mec22@itbhu.ac.in>
- Loading branch information