解决:【业务范畴:分布式】【测试类型:压力长稳】【测试活动:专项】【专项名称:压力长稳】【环境:裸机】执行TPCC+混合DDL、DML业务,CN产生hang

This commit is contained in:
flyly 2021-06-12 16:14:18 +08:00 committed by cchen676
parent 080c54c9da
commit 9bb33c2a4b
1 changed files with 3 additions and 0 deletions

View File

@ -514,7 +514,10 @@ void errfinish(int dummy, ...)
if (edata->elevel >= u_sess->attr.attr_common.backtrace_min_messages) {
StringInfoData buf;
initStringInfo(&buf);
HOLD_INTERRUPTS();
int ret = output_backtrace_to_log(&buf);
RESUME_INTERRUPTS();
if (0 == ret) {
edata->backtrace_log = pstrdup(buf.data);