[fix](statistics) correct update rows when doing multi-table load (#39548)
rows of only one table is updated correctly, need to merge all table commit infos. Signed-off-by: freemandealer <freeman.zhang1992@gmail.com>
This commit is contained in:
@ -127,7 +127,14 @@ public class PublishVersionDaemon extends MasterDaemon {
|
||||
partitionCommitInfos.addAll(tableCommitInfo.getIdToPartitionCommitInfo().values());
|
||||
|
||||
try {
|
||||
beIdToBaseTabletIds.putAll(getBaseTabletIdsForEachBe(transactionState, tableCommitInfo));
|
||||
Map<Long, Set<Long>> map = getBaseTabletIdsForEachBe(transactionState, tableCommitInfo);
|
||||
map.forEach((beId, newSet) -> {
|
||||
beIdToBaseTabletIds.computeIfPresent(beId, (id, orgSet) -> {
|
||||
orgSet.addAll(newSet);
|
||||
return orgSet;
|
||||
});
|
||||
beIdToBaseTabletIds.putIfAbsent(beId, newSet);
|
||||
});
|
||||
} catch (MetaNotFoundException e) {
|
||||
LOG.warn("exception occur when trying to get rollup tablets info", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user