Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
4844b915
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
提交
4844b915
编写于
10月 27, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: add replica case
上级
ff428696
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
22 addition
and
27 deletion
+22
-27
source/dnode/mnode/impl/src/mndDb.c
source/dnode/mnode/impl/src/mndDb.c
+0
-4
tests/script/jenkins/basic.txt
tests/script/jenkins/basic.txt
+8
-9
tests/script/tsim/vnode/replica3_many.sim
tests/script/tsim/vnode/replica3_many.sim
+13
-13
tests/script/tsim/vnode/replica3_repeat.sim
tests/script/tsim/vnode/replica3_repeat.sim
+1
-1
未找到文件。
source/dnode/mnode/impl/src/mndDb.c
浏览文件 @
4844b915
...
...
@@ -641,12 +641,8 @@ static int32_t mndSetDbCfgFromAlterDbReq(SDbObj *pDb, SAlterDbReq *pAlter) {
}
if
(
pAlter
->
pageSize
>
0
&&
pAlter
->
pageSize
!=
pDb
->
cfg
.
pageSize
)
{
#if 1
terrno
=
TSDB_CODE_OPS_NOT_SUPPORT
;
#else
pDb
->
cfg
.
pageSize
=
pAlter
->
pageSize
;
terrno
=
0
;
#endif
}
if
(
pAlter
->
daysPerFile
>
0
&&
pAlter
->
daysPerFile
!=
pDb
->
cfg
.
daysPerFile
)
{
...
...
tests/script/jenkins/basic.txt
浏览文件 @
4844b915
...
...
@@ -154,7 +154,7 @@
./test.sh -f tsim/parser/select_with_tags.sim
./test.sh -f tsim/parser/selectResNum.sim
./test.sh -f tsim/parser/set_tag_vals.sim
# TD-19572
./test.sh -f tsim/parser/single_row_in_tb.sim
./test.sh -f tsim/parser/single_row_in_tb.sim
./test.sh -f tsim/parser/sliding.sim
./test.sh -f tsim/parser/slimit_alter_tags.sim
./test.sh -f tsim/parser/slimit.sim
...
...
@@ -302,7 +302,6 @@
# --- sma
./test.sh -f tsim/sma/drop_sma.sim
./test.sh -f tsim/sma/tsmaCreateInsertQuery.sim
# temp disable
./test.sh -f tsim/sma/rsmaCreateInsertQuery.sim
./test.sh -f tsim/sma/rsmaPersistenceRecovery.sim
...
...
@@ -318,13 +317,13 @@
./test.sh -f tsim/valgrind/checkUdf.sim
# --- vnode ----
# unsupport
./test.sh -f tsim/vnode/replica3_basic.sim
# unsupport
./test.sh -f tsim/vnode/replica3_repeat.sim
# unsupport
./test.sh -f tsim/vnode/replica3_vgroup.sim
# unsupport
./test.sh -f tsim/vnode/replica3_many.sim
# unsupport
./test.sh -f tsim/vnode/replica3_import.sim
# unsupport
./test.sh -f tsim/vnode/stable_balance_replica1.sim
# unsupport
./test.sh -f tsim/vnode/stable_dnode2_stop.sim
./test.sh -f tsim/vnode/replica3_basic.sim
./test.sh -f tsim/vnode/replica3_repeat.sim
./test.sh -f tsim/vnode/replica3_vgroup.sim
./test.sh -f tsim/vnode/replica3_many.sim
./test.sh -f tsim/vnode/replica3_import.sim
./test.sh -f tsim/vnode/stable_balance_replica1.sim
./test.sh -f tsim/vnode/stable_dnode2_stop.sim
./test.sh -f tsim/vnode/stable_dnode2.sim
./test.sh -f tsim/vnode/stable_dnode3.sim
./test.sh -f tsim/vnode/stable_replica3_dnode6.sim
...
...
tests/script/tsim/vnode/replica3_many.sim
浏览文件 @
4844b915
...
...
@@ -59,7 +59,7 @@ step12:
print ====> db not ready!
return -1
endi
sql show d1.vgroups
sql show d
b
1.vgroups
print ===> $data00 $data01 $data02 $data03 $data04 $data05 $data06 $data07 $data08 $data09
$leaderExist = 0
if $rows != 1 then
...
...
@@ -87,19 +87,19 @@ step13:
print ====> db not ready!
return -1
endi
sql show d1.vgroups
sql show d
b
1.vgroups
print ===> $data00 $data01 $data02 $data03 $data04 $data05 $data06 $data07 $data08 $data09
$leaderExist = 0
if $rows != 1 then
return -1
endi
if $data(
3
)[4] == leader then
if $data(
2
)[4] == leader then
$leaderExist = 1
endi
if $data(
3
)[6] == leader then
if $data(
2
)[6] == leader then
$leaderExist = 1
endi
if $data(
3
)[8] == leader then
if $data(
2
)[8] == leader then
$leaderExist = 1
endi
if $leaderExist != 1 then
...
...
@@ -115,16 +115,16 @@ step14:
print ====> db not ready!
return -1
endi
sql show d1.vgroups
sql show d
b
1.vgroups
print ===> $data00 $data01 $data02 $data03 $data04 $data05 $data06 $data07 $data08 $data09
$leaderExist = 0
if $data(
4
)[4] == leader then
if $data(
2
)[4] == leader then
$leaderExist = 1
endi
if $data(
4
)[6] == leader then
if $data(
2
)[6] == leader then
$leaderExist = 1
endi
if $data(
4
)[8] == leader then
if $data(
2
)[8] == leader then
$leaderExist = 1
endi
if $leaderExist != 1 then
...
...
@@ -140,16 +140,16 @@ step15:
print ====> db not ready!
return -1
endi
sql show d1.vgroups
sql show d
b
1.vgroups
print ===> $data00 $data01 $data02 $data03 $data04 $data05 $data06 $data07 $data08 $data09
$leaderExist = 0
if $data(
4
)[4] == leader then
if $data(
2
)[4] == leader then
$leaderExist = 1
endi
if $data(
4
)[6] == leader then
if $data(
2
)[6] == leader then
$leaderExist = 1
endi
if $data(
4
)[8] == leader then
if $data(
2
)[8] == leader then
$leaderExist = 1
endi
if $leaderExist != 1 then
...
...
tests/script/tsim/vnode/replica3_repeat.sim
浏览文件 @
4844b915
...
...
@@ -56,7 +56,7 @@ step1:
endi
sql show db.vgroups
print ===> $data00 $data01 $data02 $data03 $data04 $data05 $data06 $data07 $data08 $data09
if $rows !=
4
then
if $rows !=
1
then
return -1
endi
if $data(2)[4] == leader then
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录