Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-25446

Avoid sanity check on read bytes on DataInputStream#read(byte[])

    XMLWordPrintableJSON

Details

    Description

      Current changelog related code would check the number of read bytes whether equal to target bytes:

      checkState(size == input.read(bytes));
      

      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."

      Attachments

        Issue Links

          Activity

            People

              yunta Yun Tang
              yunta Yun Tang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: