You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "aiborodin (via GitHub)" <gi...@apache.org> on 2026/01/15 08:06:28 UTC
[PR] Backport: Dynamic Sink: Refactor write result aggregation [iceberg]
aiborodin opened a new pull request, #15054:
URL: https://github.com/apache/iceberg/pull/15054
Backport #14810 to Flink 1.20 and 2.1.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Flink: Backport refactor WriteResult aggregation in DynamicIcebergSink [iceberg]
Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on PR #15054:
URL: https://github.com/apache/iceberg/pull/15054#issuecomment-3771565246
Merged to main.
Thanks @aiborodin for the backport!
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Flink: Backport refactor WriteResult aggregation in DynamicIcebergSink [iceberg]
Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on code in PR #15054:
URL: https://github.com/apache/iceberg/pull/15054#discussion_r2707218831
##########
flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/sink/dynamic/DynamicWriteResultAggregator.java:
##########
@@ -60,14 +61,13 @@ class DynamicWriteResultAggregator
CommittableMessage<DynamicWriteResult>, CommittableMessage<DynamicCommittable>> {
private static final Logger LOG = LoggerFactory.getLogger(DynamicWriteResultAggregator.class);
- private static final byte[] EMPTY_MANIFEST_DATA = new byte[0];
private final CatalogLoader catalogLoader;
private final int cacheMaximumSize;
private long lastCheckpointId = CheckpointIDCounter.INITIAL_CHECKPOINT_ID - 1;
- private transient Map<WriteTarget, Collection<DynamicWriteResult>> results;
Review Comment:
This one is Flink 2.1 specific
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Flink: Backport refactor WriteResult aggregation in DynamicIcebergSink [iceberg]
Posted by "aiborodin (via GitHub)" <gi...@apache.org>.
aiborodin commented on PR #15054:
URL: https://github.com/apache/iceberg/pull/15054#issuecomment-3770846648
Thank you for taking a look @pvary!
The backport applied cleanly. I only had to fix the `TestDynamicCommitter::testCommitDeltaTxnWithAppendFiles()`, which is only available in the Flink 2.1 module.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Flink: Backport refactor WriteResult aggregation in DynamicIcebergSink [iceberg]
Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on PR #15054:
URL: https://github.com/apache/iceberg/pull/15054#issuecomment-3768796916
Thanks @aiborodin!
Is this a clean backport, or you had to do some manual changes?
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Flink: Backport refactor WriteResult aggregation in DynamicIcebergSink [iceberg]
Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary merged PR #15054:
URL: https://github.com/apache/iceberg/pull/15054
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Flink: Backport refactor WriteResult aggregation in DynamicIcebergSink [iceberg]
Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on code in PR #15054:
URL: https://github.com/apache/iceberg/pull/15054#discussion_r2707214406
##########
flink/v2.1/flink/src/test/java/org/apache/iceberg/flink/sink/dynamic/TestDynamicCommitter.java:
##########
Review Comment:
It's because the backport of #14559 is not done
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Flink: Backport refactor WriteResult aggregation in DynamicIcebergSink [iceberg]
Posted by "aiborodin (via GitHub)" <gi...@apache.org>.
aiborodin commented on code in PR #15054:
URL: https://github.com/apache/iceberg/pull/15054#discussion_r2706618832
##########
flink/v2.1/flink/src/test/java/org/apache/iceberg/flink/sink/dynamic/TestDynamicCommitter.java:
##########
Review Comment:
I updated this test to use `TableKey` and `WRITE_RESULT_BY_SPEC`, similar to other tests.
This test is only available in the Flik 2.1 module; it's not backported to other versions.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Flink: Backport refactor WriteResult aggregation in DynamicIcebergSink [iceberg]
Posted by "aiborodin (via GitHub)" <gi...@apache.org>.
aiborodin commented on code in PR #15054:
URL: https://github.com/apache/iceberg/pull/15054#discussion_r2706632134
##########
flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/sink/dynamic/DynamicWriteResultAggregator.java:
##########
@@ -60,14 +61,13 @@ class DynamicWriteResultAggregator
CommittableMessage<DynamicWriteResult>, CommittableMessage<DynamicCommittable>> {
private static final Logger LOG = LoggerFactory.getLogger(DynamicWriteResultAggregator.class);
- private static final byte[] EMPTY_MANIFEST_DATA = new byte[0];
private final CatalogLoader catalogLoader;
private final int cacheMaximumSize;
private long lastCheckpointId = CheckpointIDCounter.INITIAL_CHECKPOINT_ID - 1;
- private transient Map<WriteTarget, Collection<DynamicWriteResult>> results;
Review Comment:
I think I also manually updated this to remove the conflict with the `private long lastCheckpointId`, which is only available in Flink 2.1.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Flink: Backport refactor WriteResult aggregation in DynamicIcebergSink [iceberg]
Posted by "aiborodin (via GitHub)" <gi...@apache.org>.
aiborodin commented on PR #15054:
URL: https://github.com/apache/iceberg/pull/15054#issuecomment-3771568181
Thank you for merging @pvary!
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org