Merge pull request #1616 from citusdata/deadlock_detection_warning

Don't error out if deadlock detection fails to connect to worker
pull/1613/head
Marco Slot 2017-08-24 10:31:15 +02:00 committed by GitHub
commit 7ce2308dc1
1 changed files with 6 additions and 4 deletions

View File

@ -134,7 +134,7 @@ BuildGlobalWaitGraph(void)
querySent = SendRemoteCommand(connection, command);
if (querySent == 0)
{
ReportConnectionError(connection, ERROR);
ReportConnectionError(connection, WARNING);
}
}
@ -151,7 +151,8 @@ BuildGlobalWaitGraph(void)
result = GetRemoteCommandResult(connection, raiseInterrupts);
if (!IsResponseOK(result))
{
ReportResultError(connection, result, ERROR);
ReportResultError(connection, result, WARNING);
continue;
}
rowCount = PQntuples(result);
@ -159,8 +160,9 @@ BuildGlobalWaitGraph(void)
if (colCount != 9)
{
ereport(ERROR, (errmsg("unexpected number of columns from "
"dump_local_wait_edges")));
ereport(WARNING, (errmsg("unexpected number of columns from "
"dump_local_wait_edges")));
continue;
}
for (rowIndex = 0; rowIndex < rowCount; rowIndex++)