Error out if shard_replication_factor > 1 with repartitioning

As we are removing the task tracker, we cannot switch to it if
shard_replication_factor > 1. In that case, we simply error out.
pull/3850/head
Sait Talha Nisanci 2020-05-19 14:35:12 +03:00
parent 52e6e82ad8
commit 836992562c
1 changed files with 2 additions and 1 deletions

View File

@ -111,7 +111,8 @@ JobExecutorType(DistributedPlan *distributedPlan)
} }
if (HasReplicatedDistributedTable(distributedPlan->relationIdList)) if (HasReplicatedDistributedTable(distributedPlan->relationIdList))
{ {
return MULTI_EXECUTOR_TASK_TRACKER; ereport(ERROR, (errmsg(
"repartitioning with shard_replication_factor > 1 is not supported")));
} }
return MULTI_EXECUTOR_ADAPTIVE; return MULTI_EXECUTOR_ADAPTIVE;
} }