Skip to content

Commit 64971b1

Browse files
authored
[hotfix] Set finish before notifying load in LanceArrowWriter setFinished method (apache#1985)
1 parent 8e121b6 commit 64971b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fluss-lake/fluss-lake-lance/src/main/java/org/apache/fluss/lake/lance/tiering/LanceArrowWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class LanceArrowWriter extends ArrowReader {
3838
private final RowType rowType;
3939
private final int batchSize;
4040

41-
private volatile boolean finished;
41+
private volatile boolean finished = false;
4242

4343
private final AtomicLong totalBytesRead = new AtomicLong();
4444
private ArrowWriter arrowWriter = null;
@@ -74,8 +74,8 @@ void write(LogRecord row) {
7474
}
7575

7676
void setFinished() {
77-
loadToken.release();
7877
finished = true;
78+
loadToken.release();
7979
}
8080

8181
@Override

0 commit comments

Comments
 (0)