TanYuxin-tyx commented on code in PR #22652: URL: https://github.com/apache/flink/pull/22652#discussion_r1214030893
########## flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/storage/TieredStorageProducerClient.java: ########## @@ -100,26 +137,95 @@ public void close() { */ private void writeAccumulatedBuffers( TieredStorageSubpartitionId subpartitionId, List<Buffer> accumulatedBuffers) { - try { - for (Buffer finishedBuffer : accumulatedBuffers) { - writeAccumulatedBuffer(subpartitionId, finishedBuffer); + Iterator<Buffer> bufferIterator = accumulatedBuffers.iterator(); + + int numWriteBytes = 0; + int numWriteBuffers = 0; + while (bufferIterator.hasNext()) { + Buffer buffer = bufferIterator.next(); Review Comment: Fixed. -- 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-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org