Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
6155c807
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
6155c807
编写于
8月 10, 2023
作者:
wmmhello
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:offset error in tmq & add test cases
上级
ab9ad7d0
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
5 deletion
+5
-5
tests/parallel_test/cases.task
tests/parallel_test/cases.task
+1
-1
tests/system-test/7-tmq/tmqParamsTest.py
tests/system-test/7-tmq/tmqParamsTest.py
+2
-2
tests/system-test/7-tmq/tmq_offset.py
tests/system-test/7-tmq/tmq_offset.py
+1
-1
utils/test/c/tmq_offset_test.c
utils/test/c/tmq_offset_test.c
+1
-1
未找到文件。
tests/parallel_test/cases.task
浏览文件 @
6155c807
...
@@ -126,7 +126,7 @@
...
@@ -126,7 +126,7 @@
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/dataFromTsdbNWal.py
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/dataFromTsdbNWal.py
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/dataFromTsdbNWal-multiCtb.py
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/dataFromTsdbNWal-multiCtb.py
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmq_taosx.py
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmq_taosx.py
,,
y,system-test,./pytest.sh
python3 ./test.py -f 7-tmq/tmq_offset.py
,,
n,system-test,
python3 ./test.py -f 7-tmq/tmq_offset.py
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/raw_block_interface_test.py
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/raw_block_interface_test.py
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/stbTagFilter-multiCtb.py
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/stbTagFilter-multiCtb.py
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqSubscribeStb-r3.py -N 5
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqSubscribeStb-r3.py -N 5
...
...
tests/system-test/7-tmq/tmqParamsTest.py
浏览文件 @
6155c807
...
@@ -131,7 +131,7 @@ class TDTestCase:
...
@@ -131,7 +131,7 @@ class TDTestCase:
if
snapshot_value
==
"true"
:
if
snapshot_value
==
"true"
:
if
offset_value
!=
"earliest"
and
offset_value
!=
""
:
if
offset_value
!=
"earliest"
and
offset_value
!=
""
:
if
offset_value
==
"latest"
:
if
offset_value
==
"latest"
:
offset_value_list
=
list
(
map
(
lambda
x
:
int
(
x
[
-
2
].
replace
(
"wal:"
,
""
).
replace
(
offset_value
,
"0"
)),
subscription_info
))
offset_value_list
=
list
(
map
(
lambda
x
:
int
(
x
[
-
2
].
replace
(
"wal:"
,
""
).
replace
(
"earliest"
,
"0"
).
replace
(
"latest"
,
"0"
).
replace
(
offset_value
,
"0"
)),
subscription_info
))
tdSql
.
checkEqual
(
sum
(
offset_value_list
)
>=
0
,
True
)
tdSql
.
checkEqual
(
sum
(
offset_value_list
)
>=
0
,
True
)
rows_value_list
=
list
(
map
(
lambda
x
:
int
(
x
[
-
1
]),
subscription_info
))
rows_value_list
=
list
(
map
(
lambda
x
:
int
(
x
[
-
1
]),
subscription_info
))
tdSql
.
checkEqual
(
sum
(
rows_value_list
),
expected_res
)
tdSql
.
checkEqual
(
sum
(
rows_value_list
),
expected_res
)
...
@@ -154,7 +154,7 @@ class TDTestCase:
...
@@ -154,7 +154,7 @@ class TDTestCase:
tdSql
.
checkEqual
(
rows_value_list
,
[
None
]
*
len
(
subscription_info
))
tdSql
.
checkEqual
(
rows_value_list
,
[
None
]
*
len
(
subscription_info
))
else
:
else
:
if
offset_value
!=
"none"
:
if
offset_value
!=
"none"
:
offset_value_list
=
list
(
map
(
lambda
x
:
int
(
x
[
-
2
].
replace
(
"wal:"
,
""
).
replace
(
offset_value
,
"0"
)),
subscription_info
))
offset_value_list
=
list
(
map
(
lambda
x
:
int
(
x
[
-
2
].
replace
(
"wal:"
,
""
).
replace
(
"earliest"
,
"0"
).
replace
(
"latest"
,
"0"
).
replace
(
offset_value
,
"0"
)),
subscription_info
))
tdSql
.
checkEqual
(
sum
(
offset_value_list
)
>=
0
,
True
)
tdSql
.
checkEqual
(
sum
(
offset_value_list
)
>=
0
,
True
)
rows_value_list
=
list
(
map
(
lambda
x
:
int
(
x
[
-
1
]),
subscription_info
))
rows_value_list
=
list
(
map
(
lambda
x
:
int
(
x
[
-
1
]),
subscription_info
))
tdSql
.
checkEqual
(
sum
(
rows_value_list
),
expected_res
)
tdSql
.
checkEqual
(
sum
(
rows_value_list
),
expected_res
)
...
...
tests/system-test/7-tmq/tmq_offset.py
浏览文件 @
6155c807
...
@@ -26,7 +26,7 @@ class TDTestCase:
...
@@ -26,7 +26,7 @@ class TDTestCase:
cmdStr1
=
'%s/build/bin/taosBenchmark -i 50 -B 1 -t 1000 -n 100000 -y &'
%
(
buildPath
)
cmdStr1
=
'%s/build/bin/taosBenchmark -i 50 -B 1 -t 1000 -n 100000 -y &'
%
(
buildPath
)
tdLog
.
info
(
cmdStr1
)
tdLog
.
info
(
cmdStr1
)
os
.
system
(
cmdStr1
)
os
.
system
(
cmdStr1
)
time
.
sleep
(
1
0
)
time
.
sleep
(
1
5
)
cmdStr2
=
'%s/build/bin/tmq_offset_test &'
%
(
buildPath
)
cmdStr2
=
'%s/build/bin/tmq_offset_test &'
%
(
buildPath
)
tdLog
.
info
(
cmdStr2
)
tdLog
.
info
(
cmdStr2
)
...
...
utils/test/c/tmq_offset_test.c
浏览文件 @
6155c807
...
@@ -266,7 +266,7 @@ void test_ts3756(TAOS* pConn){
...
@@ -266,7 +266,7 @@ void test_ts3756(TAOS* pConn){
int32_t
numOfAssign
=
0
;
int32_t
numOfAssign
=
0
;
while
(
1
)
{
while
(
1
)
{
printf
(
"start to poll
\n
"
);
//
printf("start to poll\n");
pRes
=
tmq_consumer_poll
(
tmq
,
timeout
);
pRes
=
tmq_consumer_poll
(
tmq
,
timeout
);
if
(
pRes
)
{
if
(
pRes
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录