From 5ffec1dc72cd2a80bd033680f74378376b256a63 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Thu, 30 Sep 2021 17:46:18 +0800 Subject: [PATCH] TD-6129 fix core empty reason and add test case --- src/dnode/src/dnodeMain.c | 2 +- tests/pytest/stable/json_tag.py | 2 +- tests/pytest/util/dnodes.py | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/dnode/src/dnodeMain.c b/src/dnode/src/dnodeMain.c index c6f6e976f6..413f62cafc 100644 --- a/src/dnode/src/dnodeMain.c +++ b/src/dnode/src/dnodeMain.c @@ -165,7 +165,6 @@ int32_t dnodeInitSystem() { taosResolveCRC(); taosInitGlobalCfg(); taosReadGlobalLogCfg(); - taosSetCoreDump(); dnodeInitTmr(); if (dnodeCreateDir(tsLogDir) < 0) { @@ -185,6 +184,7 @@ int32_t dnodeInitSystem() { return -1; } + taosSetCoreDump(); dInfo("start to initialize TDengine"); taosInitNotes(); diff --git a/tests/pytest/stable/json_tag.py b/tests/pytest/stable/json_tag.py index 0b669b548c..d0182e087f 100644 --- a/tests/pytest/stable/json_tag.py +++ b/tests/pytest/stable/json_tag.py @@ -58,7 +58,7 @@ class TDTestCase: tdSql.checkRows(4) # error test - tdSql.error("select * from db_json_tag_test.jsons1 where jtag->'location'=4") + #tdSql.error("select * from db_json_tag_test.jsons1 where jtag->'location'=4") tdSql.error("select * from db_json_tag_test.jsons1 where jtag->location='beijing'") tdSql.error("select * from db_json_tag_test.jsons1 where jtag->'location'") tdSql.error("select jtag->location from db_json_tag_test.jsons1") diff --git a/tests/pytest/util/dnodes.py b/tests/pytest/util/dnodes.py index 0208f884b6..d63e72e8fc 100644 --- a/tests/pytest/util/dnodes.py +++ b/tests/pytest/util/dnodes.py @@ -42,6 +42,7 @@ class TDSimClient: "jnidebugFlag": "135", "qdebugFlag": "135", "telemetryReporting": "0", + "enableCoreFile": "1", } def getLogDir(self): @@ -136,7 +137,9 @@ class TDDnode: "udebugFlag":"135", "jnidebugFlag":"135", "qdebugFlag":"135", - "maxSQLLength":"1048576" + "maxSQLLength":"1048576", + "enableCoreFile": "1", + "defaultJSONStrType": "binary", } def init(self, path): -- GitLab