Skip to content

[BUG] Whispers under symlink are not returned for queries with wildcards #572

@interfan7

Description

@interfan7

Describe the bug
(also described in carbonapi issues)
For metrics in Whisper files which are under symlink (in the path):

  • Querying the metric specifically, e.g. x.y4.z.w, is returned as expected, even if its Whisper file path contains a symlink.
  • Querying multiple metrics based on text-search, i.e. x.y*.z.w, returns only the metrics whose backing Whisper files are not under symlink.

Seems like something in the search engine is effected by a path component being a symlink, which in our case is directory y.

Logs
No error messages in both go-carbon and carbonapi while reproducing it.
In go-carbon log I do see INFO messages of metrics which are not under symlink.
In carbonapi log I see INFO messages with the query search text i.e. x.y*.z.w.

Go-carbon Configuration:
Mostly default, I will provide config if a contributor requests. I believe it may not be relevant though given the nature of the issue.

Metric retention and aggregation schemas
See above.

Simplified query (if applicable)
See description 👆🏻

Additional context
go-carbon 0.17.1 and carbonapi 0.16.0~1.

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