This commit is contained in:
Alexander Tokmakov 2021-02-20 19:27:04 +03:00
parent b62a29728f
commit 694d89ad81
3 changed files with 6 additions and 3 deletions

View File

@ -53,10 +53,11 @@ handle SIGBUS stop print
handle SIGABRT stop print
continue
thread apply all backtrace
continue
detach
quit
" > script.gdb
gdb -batch -command script.gdb -p "$(cat /var/run/clickhouse-server/clickhouse-server.pid)" &
gdb -batch -command script.gdb -p "$(cat /var/run/clickhouse-server/clickhouse-server.pid)" >> /test_output/gdb.log &
}
configure

View File

@ -85,6 +85,8 @@ if __name__ == "__main__":
logging.info("All processes finished")
if args.hung_check:
logging.info("Will terminate gdb (if any)")
res = call("killall -TERM gdb", shell=True, stderr=STDOUT)
logging.info("Checking if some queries hung")
cmd = "{} {} {}".format(args.test_cmd, "--hung-check", "00001_select_1")
res = call(cmd, shell=True, stderr=STDOUT)

View File

@ -719,7 +719,7 @@ void DDLWorker::processTask(DDLTask & task)
String dummy;
if (zookeeper->tryGet(active_node_path, dummy, nullptr, eph_node_disappeared))
{
constexpr int timeout_ms = 5000;
constexpr int timeout_ms = 30 * 1000;
if (!eph_node_disappeared->tryWait(timeout_ms))
throw Exception(ErrorCodes::LOGICAL_ERROR, "Ephemeral node {} still exists, "
"probably it's owned by someone else", active_node_path);