-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix errors related to filtering based on user-specified consumer grou…
…ps filters (#14406) * Add extra test case * Move consumer group validation to config class * Move validation of correct consumer group configuration to Config class Since it's a configuration concern, that's where it seems to belong, and the behavior would thus be consistent with where other `ConfigurationError`s are raised. * Make sure we don't return metrics for consumer groups that don't exist * Separate partition filtering step * Separate filtering based on `consumer_groups` to its own function * Use consistent logic for all the types of filtering * Separate all filtering to a separate method * Fix early skip when filtering by regexes * Change looping order to simplify and avoid unnecessary work * Simplify filtering functions * Deduplicate filtered partitions and remove unnecessary option checking * Rename exact match filtering function to better reflect what it does * Fix wording on test id Co-authored-by: Ilia Kurenkov <[email protected]> --------- Co-authored-by: Ilia Kurenkov <[email protected]> Co-authored-by: Andrew Zhang <[email protected]>
- Loading branch information
Showing
2 changed files
with
90 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters