Github user StephanEwen commented on the issue:
https://github.com/apache/flink/pull/5205
One think we may want to do is to change the return type of `pageSize` to
`long` (even if it can be at most MAX_INT). That should prevent most of these
bugs from the start.---
