You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "nihileon (Jira)" <ji...@apache.org> on 2021/08/03 08:13:00 UTC

[jira] [Created] (FLINK-23598) DataOutputSerializer.writeBytes updates position twice

nihileon created FLINK-23598:
--------------------------------

             Summary: DataOutputSerializer.writeBytes updates position twice
                 Key: FLINK-23598
                 URL: https://issues.apache.org/jira/browse/FLINK-23598
             Project: Flink
          Issue Type: Bug
          Components: API / Core
    Affects Versions: 1.13.0
            Reporter: nihileon
         Attachments: image-2021-08-03-16-07-17-790.png, image-2021-08-03-16-07-40-338.png, image-2021-08-03-16-08-09-249.png

DataOutputSerializer.writeBytes updates this.position twice, which only need to be update once.

If the initiate position is 0 and I write a string of length 10, the position will be updated to 20.

!image-2021-08-03-16-07-17-790.png|width=762,height=372!!image-2021-08-03-16-07-40-338.png|width=744,height=166!

!image-2021-08-03-16-08-09-249.png|width=698,height=269!

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)