mirror of https://github.com/citusdata/citus.git
Check all placements aren't inactive
parent
7b1d03772d
commit
c9b1d9c2d1
|
@ -5213,6 +5213,12 @@ ActiveShardPlacementLists(List *taskList)
|
||||||
|
|
||||||
/* filter out shard placements that reside in inactive nodes */
|
/* filter out shard placements that reside in inactive nodes */
|
||||||
List *activeShardPlacementList = ActivePlacementList(shardPlacementList);
|
List *activeShardPlacementList = ActivePlacementList(shardPlacementList);
|
||||||
|
if (activeShardPlacementList == NIL)
|
||||||
|
{
|
||||||
|
ereport(ERROR,
|
||||||
|
(errmsg("no active placements were found for shard " UINT64_FORMAT,
|
||||||
|
anchorShardId)));
|
||||||
|
}
|
||||||
|
|
||||||
/* sort shard placements by their creation time */
|
/* sort shard placements by their creation time */
|
||||||
activeShardPlacementList = SortList(activeShardPlacementList,
|
activeShardPlacementList = SortList(activeShardPlacementList,
|
||||||
|
|
Loading…
Reference in New Issue