You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "hudi-bot (via GitHub)" <gi...@apache.org> on 2025/11/30 11:43:55 UTC

[I] Remove validations for clustering metadata [hudi]

hudi-bot opened a new issue, #16864:
URL: https://github.com/apache/hudi/issues/16864

   When clustering plan has log files which delete all records in the partition/base file, the clustering used to fail before because of this validation validateClusteringCommit
   [https://github.com/apache/hudi/blob/master/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/BaseHoodieTableServiceClient.java#L490C5-L490C29] 
   {code:java}
   if (clusteringMetadata.getWriteStatuses().isEmpty()) {
   HoodieClusteringPlan clusteringPlan = ClusteringUtils.getClusteringPlan(
   table.getMetaClient(), ClusteringUtils.getInflightClusteringInstant(clusteringCommitTime, table.getActiveTimeline(), table.getInstantGenerator()).get())
   .map(Pair::getRight).orElseThrow(() -> new HoodieClusteringException(
   "Unable to read clustering plan for instant: " + clusteringCommitTime));
   throw new HoodieClusteringException("Clustering plan produced 0 WriteStatus for " + clusteringCommitTime
   + " #groups: " + clusteringPlan.getInputGroups().size() + " expected at least "
   + clusteringPlan.getInputGroups().stream().mapToInt(HoodieClusteringGroup::getNumOutputFileGroups).sum()
   + " write statuses");
   }{code}
   
   We can remove this validation as it's not required.
   
   ## JIRA info
   
   - Link: https://issues.apache.org/jira/browse/HUDI-9060
   - Type: Bug


-- 
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-unsubscribe@hudi.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Remove validations for clustering metadata [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on issue #16864:
URL: https://github.com/apache/hudi/issues/16864#issuecomment-3630131216

   ### Linked PR(s)
   
   - https://github.com/apache/hudi/pull/12860


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Remove validations for clustering metadata [hudi]

Posted by "yihua (via GitHub)" <gi...@apache.org>.
yihua closed issue #16864: Remove validations for clustering metadata
URL: https://github.com/apache/hudi/issues/16864


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org