You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Yun Tang (Jira)" <ji...@apache.org> on 2021/12/27 03:42:00 UTC
[jira] [Created] (FLINK-25446) Avoid sanity check on read bytes on DataInputStream#read(byte[])
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)