[tbase-875]
This commit is contained in:
parent
d37ead6e30
commit
2c393a89dd
|
@ -308,7 +308,7 @@ int vnodeProcessQueryRequest(char *pMsg, int msgLen, SShellObj *pObj) {
|
||||||
if (pVnode->cfg.maxSessions == 0) {
|
if (pVnode->cfg.maxSessions == 0) {
|
||||||
dError("qmsg:%p,vid:%d is not activated yet", pQueryMsg, pQueryMsg->vnode);
|
dError("qmsg:%p,vid:%d is not activated yet", pQueryMsg, pQueryMsg->vnode);
|
||||||
vnodeSendVpeerCfgMsg(pQueryMsg->vnode);
|
vnodeSendVpeerCfgMsg(pQueryMsg->vnode);
|
||||||
code = TSDB_CODE_NOT_ACTIVE_TABLE;
|
code = TSDB_CODE_NOT_ACTIVE_VNODE;
|
||||||
goto _query_over;
|
goto _query_over;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -548,9 +548,13 @@ int32_t vnodeIncQueryRefCount(SQueryMeterMsg* pQueryMsg, SMeterSidExtInfo** pSid
|
||||||
for (int32_t i = 0; i < pQueryMsg->numOfSids; ++i) {
|
for (int32_t i = 0; i < pQueryMsg->numOfSids; ++i) {
|
||||||
SMeterObj* pMeter = pVnode->meterList[pSids[i]->sid];
|
SMeterObj* pMeter = pVnode->meterList[pSids[i]->sid];
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If table is missing or is in dropping status, config it from management node, and ignore it
|
||||||
|
* during query processing. The error code of TSDB_CODE_NOT_ACTIVE_TABLE will never return to client.
|
||||||
|
*/
|
||||||
if (pMeter == NULL || vnodeIsMeterState(pMeter, TSDB_METER_STATE_DROPPING)) {
|
if (pMeter == NULL || vnodeIsMeterState(pMeter, TSDB_METER_STATE_DROPPING)) {
|
||||||
code = TSDB_CODE_NOT_ACTIVE_TABLE;
|
dWarn("qmsg:%p, vid:%d sid:%d, not there or will be dropped, ignore this table in query", pQueryMsg,
|
||||||
dError("qmsg:%p, vid:%d sid:%d, not there or will be dropped", pQueryMsg, pQueryMsg->vnode, pSids[i]->sid);
|
pQueryMsg->vnode, pSids[i]->sid);
|
||||||
|
|
||||||
vnodeSendMeterCfgMsg(pQueryMsg->vnode, pSids[i]->sid);
|
vnodeSendMeterCfgMsg(pQueryMsg->vnode, pSids[i]->sid);
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue