testcontainers / testcontainers/testcontainers-python

Kafka - NoBrokerAvailable

未关闭
#223 11 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

👀 requires attention 📦 package: kafka
主要语言
Python
星标
2.3k
派生
386
平均合并
4 小时 40 分钟
30 天内合并 PR
1

描述

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先重现 KafkaContainer('confluentinc/cp-kafka:5.4.3') 集成设置,并检查 readiness 为什么以 NoBrokerAvailable 结束;验证是否需要本地 Kafka 安装。当容器变得可用,并且 with 语句之后的代码能够在不出现该异常的情况下运行时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
docker, kafka, python
领域
distributed-systems, infrastructure, testing
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。