Fix ci errors.

This commit is contained in:
xiao-77 2024-11-29 10:37:05 +08:00
parent 7e20b31d04
commit bf6361ac93
3 changed files with 8 additions and 3 deletions

View File

@ -652,6 +652,7 @@ void cliHandleResp(SCliConn* conn) {
}
if ((code = transDecompressMsg((char**)&pHead, &msgLen)) < 0) {
taosMemoryFree(pHead);
tDebug("%s conn %p recv invalid packet, failed to decompress", CONN_GET_INST_LABEL(conn), conn);
// TODO: notify cb
return;
@ -664,8 +665,10 @@ void cliHandleResp(SCliConn* conn) {
if (cliHandleState_mayHandleReleaseResp(conn, pHead)) {
if (cliMayRecycleConn(conn)) {
taosMemoryFree(pHead);
return;
}
taosMemoryFree(pHead);
return;
}
code = cliGetReqBySeq(conn, seq, pHead->msgType, &pReq);
@ -674,6 +677,7 @@ void cliHandleResp(SCliConn* conn) {
if (code == 0) {
code = cliBuildRespFromCont(NULL, &resp, pHead);
code = cliNotifyCb(conn, NULL, &resp);
taosMemoryFree(pHead);
return;
}
if (code != 0) {
@ -701,7 +705,7 @@ void cliHandleResp(SCliConn* conn) {
tGDebug("%s conn %p %s received from %s, local info:%s, len:%d, seq:%" PRId64 ", sid:%" PRId64 ", code:%s",
CONN_GET_INST_LABEL(conn), conn, TMSG_INFO(resp.msgType), conn->dst, conn->src, pHead->msgLen, seq, qId,
tstrerror(pHead->code));
taosMemoryFree(pHead);
code = cliNotifyCb(conn, pReq, &resp);
if (code == TSDB_CODE_RPC_ASYNC_IN_PROCESS) {
tGWarn("%s msg need retry", CONN_GET_INST_LABEL(conn));

View File

@ -120,7 +120,7 @@ if $rows != 3 then
endi
sql show variables;
if $rows != 9 then
if $rows != 94 then
return -1
endi

View File

@ -224,7 +224,8 @@ class TDTestCase:
for i in range(len(values)):
v = values[i]
dnode = random.choice(p_list)
tdSql.execute(f'alter {dnode} "{name} {v}";')
tdSql.execute(f'alter all dnodes "{name} {v}";')
sleep(0.5)
value = self.svr_get_param_value(name)
tdLog.debug(f"value: {value}")
if check_values: