NicoK commented on a change in pull request #6705: [FLINK-10356][network] add sanity checks to SpillingAdaptiveSpanningRecordDeserializer URL: https://github.com/apache/flink/pull/6705#discussion_r230398908
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/api/serialization/SpillingAdaptiveSpanningRecordDeserializer.java ########## @@ -121,7 +134,14 @@ else if (remaining == 0) { } } catch (IndexOutOfBoundsException e) { - throw new IOException(BROKEN_SERIALIZATION_ERROR_MESSAGE, e); + int bytesRead = this.nonSpanningWrapper.position - oldPosition; Review comment: Actually, now, we cannot ever get to the case that line 133 shows - I'll change that to a `checkState` instead. I can de-dup a bit but will have to add two position parameters because it is not always a `nonSpanningWrapper` for which we would know what to insert ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services