GitHub user NicoK opened a pull request:
FLINK-5066 Prevent LocalInputChannel#getNextBuffer from de-serialising all events when looking for EndOfPartitionEvent only
LocalInputChannel#getNextBuffer de-serialises all incoming events on the lookout for an EndOfPartitionEvent.
Instead, add EventSerializer.isEvent so that LocalInputChannel can peak into event buffers without de-serialising the whole event, we could save some resources. This is a generic isEvent implementation for any event that fromSerializedEvent currently supports. Alternatively, a specialised method could be implemented looking for EndOfPartitionEvent only, if desired.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/NicoK/flink
Alternatively you can review and apply these changes as the patch at:
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2806
Author: Nico Kruber <email@example.com>
FLINK-5066 add EventSerializer.isEvent so that LocalInputChannel can peak into event buffers