codope commented on a change in pull request #4693: URL: https://github.com/apache/hudi/pull/4693#discussion_r835773830
########## File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/metadata/SparkHoodieBackedTableMetadataWriter.java ########## @@ -121,6 +121,15 @@ protected void initRegistry() { } } + @Override + protected void scheduleIndex(List<String> partitions) { + ValidationUtils.checkState(metadataMetaClient != null, "Metadata table is not fully initialized yet."); Review comment: It doesn't matter whether user specifies files partition or not as one of the options for the tool. Files partition is always enabled as long as MT is enabled. Files partition initialization happens with the initialization of metadata writer, before any other partition indexing (or even their scheduling) can begin. For initialization of filegroups of other partitions, it happens within a lock. -- 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...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org