未验证 提交 bfa5caa2 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #12908 from taosdata/fix/mnode

test: add test cases for trans
......@@ -68,6 +68,7 @@
./test.sh -f tsim/stream/basic1.sim
# ---- transaction
./test.sh -f tsim/trans/lossdata1.sim
./test.sh -f tsim/trans/create_db.sim
# ---- tmq
......
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c transPullupInterval -v 1
system sh/exec.sh -n dnode1 -s start
sql connect
print ======= backup sdbdata
system sh/exec.sh -n dnode1 -s stop
system cp ../../../../sim/dnode1/data/mnode/data/sdb.data ../../../../sim/dnode1/data/mnode/data/sdb.data.bak1
system sh/exec.sh -n dnode1 -s start
sql connect
print =============== create user1
sql create user user1 PASS 'user1'
sql create user user2 PASS 'user2'
sql show users
if $rows != 3 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop
print ======= restore backup data
system cp ../../../../sim/dnode1/data/mnode/data/sdb.data.bak1 ../../../../sim/dnode1/data/mnode/data/sdb.data
system sh/exec.sh -n dnode1 -s start
sql connect
sql show users
if $rows != 3 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册