1996fanrui commented on code in PR #27182:
URL: https://github.com/apache/flink/pull/27182#discussion_r2541175001
##########
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/channel/RecoveredChannelStateHandler.java:
##########
@@ -99,7 +100,12 @@ public void recover(
Buffer buffer = bufferWithContext.context;
try {
if (buffer.readableBytes() > 0) {
- for (final RecoveredInputChannel channel :
getMappedChannels(channelInfo)) {
+ List<RecoveredInputChannel> mappedChannels =
getMappedChannels(channelInfo);
+ checkState(
+ mappedChannels.size() == 1,
+ "One buffer is only distributed to one target
InputChannel since "
+ + "one buffer is expected to be processed once
by the same task.");
+ for (final RecoveredInputChannel channel : mappedChannels) {
Review Comment:
The `InputChannelRecoveredStateHandler` has been refactored in a separate
commit:
https://github.com/apache/flink/pull/27182/commits/49074630670ad12467d8a3de0029590e93dd8c0d
--
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]