TD-1530
This commit is contained in:
parent
18a937de54
commit
6437b7fac5
|
@ -464,7 +464,14 @@ void dnodeUpdateMnodeEpSetForPeer(SRpcEpSet *pEpSet) {
|
||||||
dInfo("mnode EP list for peer is changed, numOfEps:%d inUse:%d", pEpSet->numOfEps, pEpSet->inUse);
|
dInfo("mnode EP list for peer is changed, numOfEps:%d inUse:%d", pEpSet->numOfEps, pEpSet->inUse);
|
||||||
for (int i = 0; i < pEpSet->numOfEps; ++i) {
|
for (int i = 0; i < pEpSet->numOfEps; ++i) {
|
||||||
pEpSet->port[i] -= TSDB_PORT_DNODEDNODE;
|
pEpSet->port[i] -= TSDB_PORT_DNODEDNODE;
|
||||||
dInfo("mnode index:%d %s:%u", i, pEpSet->fqdn[i], pEpSet->port[i])
|
dInfo("mnode index:%d %s:%u", i, pEpSet->fqdn[i], pEpSet->port[i]);
|
||||||
|
|
||||||
|
if (!mnodeIsRunning()) {
|
||||||
|
if (strcmp(pEpSet->fqdn[i], tsLocalFqdn) == 0 && pEpSet->port[i] == tsServerPort) {
|
||||||
|
dInfo("mnode index:%d %s:%u should work as master", i, pEpSet->fqdn[i], pEpSet->port[i]);
|
||||||
|
sdbUpdateSync();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tsDMnodeEpSet = *pEpSet;
|
tsDMnodeEpSet = *pEpSet;
|
||||||
|
|
|
@ -303,8 +303,8 @@ cd ../../../debug; make
|
||||||
./test.sh -f unique/mnode/mgmt22.sim
|
./test.sh -f unique/mnode/mgmt22.sim
|
||||||
./test.sh -f unique/mnode/mgmt23.sim
|
./test.sh -f unique/mnode/mgmt23.sim
|
||||||
./test.sh -f unique/mnode/mgmt24.sim
|
./test.sh -f unique/mnode/mgmt24.sim
|
||||||
#./test.sh -f unique/mnode/mgmt25.sim
|
./test.sh -f unique/mnode/mgmt25.sim
|
||||||
#./test.sh -f unique/mnode/mgmt26.sim
|
./test.sh -f unique/mnode/mgmt26.sim
|
||||||
./test.sh -f unique/mnode/mgmt33.sim
|
./test.sh -f unique/mnode/mgmt33.sim
|
||||||
./test.sh -f unique/mnode/mgmt34.sim
|
./test.sh -f unique/mnode/mgmt34.sim
|
||||||
./test.sh -f unique/mnode/mgmtr2.sim
|
./test.sh -f unique/mnode/mgmtr2.sim
|
||||||
|
|
|
@ -65,7 +65,7 @@ endi
|
||||||
|
|
||||||
print ============== step4
|
print ============== step4
|
||||||
sql drop dnode $hostname2
|
sql drop dnode $hostname2
|
||||||
sleep 8000
|
sleep 16000
|
||||||
|
|
||||||
sql show mnodes
|
sql show mnodes
|
||||||
$dnode1Role = $data2_1
|
$dnode1Role = $data2_1
|
||||||
|
|
Loading…
Reference in New Issue