m3 icon indicating copy to clipboard operation
m3 copied to clipboard

Metrics filter incorrectly handles wildcard combined with range

Open abliqo opened this issue 3 years ago • 0 comments

Filing M3 Issues

There is a bug in metrics filter that is used by in the rules: when wildcard predicate is combined with the range predicate it is evaluated incorrectly.

Reproduced in the unit tests: https://github.com/m3db/m3/pull/4123/commits/d2762b442f3ad409379c079b63c89a58578fde05

Reproduction steps: Create a tag filter "*ending.{bar,foobar}" and test it against two inputs:

some_ending.bar
some_ending.foobar

Expected result: it should match both inputs Actual result: it fails for the second input

abliqo avatar Jun 28 '22 23:06 abliqo