Skip to content

Regression: filelog receiver no longer reads the last line of a file it it doesn't end with a newline character #26691

Closed
@atoulme

Description

@atoulme

Component(s)

receiver/filelog

What happened?

Description

When upgrading from 0.84.0 to 0.85.0, our integration test started to fail because the last log record was not consumed in the file.

Steps to Reproduce

See https://github.com/signalfx/splunk-otel-collector/actions/runs/6182103965/job/16794484352?pr=3631 and
the fix: signalfx/splunk-otel-collector@5e3502b

Expected Result

The filelog receiver should continue to ingest files, including the last line if not terminated by an EOL character.
If this change is voluntary, we need to document this change in the filelog receiver documentation and register this as a breaking change.

Actual Result

The filelog receiver ignores the last line of the file if not ending with an EOL.

Collector version

0.85.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions