From 1e244ce6408bbf519c2d339d8cb8d0e4169f04a2 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Thu, 26 Aug 2021 08:33:19 +0800 Subject: [PATCH] schemaless: change database not ready processing to sleep without clear global meta cache --- src/client/src/tscParseLineProtocol.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client/src/tscParseLineProtocol.c b/src/client/src/tscParseLineProtocol.c index b01e4daa05..6c30c78643 100644 --- a/src/client/src/tscParseLineProtocol.c +++ b/src/client/src/tscParseLineProtocol.c @@ -853,8 +853,7 @@ static int32_t insertChildTableBatch(TAOS* taos, char* cTableName, SArray* cols tryAgain = true; } - if (code == TSDB_CODE_APP_NOT_READY || - code == TSDB_CODE_TDB_INVALID_TABLE_ID || code == TSDB_CODE_VND_INVALID_VGROUP_ID) { + if (code == TSDB_CODE_TDB_INVALID_TABLE_ID || code == TSDB_CODE_VND_INVALID_VGROUP_ID) { TAOS_RES* res2 = taos_query(taos, "RESET QUERY CACHE"); int32_t code2 = taos_errno(res2); if (code2 != TSDB_CODE_SUCCESS) { @@ -865,7 +864,7 @@ static int32_t insertChildTableBatch(TAOS* taos, char* cTableName, SArray* cols taosMsleep(50 * (2 << try)); } } - if (code == TSDB_CODE_RPC_NETWORK_UNAVAIL) { + if (code == TSDB_CODE_APP_NOT_READY || code == TSDB_CODE_RPC_NETWORK_UNAVAIL) { if (tryAgain) { taosMsleep( 50 * (2 << try)); } -- GitLab