This is an automated email from the ASF dual-hosted git repository. kxiao pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new e060ffab96 [Fix](cooldown) Fix incorrect judgement of `isDropTableOrPartition` (#21084) e060ffab96 is described below commit e060ffab9601fe709f0b32001a206df5253b3577 Author: plat1ko <platonekos...@gmail.com> AuthorDate: Wed Jun 21 23:00:58 2023 +0800 [Fix](cooldown) Fix incorrect judgement of `isDropTableOrPartition` (#21084) --- fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java b/fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java index 726be73ffb..abccbf4e7b 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java +++ b/fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java @@ -853,13 +853,12 @@ public class ReportHandler extends Daemon { TTablet backendTablet = backendTablets.get(tabletId); TTabletInfo backendTabletInfo = backendTablet.getTabletInfos().get(0); boolean needDelete = false; - TabletMeta tabletMeta = null; + TabletMeta tabletMeta = invertedIndex.getTabletMeta(tabletId); LOG.debug("process tablet [{}], backend[{}]", tabletId, backendId); if (!tabletFoundInMeta.contains(tabletId)) { if (isBackendReplicaHealthy(backendTabletInfo)) { // if this tablet meta is still in invertedIndex. try to add it. // if add failed. delete this tablet from backend. - tabletMeta = invertedIndex.getTabletMeta(tabletId); if (tabletMeta != null && addReplica(tabletId, tabletMeta, backendTabletInfo, backendId)) { // update counter ++addToMetaCounter; @@ -876,6 +875,7 @@ public class ReportHandler extends Daemon { if (needDelete) { // drop replica long replicaId = backendTabletInfo.getReplicaId(); + // If no such tablet meta, this indicates that the tablet belongs to a dropped table or partition boolean isDropTableOrPartition = tabletMeta == null; DropReplicaTask task = new DropReplicaTask(backendId, tabletId, replicaId, backendTabletInfo.getSchemaHash(), isDropTableOrPartition); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org