[fix](stats) internal stats table tablet replica num not update as expected (#25563)

Before this PR, scale would not happen, since in the previous implementation relica count of all tablets was considered
This commit is contained in:
AKIRA
2023-10-18 19:42:41 +08:00
committed by GitHub
parent ea97f2d6e5
commit 9e07291e65

View File

@ -101,8 +101,8 @@ public class InternalSchemaInitializer extends Thread {
TableIf colStatsTbl = StatisticsUtil.findTable(InternalCatalog.INTERNAL_CATALOG_NAME,
StatisticConstants.DB_NAME, tblName);
OlapTable olapTable = (OlapTable) colStatsTbl;
Partition partition = olapTable.getPartition(olapTable.getName());
if (partition.getReplicaCount() >= StatisticConstants.STATISTIC_INTERNAL_TABLE_REPLICA_NUM) {
if (olapTable.getTableProperty().getReplicaAllocation().getTotalReplicaNum()
>= StatisticConstants.STATISTIC_INTERNAL_TABLE_REPLICA_NUM) {
return;
}
try {