[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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user