dataroaring commented on code in PR #39994: URL: https://github.com/apache/doris/pull/39994#discussion_r1759672186
########## fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java: ########## @@ -962,10 +963,19 @@ private static void deleteFromMeta(ListMultimap<Long, Long> tabletDeleteFromMeta objectPool, olapTable.rowStorePageSize(), olapTable.variantEnableFlattenNested()); - createReplicaTask.setIsRecoverTask(true); createReplicaTask.setInvertedIndexFileStorageFormat(olapTable .getInvertedIndexFileStorageFormat()); + if (indexId == olapTable.getBaseIndexId() || olapTable.isShadowIndex(indexId)) { + List<Integer> clusterKeyIndexes = OlapTable.getClusterKeyIndexes( + indexMeta.getSchema()); + if (!CollectionUtils.isEmpty(clusterKeyIndexes)) { + createReplicaTask.setClusterKeyIndexes(clusterKeyIndexes); + LOG.info("table: {}, partition: {}, index: {}, tablet: {}, " + + "cluster key indexes: {}", tableId, partitionId, indexId, + tabletId, clusterKeyIndexes); + } + } Review Comment: May be we should pass olaptable as arg to createReplicaTask and handle clusterkeyindex in createReplicaTask internally. -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org