Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-6640

[C++] Error when BufferedInputStream Peek more than bytes buffered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 0.15.0
    • C++

    Description

      An example:

      BufferedInputStream:Peek(10), but only 8 buffered remaining (buffer_pos is 2 right now)

      it will increase the buffer size by 2. In the mean time the buffer_pos will be reset to 0, but it should remain 2.

      Resetting buffer_pos will cause problems.

       

      Attachments

        Issue Links

          Activity

            People

              czxrrr Zherui Cao
              czxrrr Zherui Cao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h