Avoid failover during re-partition joins

disable_normal_joins
Marco Slot 2021-11-27 11:52:29 +01:00
parent efdce8682c
commit 360dd14d8a
1 changed files with 10 additions and 0 deletions

View File

@ -5398,6 +5398,16 @@ ActiveShardPlacementLists(List *taskList)
/* sort shard placements by their creation time */ /* sort shard placements by their creation time */
activeShardPlacementList = SortList(activeShardPlacementList, activeShardPlacementList = SortList(activeShardPlacementList,
CompareShardPlacements); CompareShardPlacements);
/*
* The executor currently does not know how to handle map task failover,
* so we generate at most 1 placement.
*/
if (task->taskType == MAP_TASK)
{
activeShardPlacementList = list_make1(linitial(activeShardPlacementList));
}
shardPlacementLists = lappend(shardPlacementLists, activeShardPlacementList); shardPlacementLists = lappend(shardPlacementLists, activeShardPlacementList);
} }