提交 5ffec1dc 编写于 作者: wmmhello's avatar wmmhello

TD-6129<feature> fix core empty reason and add test case

上级 e01c569e
...@@ -165,7 +165,6 @@ int32_t dnodeInitSystem() { ...@@ -165,7 +165,6 @@ int32_t dnodeInitSystem() {
taosResolveCRC(); taosResolveCRC();
taosInitGlobalCfg(); taosInitGlobalCfg();
taosReadGlobalLogCfg(); taosReadGlobalLogCfg();
taosSetCoreDump();
dnodeInitTmr(); dnodeInitTmr();
if (dnodeCreateDir(tsLogDir) < 0) { if (dnodeCreateDir(tsLogDir) < 0) {
...@@ -185,6 +184,7 @@ int32_t dnodeInitSystem() { ...@@ -185,6 +184,7 @@ int32_t dnodeInitSystem() {
return -1; return -1;
} }
taosSetCoreDump();
dInfo("start to initialize TDengine"); dInfo("start to initialize TDengine");
taosInitNotes(); taosInitNotes();
......
...@@ -58,7 +58,7 @@ class TDTestCase: ...@@ -58,7 +58,7 @@ class TDTestCase:
tdSql.checkRows(4) tdSql.checkRows(4)
# error test # 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='beijing'")
tdSql.error("select * from db_json_tag_test.jsons1 where jtag->'location'") tdSql.error("select * from db_json_tag_test.jsons1 where jtag->'location'")
tdSql.error("select jtag->location from db_json_tag_test.jsons1") tdSql.error("select jtag->location from db_json_tag_test.jsons1")
......
...@@ -42,6 +42,7 @@ class TDSimClient: ...@@ -42,6 +42,7 @@ class TDSimClient:
"jnidebugFlag": "135", "jnidebugFlag": "135",
"qdebugFlag": "135", "qdebugFlag": "135",
"telemetryReporting": "0", "telemetryReporting": "0",
"enableCoreFile": "1",
} }
def getLogDir(self): def getLogDir(self):
...@@ -136,7 +137,9 @@ class TDDnode: ...@@ -136,7 +137,9 @@ class TDDnode:
"udebugFlag":"135", "udebugFlag":"135",
"jnidebugFlag":"135", "jnidebugFlag":"135",
"qdebugFlag":"135", "qdebugFlag":"135",
"maxSQLLength":"1048576" "maxSQLLength":"1048576",
"enableCoreFile": "1",
"defaultJSONStrType": "binary",
} }
def init(self, path): def init(self, path):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册