Don't spinloop when trying to cleanup a failed connection

pull/2235/head
Brian Cloutier 2018-05-17 14:54:30 -07:00 committed by Brian Cloutier
parent d63cbf3822
commit 5ce18327a7
1 changed files with 2 additions and 1 deletions

View File

@ -2939,8 +2939,9 @@ TrackerHashCleanupJob(HTAB *taskTrackerHash, Task *jobCleanupTask)
taskTracker);
}
}
else if (timedOut)
else if (resultStatus == CLIENT_RESULT_UNAVAILABLE || timedOut)
{
/* CLIENT_RESULT_UNAVAILABLE is returned if the connection failed somehow */
ereport(WARNING, (errmsg("could not receive response for cleanup query "
"result for job " UINT64_FORMAT " on node "
"\"%s:%u\" with status %d",