Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
31872611
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
31872611
编写于
8月 18, 2022
作者:
G
Ganlin Zhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix test case
上级
afdb0242
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
21 addition
and
21 deletion
+21
-21
tests/script/tsim/alter/cached_schema_after_alter.sim
tests/script/tsim/alter/cached_schema_after_alter.sim
+18
-18
tests/script/tsim/alter/dnode.sim
tests/script/tsim/alter/dnode.sim
+2
-2
tests/script/tsim/alter/table.sim
tests/script/tsim/alter/table.sim
+1
-1
未找到文件。
tests/script/tsim/alter/cached_schema_after_alter.sim
浏览文件 @
31872611
...
...
@@ -14,7 +14,7 @@ print ========== cached_schema_after_alter.sim
sql drop database $db -x step1
step1:
sql create database $db
sql create database $db
print ====== create tables
sql use $db
...
...
@@ -32,10 +32,10 @@ if $rows != 1 then
endi
if $data01 != 1 then
return -1
endi
endi
if $data02 != 1 then
return -1
endi
endi
sql select * from $tb2
if $rows != 1 then
...
...
@@ -43,10 +43,10 @@ if $rows != 1 then
endi
if $data01 != 1 then
return -1
endi
endi
if $data02 != 1 then
return -1
endi
endi
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
...
...
@@ -61,10 +61,10 @@ if $rows != 1 then
endi
if $data01 != 1 then
return -1
endi
endi
if $data02 != 1 then
return -1
endi
endi
sql select * from $tb2
print select * from $tb2 ==> $data00 $data01 $data02
...
...
@@ -73,10 +73,10 @@ if $rows != 1 then
endi
if $data01 != 1 then
return -1
endi
endi
if $data02 != 1 then
return -1
endi
endi
$ts = $ts0 + $delta
sql insert into $tb2 values ( $ts , 2, 2)
...
...
@@ -86,16 +86,16 @@ if $rows != 2 then
endi
if $data01 != 1 then
return -1
endi
endi
if $data02 != 1 then
return -1
endi
endi
if $data11 != 2 then
return -1
endi
endi
if $data12 != 2 then
return -1
endi
endi
sql select * from $tb2 order by ts asc
if $rows != 2 then
...
...
@@ -103,15 +103,15 @@ if $rows != 2 then
endi
if $data01 != 1 then
return -1
endi
endi
if $data02 != 1 then
return -1
endi
endi
if $data11 != 2 then
return -1
endi
endi
if $data12 != 2 then
return -1
endi
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
system sh/exec.sh -n dnode1 -s stop -x SIGINT
tests/script/tsim/alter/dnode.sim
浏览文件 @
31872611
...
...
@@ -3,7 +3,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/exec.sh -n dnode1 -s start
sql connect
print ======== step1
print ======== step1
sql alter dnode 1 'resetlog'
sql alter dnode 1 'monitor' '1'
sql alter dnode 1 'monitor' '0'
...
...
@@ -65,4 +65,4 @@ sql alter dnode 1 balance "vnode:2-dnode:1" -x step4
step4:
print ======= over
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
system sh/exec.sh -n dnode1 -s stop -x SIGINT
tests/script/tsim/alter/table.sim
浏览文件 @
31872611
...
...
@@ -3,7 +3,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/exec.sh -n dnode1 -s start
sql connect
print ======== step1
print ======== step1
sql create database d1
sql use d1
sql create table tb (ts timestamp, a int)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录