lokeshj1703 commented on code in PR #19717:
URL: https://github.com/apache/hudi/pull/19717#discussion_r3872248927
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metadata/index/secondary/SecondaryIndexer.java:
##########
@@ -73,11 +73,8 @@ public SecondaryIndexer(
@Override
public List<IndexInitializationPlan>
buildInitialization(IndexInitializationContext context) throws IOException {
- Set<String> secondaryIndexPartitionsToInit =
getSecondaryIndexPartitionsToInit(SECONDARY_INDEX,
dataTableWriteConfig.getMetadataConfig(), dataTableMetaClient);
- if (secondaryIndexPartitionsToInit.size() > 1) {
- log.warn("Skipping secondary index initialization as only one secondary
index bootstrap at a time is supported for now. Provided: {}",
secondaryIndexPartitionsToInit);
- return Collections.emptyList();
- }
+ Set<String> secondaryIndexPartitionsToInit =
resolvePartitionsToInit(context,
+ getSecondaryIndexPartitionsToInit(SECONDARY_INDEX,
dataTableWriteConfig.getMetadataConfig(), dataTableMetaClient), "secondary
index");
Review Comment:
nit: We can use SECONDARY_INDEX type itself instead of "secondary index"
--
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]