You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by da...@apache.org on 2021/08/22 05:03:35 UTC

[hudi] branch master updated: [MINOR] Fix BatchBootstrapOperator initialization (#3520)

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

danny0405 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 05e6f44  [MINOR] Fix BatchBootstrapOperator initialization (#3520)
05e6f44 is described below

commit 05e6f44d5377804d4c8f727fba27679d1cdd1de3
Author: Danny Chan <yu...@gmail.com>
AuthorDate: Sun Aug 22 13:03:22 2021 +0800

    [MINOR] Fix BatchBootstrapOperator initialization (#3520)
---
 .../apache/hudi/sink/bootstrap/batch/BatchBootstrapOperator.java | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/hudi-flink/src/main/java/org/apache/hudi/sink/bootstrap/batch/BatchBootstrapOperator.java b/hudi-flink/src/main/java/org/apache/hudi/sink/bootstrap/batch/BatchBootstrapOperator.java
index 3d97276..ac4c2b1 100644
--- a/hudi-flink/src/main/java/org/apache/hudi/sink/bootstrap/batch/BatchBootstrapOperator.java
+++ b/hudi-flink/src/main/java/org/apache/hudi/sink/bootstrap/batch/BatchBootstrapOperator.java
@@ -42,11 +42,16 @@ import java.util.Set;
 public class BatchBootstrapOperator<I, O extends HoodieRecord>
     extends BootstrapOperator<I, O> {
 
-  private final Set<String> partitionPathSet;
-  private final boolean haveSuccessfulCommits;
+  private Set<String> partitionPathSet;
+  private boolean haveSuccessfulCommits;
 
   public BatchBootstrapOperator(Configuration conf) {
     super(conf);
+  }
+
+  @Override
+  public void open() throws Exception {
+    super.open();
     this.partitionPathSet = new HashSet<>();
     this.haveSuccessfulCommits = StreamerUtil.haveSuccessfulCommits(hoodieTable.getMetaClient());
   }