system sh/stop_dnodes.sh system sh/deploy.sh -n dnode1 -i 1 system sh/exec.sh -n dnode1 -s start sql connect $dbPrefix = reg_db $tb = tb $rowNum = 8200 $ts0 = 1537146000000 $delta = 100 print ========== reg.sim $i = 0 $db = $dbPrefix . $i sql drop database if exists $db -x step1 step1: sql create database $db vgroups 1; sql use $db sql create table $tb (ts timestamp, c1 int) $i = 0 $ts = $ts0 $x = 0 while $x < $rowNum $xs = $x * $delta $ts = $ts0 + $xs sql insert into $tb values ( $ts , $x ) $x = $x + 1 endw print ================== restart server to commit data into disk system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s start print ================== server restart completed sql connect sql use $db sql delete from $tb where ts=1537146000000 sql delete from $tb where ts=1537146409500 print =========================> TS-2410 sql select * from $tb limit 20 offset 4090 print $data00 print $data10 print $data20 print $data30 print $data40 print $data50 print $data60 print $data70 print $data80 print $data90 if $data40 != @18-09-17 09:06:49.600@ then return -1 endi system sh/exec.sh -n dnode1 -s stop -x SIGINT