mirror of https://github.com/citusdata/citus.git
Don't schedule tasks on inactive nodes.
parent
116c255d3d
commit
7b1d03772d
|
@ -5271,7 +5271,7 @@ ActivePlacementList(List *placementList)
|
||||||
|
|
||||||
/* check if the worker node for this shard placement is active */
|
/* check if the worker node for this shard placement is active */
|
||||||
workerNode = FindWorkerNode(placement->nodeName, placement->nodePort);
|
workerNode = FindWorkerNode(placement->nodeName, placement->nodePort);
|
||||||
if (workerNode != NULL)
|
if (workerNode != NULL && workerNode->isActive)
|
||||||
{
|
{
|
||||||
activePlacementList = lappend(activePlacementList, placement);
|
activePlacementList = lappend(activePlacementList, placement);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue