WencongLiu commented on code in PR #23954:
URL: https://github.com/apache/flink/pull/23954#discussion_r1433606853
##########
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/tier/disk/DiskIOScheduler.java:
##########
@@ -206,9 +206,9 @@ private int readBuffersFromFile() {
Queue<MemorySegment> buffers;
try {
buffers = allocateBuffers();
- } catch (Exception exception) {
- failScheduledReaders(scheduledReaders, exception);
- LOG.error("Failed to request buffers for data reading.",
exception);
+ } catch (Exception e) {
Review Comment:
The `allocateBuffers()` method will call
`BatchShuffleReadBufferPool#requestBuffers()`, which throws `Exception`in the
method declaration.
Modifying the `BatchShuffleReadBufferPool#requestBuffers()` is a little
unnecessary. Catching the `Exception` is required here.
--
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]