Skip to content

linesUtf8 drops a partially buffered line when an empty ByteChunk arrives #353

Description

@Mendrejk

Problem

In LinesImpl, an empty ByteChunk currently clears the accumulated line buffer. Mid-record empty chunks therefore silently discard already-seen bytes.

Example

Chunks "12", empty, "3\n" can lose the "12" prefix.

Expected

Empty chunks should be no-ops for framing state.

Suggested tests

  • Empty chunk between two parts of one line.
  • Empty chunk before a final unterminated record.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions