rule router default behavior is not behaving as expected
Bug #963801 reported by
Pascal Hahn
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Graphite |
Fix Released
|
High
|
Unassigned |
Bug Description
When using the rule based router, there is a requirement for a default rule to be set up. My expectation was that the destination of the default rule is only being used if there is no other rule that has a matching pattern and a whitelisted destination.
The behavior is that the default rules' destination receives every datapoint, basically it's behaving like a standard rule with the .+ or similar pattern.
My proposal is to have change the behavior of the rule router to only use the default rule if there were no destinations found in all the other rules set up.
Patch attached.
Changed in graphite: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hm.. I'll have to look at the source history to see how this bug was introduced. Your expectation is correct - the first rule that matches should cause processing to stop.