Skip to content

Assumptions about order of ReadDir results in tail/tail.go #268

@jmacd

Description

@jmacd

Reporting this bug discovered in an downstream fork of this repository, here:

lightstep/opentelemetry-prometheus-sidecar#69

This can result in the sidecar exiting with a bogus corruption message when in fact nothing is wrong.

The fix is simple, see the associated PR. If it pleases a maintainer of this code, consider looking at other downstream changes in tail/tail.go that are relevant here (see listSegments()).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions