Github user vijikarthi commented on a diff in the pull request:
https://github.com/apache/flink/pull/2425#discussion_r84170399
--- Diff:
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/NettyMessage.java
---
@@ -112,9 +129,9 @@ public void write(ChannelHandlerContext ctx, Object
msg, ChannelPromise promise)
// Create the frame length decoder here as it depends on the
encoder
//
- //
+------------------+------------------+--------++----------------+
- // | FRAME LENGTH (4) | MAGIC NUMBER (4) | ID (1) || CUSTOM
MESSAGE |
- //
+------------------+------------------+--------++----------------+
+ //
+------------------+------------------+------------+--------++----------------+
+ // | FRAME LENGTH (4) | MAGIC NUMBER (4) | COOKIE (4) | ID (1)
|| CUSTOM MESSAGE |
+ //
+------------------+------------------+------------+--------++----------------+
static LengthFieldBasedFrameDecoder createFrameLengthDecoder() {
return new
LengthFieldBasedFrameDecoder(Integer.MAX_VALUE, 0, 4, -4, 4);
--- End diff --
We don't strip the cookie and hence there is no change to adjust the decoder
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---