testcontainers / testcontainers/testcontainers-python
Kafka - NoBrokerAvailable
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 2.3k
- Forks
- 386
- Ø Merge
- 4 Std. 40 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
Hi, I'm currently working on testing kafka broker / topic and payload for integration testing, I just want to know that to spin up the kafka docker container, I first have to install kafka broker locally right? Because when I run the following code:
with KafkaContainer('confluentinc/cp-kafka:5.4.3') as kafka_container:
bluhbluhbluh.....
a specific kafka gets started, and is waiting to be ready, but then it throws NoBrokerAvailable exception after sine time, so the program stops at the with statement, and the "bluhbluhbluh" part doesn't get executed.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das KafkaContainer('confluentinc/cp-kafka:5.4.3')-Integrations-Setup zu reproduzieren, und untersuche, warum die Bereitschaft mit NoBrokerAvailable endet; prüfe, ob eine lokale Kafka-Installation erforderlich ist. Erledigt ist die Aufgabe, wenn der Container verwendbar wird und der Code nach der with-Anweisung ohne diese Ausnahme ausgeführt wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- docker, kafka, python
- Bereich
- distributed-systems, infrastructure, testing
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100