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

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


The following commit(s) were added to refs/heads/main by this push:
     new 64971b173 [hotfix] Set finish before notifying load in 
LanceArrowWriter setFinished method (#1985)
64971b173 is described below

commit 64971b1738af0fb697ac0d269d1585cc1f936905
Author: xx789 <[email protected]>
AuthorDate: Tue Nov 18 14:48:45 2025 +0800

    [hotfix] Set finish before notifying load in LanceArrowWriter setFinished 
method (#1985)
---
 .../java/org/apache/fluss/lake/lance/tiering/LanceArrowWriter.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/fluss-lake/fluss-lake-lance/src/main/java/org/apache/fluss/lake/lance/tiering/LanceArrowWriter.java
 
b/fluss-lake/fluss-lake-lance/src/main/java/org/apache/fluss/lake/lance/tiering/LanceArrowWriter.java
index e164f82ae..2a4b1599e 100644
--- 
a/fluss-lake/fluss-lake-lance/src/main/java/org/apache/fluss/lake/lance/tiering/LanceArrowWriter.java
+++ 
b/fluss-lake/fluss-lake-lance/src/main/java/org/apache/fluss/lake/lance/tiering/LanceArrowWriter.java
@@ -38,7 +38,7 @@ public class LanceArrowWriter extends ArrowReader {
     private final RowType rowType;
     private final int batchSize;
 
-    private volatile boolean finished;
+    private volatile boolean finished = false;
 
     private final AtomicLong totalBytesRead = new AtomicLong();
     private ArrowWriter arrowWriter = null;
@@ -74,8 +74,8 @@ public class LanceArrowWriter extends ArrowReader {
     }
 
     void setFinished() {
-        loadToken.release();
         finished = true;
+        loadToken.release();
     }
 
     @Override

Reply via email to