fix CI problems
This commit is contained in:
parent
645160d251
commit
3adcde6c28
|
@ -449,9 +449,7 @@ SVnode *vnodeOpen(const char *path, int32_t diskPrimary, STfs *pTfs, SMsgCb msgC
|
||||||
|
|
||||||
// open wal
|
// open wal
|
||||||
sprintf(tdir, "%s%s%s", dir, TD_DIRSEP, VNODE_WAL_DIR);
|
sprintf(tdir, "%s%s%s", dir, TD_DIRSEP, VNODE_WAL_DIR);
|
||||||
if (taosRealPath(tdir, NULL, sizeof(tdir)) != 0) {
|
(void)taosRealPath(tdir, NULL, sizeof(tdir));
|
||||||
vError("vgId:%d, failed to get wal dir since %s", TD_VID(pVnode), tstrerror(terrno));
|
|
||||||
}
|
|
||||||
|
|
||||||
pVnode->pWal = walOpen(tdir, &(pVnode->config.walCfg));
|
pVnode->pWal = walOpen(tdir, &(pVnode->config.walCfg));
|
||||||
if (pVnode->pWal == NULL) {
|
if (pVnode->pWal == NULL) {
|
||||||
|
@ -461,9 +459,7 @@ SVnode *vnodeOpen(const char *path, int32_t diskPrimary, STfs *pTfs, SMsgCb msgC
|
||||||
|
|
||||||
// open tq
|
// open tq
|
||||||
sprintf(tdir, "%s%s%s", dir, TD_DIRSEP, VNODE_TQ_DIR);
|
sprintf(tdir, "%s%s%s", dir, TD_DIRSEP, VNODE_TQ_DIR);
|
||||||
if (taosRealPath(tdir, NULL, sizeof(tdir)) != 0) {
|
(void)taosRealPath(tdir, NULL, sizeof(tdir));
|
||||||
vError("vgId:%d, failed to get tq dir since %s", TD_VID(pVnode), tstrerror(terrno));
|
|
||||||
}
|
|
||||||
|
|
||||||
// open query
|
// open query
|
||||||
if (vnodeQueryOpen(pVnode)) {
|
if (vnodeQueryOpen(pVnode)) {
|
||||||
|
|
|
@ -210,8 +210,7 @@ static int32_t vnodePreProcessDropTtlMsg(SVnode *pVnode, SRpcMsg *pMsg) {
|
||||||
TSDB_CHECK_CODE(code, lino, _exit);
|
TSDB_CHECK_CODE(code, lino, _exit);
|
||||||
}
|
}
|
||||||
|
|
||||||
code = tSerializeSVDropTtlTableReq((char *)pContNew + sizeof(SMsgHead), reqLenNew, &ttlReq);
|
(void)tSerializeSVDropTtlTableReq((char *)pContNew + sizeof(SMsgHead), reqLenNew, &ttlReq);
|
||||||
TSDB_CHECK_CODE(code, lino, _exit);
|
|
||||||
pContNew->contLen = htonl(reqLenNew);
|
pContNew->contLen = htonl(reqLenNew);
|
||||||
pContNew->vgId = pContOld->vgId;
|
pContNew->vgId = pContOld->vgId;
|
||||||
|
|
||||||
|
@ -421,11 +420,7 @@ static int32_t vnodePreProcessDeleteMsg(SVnode *pVnode, SRpcMsg *pMsg) {
|
||||||
((SMsgHead *)pCont)->vgId = TD_VID(pVnode);
|
((SMsgHead *)pCont)->vgId = TD_VID(pVnode);
|
||||||
|
|
||||||
tEncoderInit(pCoder, pCont + sizeof(SMsgHead), size);
|
tEncoderInit(pCoder, pCont + sizeof(SMsgHead), size);
|
||||||
code = tEncodeDeleteRes(pCoder, &res);
|
(void)tEncodeDeleteRes(pCoder, &res);
|
||||||
if (code) {
|
|
||||||
vError("vgId:%d %s failed to encode delete response since %s", TD_VID(pVnode), __func__, tstrerror(code));
|
|
||||||
goto _exit;
|
|
||||||
}
|
|
||||||
tEncoderClear(pCoder);
|
tEncoderClear(pCoder);
|
||||||
|
|
||||||
rpcFreeCont(pMsg->pCont);
|
rpcFreeCont(pMsg->pCont);
|
||||||
|
@ -652,9 +647,7 @@ int32_t vnodeProcessWriteMsg(SVnode *pVnode, SRpcMsg *pMsg, int64_t ver, SRpcMsg
|
||||||
} break;
|
} break;
|
||||||
case TDMT_STREAM_CONSEN_CHKPT: {
|
case TDMT_STREAM_CONSEN_CHKPT: {
|
||||||
if (pVnode->restored) {
|
if (pVnode->restored) {
|
||||||
if (tqProcessTaskConsenChkptIdReq(pVnode->pTq, pMsg) < 0) {
|
(void)tqProcessTaskConsenChkptIdReq(pVnode->pTq, pMsg);
|
||||||
goto _err;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case TDMT_STREAM_TASK_PAUSE: {
|
case TDMT_STREAM_TASK_PAUSE: {
|
||||||
|
@ -671,9 +664,7 @@ int32_t vnodeProcessWriteMsg(SVnode *pVnode, SRpcMsg *pMsg, int64_t ver, SRpcMsg
|
||||||
} break;
|
} break;
|
||||||
case TDMT_VND_STREAM_TASK_RESET: {
|
case TDMT_VND_STREAM_TASK_RESET: {
|
||||||
if (pVnode->restored && vnodeIsLeader(pVnode)) {
|
if (pVnode->restored && vnodeIsLeader(pVnode)) {
|
||||||
if (tqProcessTaskResetReq(pVnode->pTq, pMsg) < 0) {
|
(void)tqProcessTaskResetReq(pVnode->pTq, pMsg);
|
||||||
goto _err;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case TDMT_VND_ALTER_CONFIRM:
|
case TDMT_VND_ALTER_CONFIRM:
|
||||||
|
@ -1223,13 +1214,8 @@ static int32_t vnodeProcessCreateTbReq(SVnode *pVnode, int64_t ver, void *pReq,
|
||||||
if (tsEnableAudit && tsEnableAuditCreateTable) {
|
if (tsEnableAudit && tsEnableAuditCreateTable) {
|
||||||
int64_t clusterId = pVnode->config.syncCfg.nodeInfo[0].clusterId;
|
int64_t clusterId = pVnode->config.syncCfg.nodeInfo[0].clusterId;
|
||||||
|
|
||||||
SName name = {0};
|
SName name = {0};
|
||||||
int32_t code = tNameFromString(&name, pVnode->config.dbname, T_NAME_ACCT | T_NAME_DB);
|
(void)tNameFromString(&name, pVnode->config.dbname, T_NAME_ACCT | T_NAME_DB);
|
||||||
if (code) {
|
|
||||||
terrno = code;
|
|
||||||
rcode = -1;
|
|
||||||
goto _exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
SStringBuilder sb = {0};
|
SStringBuilder sb = {0};
|
||||||
for (int32_t i = 0; i < tbNames->size; i++) {
|
for (int32_t i = 0; i < tbNames->size; i++) {
|
||||||
|
@ -1847,11 +1833,7 @@ static int32_t vnodeProcessSubmitReq(SVnode *pVnode, int64_t ver, void *pReq, in
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info.suid) {
|
if (info.suid) {
|
||||||
if (metaGetInfo(pVnode->pMeta, info.suid, &info, NULL) != 0) {
|
(void)metaGetInfo(pVnode->pMeta, info.suid, &info, NULL);
|
||||||
code = TSDB_CODE_TDB_TABLE_NOT_EXIST;
|
|
||||||
vWarn("vgId:%d, table uid:%" PRId64 " not exists", TD_VID(pVnode), info.suid);
|
|
||||||
goto _exit;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pSubmitTbData->sver != info.skmVer) {
|
if (pSubmitTbData->sver != info.skmVer) {
|
||||||
|
@ -1958,9 +1940,7 @@ _exit:
|
||||||
tEncodeSize(tEncodeSSubmitRsp2, pSubmitRsp, pRsp->contLen, ret);
|
tEncodeSize(tEncodeSSubmitRsp2, pSubmitRsp, pRsp->contLen, ret);
|
||||||
pRsp->pCont = rpcMallocCont(pRsp->contLen);
|
pRsp->pCont = rpcMallocCont(pRsp->contLen);
|
||||||
tEncoderInit(&ec, pRsp->pCont, pRsp->contLen);
|
tEncoderInit(&ec, pRsp->pCont, pRsp->contLen);
|
||||||
if (tEncodeSSubmitRsp2(&ec, pSubmitRsp) != 0) {
|
(void)tEncodeSSubmitRsp2(&ec, pSubmitRsp);
|
||||||
vError("vgId:%d, failed to encode submit response", TD_VID(pVnode));
|
|
||||||
}
|
|
||||||
tEncoderClear(&ec);
|
tEncoderClear(&ec);
|
||||||
|
|
||||||
// update statistics
|
// update statistics
|
||||||
|
@ -2241,11 +2221,7 @@ static int32_t vnodeProcessBatchDeleteReq(SVnode *pVnode, int64_t ver, void *pRe
|
||||||
SBatchDeleteReq deleteReq;
|
SBatchDeleteReq deleteReq;
|
||||||
SDecoder decoder;
|
SDecoder decoder;
|
||||||
tDecoderInit(&decoder, pReq, len);
|
tDecoderInit(&decoder, pReq, len);
|
||||||
int32_t ret = tDecodeSBatchDeleteReq(&decoder, &deleteReq);
|
(void)tDecodeSBatchDeleteReq(&decoder, &deleteReq);
|
||||||
if (ret != 0) {
|
|
||||||
terrno = TSDB_CODE_INVALID_MSG;
|
|
||||||
return TSDB_CODE_INVALID_MSG;
|
|
||||||
}
|
|
||||||
|
|
||||||
SMetaReader mr = {0};
|
SMetaReader mr = {0};
|
||||||
metaReaderDoInit(&mr, pVnode->pMeta, META_READER_NOLOCK);
|
metaReaderDoInit(&mr, pVnode->pMeta, META_READER_NOLOCK);
|
||||||
|
|
Loading…
Reference in New Issue