TD-1671
This commit is contained in:
parent
d477429414
commit
ccfed462dd
|
@ -535,7 +535,9 @@ static void dnodeProcessStatusRsp(SRpcMsg *pMsg) {
|
|||
}
|
||||
|
||||
vnodeSetAccess(pStatusRsp->vgAccess, pCfg->numOfVnodes);
|
||||
dnodeProcessModuleStatus(pCfg->moduleStatus);
|
||||
|
||||
// will not set mnode in status msg
|
||||
// dnodeProcessModuleStatus(pCfg->moduleStatus);
|
||||
dnodeUpdateDnodeCfg(pCfg);
|
||||
|
||||
dnodeUpdateMnodeInfos(pMnodes);
|
||||
|
|
|
@ -360,7 +360,7 @@ void sdbUpdateSync(void *pMnodes) {
|
|||
}
|
||||
|
||||
if (!hasThisDnode) {
|
||||
sdbError("update sync config, this dnode not exist");
|
||||
sdbDebug("update sync config, this dnode not exist");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,16 @@ system sh/exec.sh -n dnode2 -s start
|
|||
sql create dnode $hostname3
|
||||
system sh/exec.sh -n dnode3 -s start
|
||||
|
||||
sleep 5000
|
||||
sleep 3000
|
||||
|
||||
$x = 0
|
||||
show2:
|
||||
$x = $x + 1
|
||||
sleep 2000
|
||||
if $x == 10 then
|
||||
return -1
|
||||
endi
|
||||
|
||||
sql show mnodes
|
||||
$dnode1Role = $data2_1
|
||||
$dnode2Role = $data2_2
|
||||
|
@ -37,6 +46,16 @@ print $dnode1Role
|
|||
print $dnode2Role
|
||||
print $dnode3Role
|
||||
|
||||
if $dnode1Role != master then
|
||||
goto show2
|
||||
endi
|
||||
if $dnode2Role != slave then
|
||||
goto show2
|
||||
endi
|
||||
if $dnode3Role != slave then
|
||||
goto show2
|
||||
endi
|
||||
|
||||
print ============================== step3
|
||||
$count = 2
|
||||
while $count < 102
|
||||
|
|
Loading…
Reference in New Issue