[
https://issues.apache.org/jira/browse/FLINK-25446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yun Tang resolved FLINK-25446.
------------------------------
Resolution: Fixed
Merged
master: c0f46ef324c35b3ed7813c74931ab9cb589896f7
release-1.14: 24016b83eec53ba7124d651201daa580323b80fc
> 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
> Priority: Critical
> Labels: pull-request-available
> 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)