Skip to content

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

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()).

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