diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 9b44bea82d1c9927b9ef2cf1331af5bf7267d7f9..9488d4a79e60b8a9468091a2df79736220ebcb13 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -86,8 +86,11 @@ void tscSetMgmtIpListFromEdge() { } void tscUpdateIpSet(void *ahandle, SRpcIpSet *pIpSet) { - tscTrace("mgmt IP list is changed for ufp is called"); tscMgmtIpSet = *pIpSet; + tscTrace("mgmt IP list is changed for ufp is called, numOfIps:%d inUse:%d", tscMgmtIpSet.numOfIps, tscMgmtIpSet.inUse); + for (int32_t i = 0; i < tscMgmtIpSet.numOfIps; ++i) { + tscTrace("index:%d fqdn:%s port:%d", i, tscMgmtIpSet.fqdn[i], tscMgmtIpSet.port[i]); + } } void tscSetMgmtIpList(SRpcIpSet *pIpList) { @@ -138,7 +141,7 @@ void tscProcessHeartBeatRsp(void *param, TAOS_RES *tres, int code) { if (pRsp->streamId) tscKillStream(pObj, htonl(pRsp->streamId)); } } else { - tscTrace("heart beat failed, code:%d", code); + tscTrace("heart beat failed, code:%s", tstrerror(code)); } taosTmrReset(tscProcessActivityTimer, tsShellActivityTimer * 500, pObj, tscTmr, &pObj->pTimer); diff --git a/tests/script/unique/mnode/mgmt22.sim b/tests/script/unique/mnode/mgmt22.sim index 5e2b5623e353683bdf77e28495e17514f508da40..9fda0f108967eaeda99e96b7739c7f1201f354cb 100644 --- a/tests/script/unique/mnode/mgmt22.sim +++ b/tests/script/unique/mnode/mgmt22.sim @@ -55,6 +55,7 @@ print error of no master print ============== step6 system sh/exec_up.sh -n dnode1 -s start +sleep 2000 sql close sql connect @@ -66,7 +67,7 @@ show6: return -1 endi -sql show mnodes +sql show mnodes -x show6 print dnode1 ==> $data2_1 print dnode2 ==> $data2_2 if $data2_1 != master then diff --git a/tests/tsim/src/simExe.c b/tests/tsim/src/simExe.c index b407289c3ad816c16075c6f8a98cd8ee559a5027..26291ba992346b595314d3e017272809aad3d62e 100644 --- a/tests/tsim/src/simExe.c +++ b/tests/tsim/src/simExe.c @@ -414,6 +414,7 @@ void simCloseNativeConnect(SScript *script) { simTrace("script:%s, taos:%p closed", script->fileName, script->taos); taos_close(script->taos); + taosMsleep(1000); script->taos = NULL; }