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

Fix bug in ByteArrayOutputStreamWithPos#setPosition

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.3.0
    • Component/s: Core
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                wenlong.lwl Wenlong Lyu
                Reporter:
                wenlong.lwl Wenlong Lyu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: