lrsb commented on code in PR #16015:
URL: https://github.com/apache/iceberg/pull/16015#discussion_r3169152670
##########
flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/sink/dynamic/DynamicWriter.java:
##########
@@ -172,34 +182,65 @@ public String toString() {
@Override
public Collection<DynamicWriteResult> prepareCommit() throws IOException {
- List<DynamicWriteResult> result = Lists.newArrayList();
- for (Map.Entry<WriteTarget, TaskWriter<RowData>> entry :
writers.entrySet()) {
- long startNano = System.nanoTime();
- WriteResult writeResult = entry.getValue().complete();
- WriteTarget writeTarget = entry.getKey();
- metrics.updateFlushResult(writeTarget.tableName(), writeResult);
- metrics.flushDuration(
- writeTarget.tableName(),
TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNano));
- LOG.debug(
- "Iceberg writer for table {} subtask {} attempt {} flushed {} data
files and {} delete files",
- writeTarget.tableName(),
- subTaskId,
- attemptId,
- writeResult.dataFiles().length,
- writeResult.deleteFiles().length);
+ List<CompletableFuture<FlushOutcome>> futures =
Review Comment:
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]