gavinchou commented on code in PR #33321:
URL: https://github.com/apache/doris/pull/33321#discussion_r1554983492
##########
fe/fe-core/src/main/java/org/apache/doris/alter/MaterializedViewHandler.java:
##########
@@ -942,15 +944,18 @@ public void processBatchDropRollup(List<AlterClause>
dropRollupClauses, Database
long tableId = olapTable.getId();
String tableName = olapTable.getName();
editLog.logBatchDropRollup(new BatchDropInfo(dbId, tableId,
tableName, indexIdSet));
+ deleteIndexList = indexIdSet.stream().collect(Collectors.toList());
LOG.info("finished drop rollup index[{}] in table[{}]",
String.join("", rollupNameSet), olapTable.getName());
} finally {
olapTable.writeUnlock();
}
+
Env.getCurrentInternalCatalog().eraseDroppedIndexBackendReplicas(olapTable.getId(),
deleteIndexList);
Review Comment:
```suggestion
Env.getCurrentInternalCatalog().eraseDroppedIndex(olapTable.getId(),
deleteIndexList);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]