TD-1896
This commit is contained in:
parent
40728d1b31
commit
a4cb007d69
|
@ -318,7 +318,7 @@ int32_t vnodeOpen(int32_t vnode, char *rootDir) {
|
||||||
}
|
}
|
||||||
|
|
||||||
tsdbSyncCommit(pVnode->tsdb);
|
tsdbSyncCommit(pVnode->tsdb);
|
||||||
walRemoveAllOldFiles(pVnode->tsdb);
|
walRemoveAllOldFiles(pVnode->wal);
|
||||||
walRenew(pVnode->wal);
|
walRenew(pVnode->wal);
|
||||||
|
|
||||||
SSyncInfo syncInfo;
|
SSyncInfo syncInfo;
|
||||||
|
|
|
@ -0,0 +1,46 @@
|
||||||
|
system sh/stop_dnodes.sh
|
||||||
|
system sh/deploy.sh -n dnode1 -i 1
|
||||||
|
system sh/cfg.sh -n dnode1 -c maxTablesPerVnode -v 100
|
||||||
|
system sh/cfg.sh -n dnode1 -c maxVgroupsPerDb -v 1
|
||||||
|
system sh/cfg.sh -n dnode1 -c tableIncStepPerVnode -v 2
|
||||||
|
|
||||||
|
|
||||||
|
print ============== deploy
|
||||||
|
system sh/exec.sh -n dnode1 -s start
|
||||||
|
sleep 3001
|
||||||
|
sql connect
|
||||||
|
|
||||||
|
sql create database d1
|
||||||
|
sql use d1
|
||||||
|
sql create table st (ts timestamp, tbcol int) TAGS(tgcol int)
|
||||||
|
|
||||||
|
$i = 0
|
||||||
|
while $i < 100
|
||||||
|
$tb = t . $i
|
||||||
|
sql create table $tb using st tags( $i )
|
||||||
|
sql insert into $tb values (now , $i )
|
||||||
|
$i = $i + 1
|
||||||
|
endw
|
||||||
|
|
||||||
|
sql_error sql create table tt (ts timestamp, i int)
|
||||||
|
|
||||||
|
print =============== step3
|
||||||
|
sql select * from st;
|
||||||
|
if $rows != 100 then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
||||||
|
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||||
|
system sh/cfg.sh -n dnode1 -c maxTablesPerVnode -v 4
|
||||||
|
sleep 3000
|
||||||
|
|
||||||
|
print =============== step4
|
||||||
|
system sh/exec.sh -n dnode1 -s start -t
|
||||||
|
sleep 10000
|
||||||
|
|
||||||
|
sql select * from st;
|
||||||
|
if $rows != 100 then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
||||||
|
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
|
@ -238,6 +238,7 @@ cd ../../../debug; make
|
||||||
|
|
||||||
./test.sh -f general/wal/sync.sim
|
./test.sh -f general/wal/sync.sim
|
||||||
./test.sh -f general/wal/kill.sim
|
./test.sh -f general/wal/kill.sim
|
||||||
|
./test.sh -f general/wal/maxtables.sim
|
||||||
|
|
||||||
./test.sh -f unique/account/account_create.sim
|
./test.sh -f unique/account/account_create.sim
|
||||||
./test.sh -f unique/account/account_delete.sim
|
./test.sh -f unique/account/account_delete.sim
|
||||||
|
|
Loading…
Reference in New Issue