Yun Tang created FLINK-25446: -------------------------------- Summary: Avoid sanity check on read bytes on DataInputStream#read(byte[]) Key: FLINK-25446 URL: https://issues.apache.org/jira/browse/FLINK-25446 Project: Flink Issue Type: Bug Components: Runtime / Checkpointing, Runtime / State Backends Affects Versions: 1.14.2 Reporter: Yun Tang Assignee: Yun Tang Fix For: 1.15.0, 1.14.3
Current changelog related code would check the number of read bytes whether equal to target bytes: {code:java} checkState(size == input.read(bytes)); {code} However, this is not correct as the java doc said: {{"An attempt is made to read as many as len bytes, but a smaller number may be read, possibly zero."}} -- This message was sent by Atlassian Jira (v8.20.1#820001)