add log
This commit is contained in:
parent
66e7719e5d
commit
d2b2e6a02c
|
@ -571,8 +571,8 @@ static void balanceCheckDnodeAccess() {
|
||||||
if (pDnode->status != TAOS_DN_STATUS_DROPPING && pDnode->status != TAOS_DN_STATUS_OFFLINE) {
|
if (pDnode->status != TAOS_DN_STATUS_DROPPING && pDnode->status != TAOS_DN_STATUS_OFFLINE) {
|
||||||
pDnode->status = TAOS_DN_STATUS_OFFLINE;
|
pDnode->status = TAOS_DN_STATUS_OFFLINE;
|
||||||
pDnode->offlineReason = TAOS_DN_OFF_STATUS_MSG_TIMEOUT;
|
pDnode->offlineReason = TAOS_DN_OFF_STATUS_MSG_TIMEOUT;
|
||||||
mInfo("dnode:%d, set to offline state, access seq:%d, last seq:%d", pDnode->dnodeId, tsAccessSquence,
|
mInfo("dnode:%d, set to offline state, access seq:%d last seq:%d laststat:%d", pDnode->dnodeId, tsAccessSquence,
|
||||||
pDnode->lastAccess);
|
pDnode->lastAccess, pDnode->status);
|
||||||
balanceSetVgroupOffline(pDnode);
|
balanceSetVgroupOffline(pDnode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,15 +77,15 @@ void dnodeUpdateMInfos(SMnodeInfos *minfos) {
|
||||||
|
|
||||||
void dnodeUpdateEpSetForPeer(SRpcEpSet *ep) {
|
void dnodeUpdateEpSetForPeer(SRpcEpSet *ep) {
|
||||||
if (ep->numOfEps <= 0) {
|
if (ep->numOfEps <= 0) {
|
||||||
dError("mnode EP list for peer is changed, but content is invalid, discard it");
|
dError("minfos is changed, but content is invalid, discard it");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
pthread_mutex_lock(&tsMInfosMutex);
|
pthread_mutex_lock(&tsMInfosMutex);
|
||||||
dInfo("mnode EP list for peer is changed, numOfEps:%d inUse:%d", ep->numOfEps, ep->inUse);
|
dInfo("minfos is changed, numOfEps:%d inUse:%d", ep->numOfEps, ep->inUse);
|
||||||
for (int i = 0; i < ep->numOfEps; ++i) {
|
for (int i = 0; i < ep->numOfEps; ++i) {
|
||||||
ep->port[i] -= TSDB_PORT_DNODEDNODE;
|
ep->port[i] -= TSDB_PORT_DNODEDNODE;
|
||||||
dInfo("mnode index:%d %s:%u", i, ep->fqdn[i], ep->port[i]);
|
dInfo("minfo:%d %s:%u", i, ep->fqdn[i], ep->port[i]);
|
||||||
}
|
}
|
||||||
tsMEpSet = *ep;
|
tsMEpSet = *ep;
|
||||||
pthread_mutex_unlock(&tsMInfosMutex);
|
pthread_mutex_unlock(&tsMInfosMutex);
|
||||||
|
|
|
@ -584,7 +584,7 @@ static int32_t mnodeProcessDnodeStatusMsg(SMnodeMsg *pMsg) {
|
||||||
return TSDB_CODE_MND_CLUSTER_CFG_INCONSISTENT;
|
return TSDB_CODE_MND_CLUSTER_CFG_INCONSISTENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
mDebug("dnode:%d, from offline to online", pDnode->dnodeId);
|
mInfo("dnode:%d, from offline to online", pDnode->dnodeId);
|
||||||
pDnode->status = TAOS_DN_STATUS_READY;
|
pDnode->status = TAOS_DN_STATUS_READY;
|
||||||
pDnode->offlineReason = TAOS_DN_OFF_ONLINE;
|
pDnode->offlineReason = TAOS_DN_OFF_ONLINE;
|
||||||
balanceSyncNotify();
|
balanceSyncNotify();
|
||||||
|
|
|
@ -63,9 +63,9 @@ int32_t mnodeProcessPeerReq(SMnodeMsg *pMsg) {
|
||||||
for (int32_t i = 0; i < epSet->numOfEps; ++i) {
|
for (int32_t i = 0; i < epSet->numOfEps; ++i) {
|
||||||
if (strcmp(epSet->fqdn[i], tsLocalFqdn) == 0 && htons(epSet->port[i]) == tsServerPort + TSDB_PORT_DNODEDNODE) {
|
if (strcmp(epSet->fqdn[i], tsLocalFqdn) == 0 && htons(epSet->port[i]) == tsServerPort + TSDB_PORT_DNODEDNODE) {
|
||||||
epSet->inUse = (i + 1) % epSet->numOfEps;
|
epSet->inUse = (i + 1) % epSet->numOfEps;
|
||||||
mDebug("mnode index:%d ep:%s:%u, set inUse to %d", i, epSet->fqdn[i], htons(epSet->port[i]), epSet->inUse);
|
mDebug("mpeer:%d ep:%s:%u, set inUse to %d", i, epSet->fqdn[i], htons(epSet->port[i]), epSet->inUse);
|
||||||
} else {
|
} else {
|
||||||
mDebug("mnode index:%d ep:%s:%u", i, epSet->fqdn[i], htons(epSet->port[i]));
|
mDebug("mpeer:%d ep:%s:%u", i, epSet->fqdn[i], htons(epSet->port[i]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue