[jira] [Created] (FLINK-6162) Fix bug in ByteArrayOutputStreamWithPos#setPosition

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-6162) Fix bug in ByteArrayOutputStreamWithPos#setPosition

Shang Yuanchun (Jira)
Wenlong Lyu created FLINK-6162:
----------------------------------

             Summary: Fix bug in ByteArrayOutputStreamWithPos#setPosition
                 Key: FLINK-6162
                 URL: https://issues.apache.org/jira/browse/FLINK-6162
             Project: Flink
          Issue Type: Bug
          Components: Core
            Reporter: Wenlong Lyu
            Assignee: Wenlong Lyu


Currently the precondition check in setPosition will fail when the buffer is full:
{{Preconditions.checkArgument(position < getEndPosition(), "Position out of bounds.");}}

We should allow the expected position to be the end position



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)