Github user NicoK commented on a diff in the pull request: https://github.com/apache/flink/pull/4533#discussion_r153460586 --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/NettyMessage.java --- @@ -584,4 +587,60 @@ static CloseRequest readFrom(@SuppressWarnings("unused") ByteBuf buffer) throws return new CloseRequest(); } } + + static class AddCredit extends NettyMessage { + + private static final byte ID = 6; + + final ResultPartitionID partitionId; + + final int credit; + + final InputChannelID receiverId; + + AddCredit(ResultPartitionID partitionId, int credit, InputChannelID receiverId) { + this.partitionId = partitionId; + this.credit = credit; --- End diff -- similar for the `PartitionRequest` message, but since this is used for the non-credit based `PartitionRequestClientHandler` for now, we need to make an exception and also allow a value of `0` there
---