Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
K
kafka
管理
动态
成员
计划
Wiki
代码
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
部署
发布
软件包库
模型注册表
运维
Terraform 模块
分析
贡献者分析
仓库分析
模型实验
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
Show more breadcrumbs
Archie Kelly
kafka
提交
ef49076b
提交
ef49076b
编辑于
4年前
作者:
Greg Harris
提交者:
Randall Hauch
4年前
浏览文件
操作
下载
补丁
差异文件
KAFKA-10295: Wait for connector recovery in test_bounce (#9043)
Signed-off-by:
Greg Harris
<
gregh@confluent.io
>
上级
f93056ea
No related branches found
No related tags found
无相关合并请求
变更
1
隐藏空白变更内容
行内
左右并排
显示
1 个更改的文件
tests/kafkatest/tests/connect/connect_distributed_test.py
+14
-0
14 个添加, 0 个删除
tests/kafkatest/tests/connect/connect_distributed_test.py
有
14 个添加
和
0 个删除
tests/kafkatest/tests/connect/connect_distributed_test.py
+
14
−
0
浏览文件 @
ef49076b
...
...
@@ -387,8 +387,22 @@ class ConnectDistributedTest(Test):
# through the test.
time
.
sleep
(
15
)
# Wait at least scheduled.rebalance.max.delay.ms to expire and rebalance
time
.
sleep
(
60
)
# Allow the connectors to startup, recover, and exit cleanly before
# ending the test. It's possible for the source connector to make
# uncommitted progress, and for the sink connector to read messages that
# have not been committed yet, and fail a later assertion.
wait_until
(
lambda
:
self
.
is_running
(
self
.
source
),
timeout_sec
=
30
,
err_msg
=
"
Failed to see connector transition to the RUNNING state
"
)
time
.
sleep
(
15
)
self
.
source
.
stop
()
# Ensure that the sink connector has an opportunity to read all
# committed messages from the source connector.
wait_until
(
lambda
:
self
.
is_running
(
self
.
sink
),
timeout_sec
=
30
,
err_msg
=
"
Failed to see connector transition to the RUNNING state
"
)
time
.
sleep
(
15
)
self
.
sink
.
stop
()
self
.
cc
.
stop
()
...
...
This diff is collapsed.
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录