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

Fix bug in ByteArrayOutputStreamWithPos#setPosition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.3.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: