Skip to content

Distributor queries are weird when you have low numbers of ingesters #604

@bboreham

Description

@bboreham

While testing, I had zero ingesters owning tokens. In this situation, Distributor.Query will:

  • if your query has a metric, error with "empty circle". This is a confusing message because we never talk about "circle", only "ring".
  • if your query has no metric, continue with an empty set to queryIngesters() which will compute a negative number as the minimum required for success, hence return success with no data.

At least, the behaviour should be consistent. I presume minSuccess should never be negative but haven't researched what it should be.

At a higher level, I don't think an absence of ingesters should cause queries to fail. We can tell, without asking, that the empty set of ingesters holds an empty set of chunks, so the query should return whatever is in the persistent store.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staletype/choreSomething that needs to be done; not a bug or a feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions