fix(rpc): add msgType condition
This commit is contained in:
parent
8774d2c17b
commit
37ea86f8ed
|
@ -1673,7 +1673,14 @@ int cliAppCb(SCliConn* pConn, STransMsg* pResp, SCliMsg* pMsg) {
|
||||||
// check whole vnodes is offline on this vgroup
|
// check whole vnodes is offline on this vgroup
|
||||||
if (pResp->code == TSDB_CODE_RPC_NETWORK_UNAVAIL || pResp->code == TSDB_CODE_RPC_BROKEN_LINK) {
|
if (pResp->code == TSDB_CODE_RPC_NETWORK_UNAVAIL || pResp->code == TSDB_CODE_RPC_BROKEN_LINK) {
|
||||||
if (pCtx->epsetRetryCnt >= pCtx->epSet.numOfEps || pCtx->retryStep > 0) {
|
if (pCtx->epsetRetryCnt >= pCtx->epSet.numOfEps || pCtx->retryStep > 0) {
|
||||||
pResp->code = TSDB_CODE_RPC_VGROUP_NOT_CONNECTED;
|
switch (pMsg->msg.msgType) {
|
||||||
|
case TDMT_VND_BATCH_META:
|
||||||
|
case TDMT_VND_SUBMIT:
|
||||||
|
case TDMT_SCH_QUERY:
|
||||||
|
case TDMT_SCH_MERGE_QUERY:
|
||||||
|
pResp->code = TSDB_CODE_RPC_VGROUP_NOT_CONNECTED;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue