This is an automated email from the ASF dual-hosted git repository.

wombatukun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/master by this push:
     new c009ebf3651 [HUDI-9078] Deprecate POJO commit metadata class and its 
subclasses (#13204)
c009ebf3651 is described below

commit c009ebf3651aa54d97d11a253bd0c229555ef76c
Author: Vova Kolmakov <[email protected]>
AuthorDate: Wed Apr 23 08:44:53 2025 +0700

    [HUDI-9078] Deprecate POJO commit metadata class and its subclasses (#13204)
---
 .../org/apache/hudi/common/model/HoodieCommitMetadata.java  | 13 ++++++-------
 .../hudi/common/model/HoodieReplaceCommitMetadata.java      | 13 ++++++-------
 2 files changed, 12 insertions(+), 14 deletions(-)

diff --git 
a/hudi-common/src/main/java/org/apache/hudi/common/model/HoodieCommitMetadata.java
 
b/hudi-common/src/main/java/org/apache/hudi/common/model/HoodieCommitMetadata.java
index 97eb50808f0..11fcce54364 100644
--- 
a/hudi-common/src/main/java/org/apache/hudi/common/model/HoodieCommitMetadata.java
+++ 
b/hudi-common/src/main/java/org/apache/hudi/common/model/HoodieCommitMetadata.java
@@ -45,15 +45,14 @@ import java.util.stream.Collectors;
 import static 
org.apache.hudi.common.table.timeline.TimelineMetadataUtils.deserializeAvroMetadata;
 
 /**
- * All the metadata that gets stored along with a commit.
- * ******** IMPORTANT ********
- * For any newly added/removed data fields, make sure we have the same 
definition in
- * src/main/avro/HoodieCommitMetadata.avsc file!!!!!
+ * Represents commit metadata.
  *
- * For any newly added subclass, make sure we add corresponding handler in
- * 
org.apache.hudi.common.table.timeline.versioning.v2.CommitMetadataSerDeV2#deserialize
 method.
- * ***************************
+ * @deprecated As of Hudi version 1.1.0
+ * Please use the standard Avro-generated model
+ * {@link org.apache.hudi.avro.model.HoodieCommitMetadata} instead.
+ * This class may be removed in a future release.
  */
+@Deprecated
 @JsonIgnoreProperties(ignoreUnknown = true)
 public class HoodieCommitMetadata implements Serializable {
 
diff --git 
a/hudi-common/src/main/java/org/apache/hudi/common/model/HoodieReplaceCommitMetadata.java
 
b/hudi-common/src/main/java/org/apache/hudi/common/model/HoodieReplaceCommitMetadata.java
index cd56bba6859..443e0a84380 100644
--- 
a/hudi-common/src/main/java/org/apache/hudi/common/model/HoodieReplaceCommitMetadata.java
+++ 
b/hudi-common/src/main/java/org/apache/hudi/common/model/HoodieReplaceCommitMetadata.java
@@ -30,15 +30,14 @@ import java.util.List;
 import java.util.Map;
 
 /**
- * All the metadata that gets stored along with a commit.
- * ******** IMPORTANT ********
- * For any newly added/removed data fields, make sure we have the same 
definition in
- * src/main/avro/HoodieReplaceCommitMetadata.avsc file!!!!!
+ * Represents replace commit metadata.
  *
- * For any newly added subclass, make sure we add corresponding handler in
- * 
org.apache.hudi.common.table.timeline.versioning.v2.CommitMetadataSerDeV2#deserialize
 method.
- * ***************************
+ * @deprecated As of Hudi version 1.1.0
+ * Please use the standard Avro-generated model
+ * {@link org.apache.hudi.avro.model.HoodieReplaceCommitMetadata} instead.
+ * This class may be removed in a future release.
  */
+@Deprecated // we should only rely on their avro counterpart completely.
 @JsonIgnoreProperties(ignoreUnknown = true)
 public class HoodieReplaceCommitMetadata extends HoodieCommitMetadata {
   private static final Logger LOG = 
LoggerFactory.getLogger(HoodieReplaceCommitMetadata.class);

Reply via email to