Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-62987

Check for EOF when reading byte-range from a file

    XMLWordPrintable

Details

    • Untriaged
    • 0
    • Unknown
    • Analytics Sprint 47

    Description

      Currently, when reading a range of bytes from a file, we read a chunk of size buffer.remaining(), and our check condition is while (buffer.remaining() > 0). This can lead to looping infinitely if the bytes left in the a file are less than the amount we are reading, we should probably check for hitting an EOF and properly fail as this would be an unexpected case.

      Attachments

        Issue Links

          Activity

            People

              Hussain.Towaileb Hussain Towaileb
              Hussain.Towaileb Hussain Towaileb
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty