diff --git a/src/dnode/src/dnodeMain.c b/src/dnode/src/dnodeMain.c index c6f6e976f65e66360e750ebdb5e056d79c8923a8..413f62cafccee1387c0d0945925eca0a462d736e 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 0b669b548cac9a9be5c8486769469aa45b499e6a..d0182e087f3ff9edb81075c3330ce0142f9ce410 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 0208f884b691a20e4b4456fe8165797969305674..d63e72e8fc7cabcc5aab1c2b73db9c13e1939185 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):