AHeise commented on a change in pull request #13228:
URL: https://github.com/apache/flink/pull/13228#discussion_r476678903



##########
File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/StreamTaskNetworkInput.java
##########
@@ -159,10 +158,12 @@ public InputStatus emitNext(DataOutput<T> output) throws 
Exception {
                        if (bufferOrEvent.isPresent()) {
                                // return to the mailbox after receiving a 
checkpoint barrier to avoid processing of
                                // data after the barrier before checkpoint is 
performed for unaligned checkpoint mode
-                               if (bufferOrEvent.get().isEvent() && 
bufferOrEvent.get().getEvent() instanceof CheckpointBarrier) {
+                               if (bufferOrEvent.get().isBuffer()) {
+                                       processBuffer(bufferOrEvent.get());
+                               } else {
+                                       processEvent(bufferOrEvent.get());

Review comment:
       Nope, it's a refactoring that I should move out. We could also revert 
back. I had an intermediate version where `processEvent` signaled if the loop 
should be broken or not and there the split made more sense.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to