sleep $sleepTimer # waitting for move master vnode of dnode2 to dnode3
sleep $sleepTimer # waitting for move master vnode of dnode2 to dnode3
...
@@ -152,6 +152,12 @@ if $data00 != $totalRows then
...
@@ -152,6 +152,12 @@ if $data00 != $totalRows then
return -1
return -1
endi
endi
system_content ls ../../../sim/dnode3/data/vnode/vnode2/tsdb/data/ -l |grep "^-"|wc -l
print ---->dnode3 data files: $system_content , expect is 9
#if $system_content != @9@ then
# return -1
#endi
print ============== step5: insert two data rows: now-16d, now+16d,
print ============== step5: insert two data rows: now-16d, now+16d,
sql insert into $tb values ( now - 21d , -21 )
sql insert into $tb values ( now - 21d , -21 )
sql insert into $tb values ( now - 41d , -41 )
sql insert into $tb values ( now - 41d , -41 )
...
@@ -163,4 +169,47 @@ if $data00 != $totalRows then
...
@@ -163,4 +169,47 @@ if $data00 != $totalRows then
return -1
return -1
endi
endi
print ============== step6: please check there should be 3 file in sim/dnode2/data/vnode/vnode2/tsdb/data/, and 1 file sim/dnode3/data/vnode/vnode2/tsdb/data/
system_content ls ../../../sim/dnode2/data/vnode/vnode2/tsdb/data/ -l |grep "^-"|wc -l
print ---->dnode2 data files: $system_content , expect is 3
#if $system_content != @3@ then
# return -1
#endi
print ============== step7: restart dnode3, waiting sync end