Skip to content

StatObject with Range optimization is breaking, and not as intended? #146

Closed
@akevdmeer

Description

Since #138, Mimir no longer works for us, as our S3 backend (erroneously) responds to StatObject() with a range, with HTTP 416 Requested Range Not Satisfiable.

When GetRange() immediately calls GetObject(), as it did before this was merged, all is well.

Furthermore I have difficulty making sense of the PR. From the title and conversation I understand that the intent is to do a stat instead of an empty read, but the code introduces an unconditional extra StatObject() (that breaks things for us).

How can this extra StatObject() be an optimization, at least in a case like Mimir when the objects requested basically always exist?

Is it possible to revert this PR?

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