MehulBatra commented on code in PR #1552:
URL: https://github.com/apache/fluss/pull/1552#discussion_r2292158825
##########
fluss-lake/fluss-lake-iceberg/src/main/java/com/alibaba/fluss/lake/iceberg/tiering/IcebergLakeWriter.java:
##########
@@ -98,6 +142,16 @@ public void write(LogRecord record) throws IOException {
public IcebergWriteResult complete() throws IOException {
try {
WriteResult writeResult = recordWriter.complete();
+
+ if (compactionFuture != null && !compactionFuture.isDone()) {
+ try {
+ compactionFuture.get(30, TimeUnit.SECONDS);
+ } catch (Exception e) {
+ throw new RuntimeException(
+ "Failed to wait for compaction result for bucket:
" + tableBucket, e);
+ }
+ }
+
return new IcebergWriteResult(writeResult);
Review Comment:
For the time being I have modified the IcebergWriteResult to include
RewriteDataFilesActionResult, but will work on this first thing in the morning
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]