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

stevenwu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/main by this push:
     new eab958b620 Flink 1.18: Fix continuous enumerator lost enumeration 
history state when restore from checkpoint. (#9762)
eab958b620 is described below

commit eab958b620a0d760c2834788f3780ddb94fcd7c2
Author: Reo <[email protected]>
AuthorDate: Wed Feb 21 12:35:07 2024 +0800

    Flink 1.18: Fix continuous enumerator lost enumeration history state when 
restore from checkpoint. (#9762)
---
 .../iceberg/flink/source/enumerator/ContinuousIcebergEnumerator.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/flink/v1.18/flink/src/main/java/org/apache/iceberg/flink/source/enumerator/ContinuousIcebergEnumerator.java
 
b/flink/v1.18/flink/src/main/java/org/apache/iceberg/flink/source/enumerator/ContinuousIcebergEnumerator.java
index ff68103b2b..c7021b9c68 100644
--- 
a/flink/v1.18/flink/src/main/java/org/apache/iceberg/flink/source/enumerator/ContinuousIcebergEnumerator.java
+++ 
b/flink/v1.18/flink/src/main/java/org/apache/iceberg/flink/source/enumerator/ContinuousIcebergEnumerator.java
@@ -83,6 +83,7 @@ public class ContinuousIcebergEnumerator extends 
AbstractIcebergEnumerator {
 
     if (enumState != null) {
       this.enumeratorPosition.set(enumState.lastEnumeratedPosition());
+      
this.enumerationHistory.restore(enumState.enumerationSplitCountHistory());
     }
   }
 

Reply via email to