WencongLiu commented on code in PR #22316:
URL: https://github.com/apache/flink/pull/22316#discussion_r1157019386


##########
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/api/serialization/EventSerializer.java:
##########
@@ -139,6 +142,13 @@ public static ByteBuffer toSerializedEvent(AbstractEvent 
event) throws IOExcepti
             buf.putInt(selector.getOutputSubtaskIndex());
             buf.flip();
             return buf;
+        } else if (eventClass == EndOfSegmentEvent.class) {
+            EndOfSegmentEvent endOfSegmentEvent = (EndOfSegmentEvent) event;
+            ByteBuffer buf = ByteBuffer.allocate(8);

Review Comment:
   Done. 
   The serializing step has been replaced by ` return ByteBuffer.wrap(new 
byte[] {0, 0, 0, END_OF_SEGMENT});`



-- 
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]

Reply via email to