Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-10170

TextBasedReader may not respect the source end offset

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Won't Fix
    • None
    • Missing
    • beam-model
    • None

    Description

      TextBasedReader is backed by a TextSource, which may have a start and end offset. If the end offset does not correspond to a delimiter, the TextBasedReader will not respect the end offset and will instead read past the end offset to the next instance of a delimiter. See TextBasedReader#findDelimiterBounds which finds the end of the next record to read: this method will "consume the channel till either EOF or the delimiter bounds are found." I believe this is a bug and that this method should also check for the end offset, not just EOF or a delimiter.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jessicawise Jessica Wise
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: