feat: check the result of rsma
This commit is contained in:
parent
45b88c1a2d
commit
a25880adc4
|
@ -37,6 +37,10 @@ if $rows > 2 then
|
|||
print retention level 2 file rows $rows > 2
|
||||
return -1
|
||||
endi
|
||||
if $data01 != 1 && $data01 != 10 then
|
||||
print retention level 2 file result $data01 != 1 or 10
|
||||
return -1
|
||||
endi
|
||||
print =============== select * from retention level 1 from memory
|
||||
sql select * from ct1 where ts > now-8d;
|
||||
print $data00 $data01
|
||||
|
@ -44,6 +48,10 @@ if $rows > 2 then
|
|||
print retention level 1 file rows $rows > 2
|
||||
return -1
|
||||
endi
|
||||
if $data01 != 1 && $data01 != 10 then
|
||||
print retention level 1 file result $data01 != 1 or 10
|
||||
return -1
|
||||
endi
|
||||
print =============== select * from retention level 0 from memory
|
||||
sql select * from ct1 where ts > now-3d;
|
||||
print $data00 $data01
|
||||
|
@ -53,6 +61,10 @@ if $rows < 1 then
|
|||
print retention level 0 file rows $rows < 1
|
||||
return -1
|
||||
endi
|
||||
if $data01 != 1 && $data01 != 10 then
|
||||
print retention level 0 file result $data01 != 10
|
||||
return -1
|
||||
endi
|
||||
#===================================================================
|
||||
|
||||
|
||||
|
@ -67,6 +79,11 @@ if $rows > 2 then
|
|||
print retention level 2 file rows $rows > 2
|
||||
return -1
|
||||
endi
|
||||
if $data01 != 1 && $data01 != 10 then
|
||||
print retention level 2 file result $data01 != 1 or 10
|
||||
return -1
|
||||
endi
|
||||
|
||||
|
||||
print =============== select * from retention level 1 from file
|
||||
sql select * from ct1 where ts > now-8d;
|
||||
|
@ -75,6 +92,10 @@ if $rows > 2 then
|
|||
print retention level 1 file rows $rows > 2
|
||||
return -1
|
||||
endi
|
||||
if $data01 != 1 && $data01 != 10 then
|
||||
print retention level 1 file result $data01 != 1 or 10
|
||||
return -1
|
||||
endi
|
||||
|
||||
print =============== select * from retention level 0 from file
|
||||
sql select * from ct1 where ts > now-3d;
|
||||
|
@ -85,5 +106,9 @@ if $rows < 1 then
|
|||
print retention level 0 file rows $rows < 1
|
||||
return -1
|
||||
endi
|
||||
if $data01 != 1 && $data01 != 10 then
|
||||
print retention level 0 file result $data01 != 10
|
||||
return -1
|
||||
endi
|
||||
|
||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
Loading…
Reference in New Issue