Routine Load写入的表是单副本,如果我增加当前写入分区的副本数,考虑到最小写入成功副本数,扩副本过程中Routine Load任务会失败吗?

Viewed 19

最小写入成功副本数
表属性:min_load_replica_num = -1
FE配置:min_load_replica_num = -1
Routine Load写入的表是单副本,如果我增加当前写入分区的副本数,考虑到最小写入成功副本数,在扩副本的过程中,Routine Load会失败吗?

ALTER TABLE ad_monitor.huan_ad_monitor_impression_log modify partition(p20241014) set ("replication_num" = "2");

1 Answers

可能会失败,如果是2.1 版本,可以先把副本成功数改成 alter table XXX set ("min_load_replica_num"= "1")。
具体步骤

  1. 调表的 min_load_replica_num = 1
  2. 修改副本数
  3. 等待所有副本数都补上,集群彻底health 之后, show proc "/cluster_health/tablet_health" 是否 health tablet num 等于 total replica num
  4. 可以把表的 min_load_replica_num 恢复回默认值-1,表示采用多数派