From 0c814c09b8083ae3d0865b84fba1d004ecc7c6ba Mon Sep 17 00:00:00 2001 From: slguan Date: Fri, 1 May 2020 12:07:09 +0800 Subject: [PATCH] add log info --- src/client/src/tscServer.c | 7 +++++-- tests/script/unique/mnode/mgmt22.sim | 3 ++- tests/tsim/src/simExe.c | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 9b44bea82d..9488d4a79e 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 5e2b5623e3..9fda0f1089 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 b407289c3a..26291ba992 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; } -- GitLab