nsivabalan commented on code in PR #8758:
URL: https://github.com/apache/hudi/pull/8758#discussion_r1213649019


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataWriter.java:
##########
@@ -41,35 +44,23 @@ public interface HoodieTableMetadataWriter extends 
Serializable, AutoCloseable {
    * @param engineContext
    * @param indexPartitionInfos - information about partitions to build such 
as partition type and base instant time
    */
-  void buildMetadataPartitions(HoodieEngineContext engineContext, 
List<HoodieIndexPartitionInfo> indexPartitionInfos);
-
-  /**
-   * Initialize file groups for the given metadata partitions when indexing is 
requested.
-   *
-   * @param dataMetaClient     - meta client for the data table
-   * @param metadataPartitions - metadata partitions for which file groups 
needs to be initialized
-   * @param instantTime        - instant time of the index action
-   * @throws IOException
-   */
-  void initializeMetadataPartitions(HoodieTableMetaClient dataMetaClient, 
List<MetadataPartitionType> metadataPartitions, String instantTime) throws 
IOException;
+  void buildMetadataPartitions(HoodieEngineContext engineContext, 
List<HoodieIndexPartitionInfo> indexPartitionInfos) throws IOException;
 
   /**
    * Drop the given metadata partitions.
    *
-   * @param metadataPartitions
-   * @throws IOException
+   * @param metadataPartitions List of MDT partitions to drop
+   * @throws IOException on failures
    */
   void dropMetadataPartitions(List<MetadataPartitionType> metadataPartitions) 
throws IOException;
 
   /**
    * Update the metadata table due to a COMMIT operation.
    *
-   * @param commitMetadata       commit metadata of the operation of interest.
-   * @param instantTime          instant time of the commit.
-   * @param isTableServiceAction true if caller is a table service. false 
otherwise. Only regular write operations can trigger metadata table services 
and this argument
-   *                             will assist in this.
+   * @param commitMetadata commit metadata of the operation of interest.
+   * @param instantTime    instant time of the commit.
    */
-  void update(HoodieCommitMetadata commitMetadata, String instantTime, boolean 
isTableServiceAction);
+  void update(HoodieCommitMetadata commitMetadata, HoodieData<WriteStatus> 
writeStatuses, String instantTime);

Review Comment:
   nope. previously we were using this just to trigger compaction and cleaning 
within the update(). but now, we have made the performTableService as a 
separate method and is invoked separately. 
   



-- 
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

Reply via email to