Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ public RemoteInputChannel toRemoteInputChannel(
metrics.getNumBytesInRemoteCounter(),
metrics.getNumBuffersInRemoteCounter(),
channelStateWriter == null ? ChannelStateWriter.NO_OP : channelStateWriter,
// Unknown channels exist only in BATCH jobs, which have no channel

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was expecting a change to the docs from the PR title. Is there an external consideration that we could add to the docs around this? Or is this just for code hygene?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @davidradl , I received some code review offline, and it mentioned that needsRecovery is always false in UnknownInputChannel is a risk that potentially missing the recovery path.

After analysis, the Unknown channels exist only in BATCH jobs, so this risk does not actually apply.

I’m inclined to add some documentation comments here to clarify this, ensuring that AI or developers can correctly understand the situation quickly, and avoid confusion.

// state, so this channel is never in recovery.
false);
return channel;
}
Expand All @@ -210,6 +212,8 @@ public LocalInputChannel toLocalInputChannel(ResultPartitionID resultPartitionID
metrics.getNumBuffersInLocalCounter(),
channelStateWriter == null ? ChannelStateWriter.NO_OP : channelStateWriter,
networkBuffersPerChannel,
// Unknown channels exist only in BATCH jobs, which have no channel
// state, so this channel is never in recovery.
false);
}

Expand Down