checkError1.sim 1.2 KB
Newer Older
1 2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
S
Shengliang Guan 已提交
3
system sh/cfg.sh -n dnode1 -c debugflag -v 131
S
Shengliang Guan 已提交
4 5 6
system sh/exec.sh -n dnode1 -s start -v
sql connect

S
Shengliang Guan 已提交
7
print =============== step1: show dnodes
S
Shengliang Guan 已提交
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

$x = 0
step1:
	$x = $x + 1
	sleep 1000
	if $x == 10 then
	  print ----> dnode not ready!
		return -1
	endi
sql show dnodes
print ----> $data00 $data01 $data02 $data03 $data04 $data05
if $rows != 1 then
  return -1
endi

S
Shengliang Guan 已提交
23 24 25 26 27 28 29 30 31
print =============== step2: create alter drop show user
sql create user u1 pass 'taosdata'
sql show users
sql alter user u1 sysinfo 1
sql alter user u1 enable 1
sql alter user u1 pass 'taosdata'
sql drop user u1
sql_error alter user u2 sysinfo 0

S
Shengliang Guan 已提交
32 33 34 35
print =============== step3: create drop dnode
sql create dnode $hostname port 7200
sql drop dnode 2
sql alter dnode 1 'debugflag 143'
S
Shengliang Guan 已提交
36 37

print =============== stop
38 39
system sh/exec.sh -n dnode1 -s stop -x SIGINT

S
Shengliang Guan 已提交
40
print =============== check
S
Shengliang Guan 已提交
41
print ----> start to check if there are ERRORS in vagrind log file for each dnode
42
system_content sh/checkValgrind.sh -n dnode1 
S
Shengliang Guan 已提交
43 44

print cmd return result ----> [ $system_content ]
45
if $system_content <= 0 then
P
plum-lihui 已提交
46
  return 0
47
endi 
P
plum-lihui 已提交
48 49 50 51 52 53

$null=
if $system_content == $null then
  return 0
endi 

P
plum-lihui 已提交
54
return -1