Skip to content

FractionalPercent when using with RouteMatch #11874

@belyalov

Description

@belyalov

Title: Log debug/info/whatever message when FractionalPercent.numerator greater than FractionalPercent.denominator
Description: When using FractionalPercent with RouteMatch it is possible to mess up with values on denominator / numerator so the underlying condition

(random_value % denominator) < numerator

Will be always evaluated to true because of numerator exceeds denominator. It becomes hard to debug why configuration does not work (no logs, just shows that clusterN has been selected).

Do you guys think it is make sense to add some kind of logging to simplify configuration debuggability?
If so I can add this.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/httpquestionQuestions that are neither investigations, bugs, nor enhancementsstalestalebot believes this issue/PR has not been touched recently

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions