-
Notifications
You must be signed in to change notification settings - Fork 1.5k
lib/storage:fix Less Method in tagFilter Struct #9127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib/storage:fix Less Method in tagFilter Struct #9127
Conversation
d899117
to
8010151
Compare
Also, there's an empty line at the end of tag_filters_test.go. Please remove it and try testing locally by |
e2548be
to
b6607c2
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #9127 +/- ##
==========================================
- Coverage 60.37% 58.59% -1.78%
==========================================
Files 411 700 +289
Lines 76609 120643 +44034
==========================================
+ Hits 46253 70693 +24440
- Misses 27794 46430 +18636
- Partials 2562 3520 +958 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Thanks for the reminder! I've added a changelog and cleaned up the extra blank lines in tag_filters_test.go. Is there anything else I should take care of? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@sforests , thanks for the fix! |
### Describe Your Changes This pull request addresses a bug in the Less method of the tagFilter struct. The original implementation incorrectly assigned the value of isCompositeB by calling tf.isComposite() instead of other.isComposite(). This caused both isCompositeA and isCompositeB to always have the same value, leading to incorrect comparisons when determining the order of tagFilter instances. ### Checklist The following checks are **mandatory**: - [x] My change adheres to [VictoriaMetrics contributing guidelines](https://docs.victoriametrics.com/victoriametrics/contributing/#pull-request-checklist). --------- Co-authored-by: Zhu Jiekun <jiekun@victoriametrics.com>
### Describe Your Changes This pull request addresses a bug in the Less method of the tagFilter struct. The original implementation incorrectly assigned the value of isCompositeB by calling tf.isComposite() instead of other.isComposite(). This caused both isCompositeA and isCompositeB to always have the same value, leading to incorrect comparisons when determining the order of tagFilter instances. ### Checklist The following checks are **mandatory**: - [x] My change adheres to [VictoriaMetrics contributing guidelines](https://docs.victoriametrics.com/victoriametrics/contributing/#pull-request-checklist). --------- Co-authored-by: Zhu Jiekun <jiekun@victoriametrics.com>
### Describe Your Changes This pull request addresses a bug in the Less method of the tagFilter struct. The original implementation incorrectly assigned the value of isCompositeB by calling tf.isComposite() instead of other.isComposite(). This caused both isCompositeA and isCompositeB to always have the same value, leading to incorrect comparisons when determining the order of tagFilter instances. ### Checklist The following checks are **mandatory**: - [x] My change adheres to [VictoriaMetrics contributing guidelines](https://docs.victoriametrics.com/victoriametrics/contributing/#pull-request-checklist). --------- Co-authored-by: Zhu Jiekun <jiekun@victoriametrics.com>
### Describe Your Changes This pull request addresses a bug in the Less method of the tagFilter struct. The original implementation incorrectly assigned the value of isCompositeB by calling tf.isComposite() instead of other.isComposite(). This caused both isCompositeA and isCompositeB to always have the same value, leading to incorrect comparisons when determining the order of tagFilter instances. ### Checklist The following checks are **mandatory**: - [x] My change adheres to [VictoriaMetrics contributing guidelines](https://docs.victoriametrics.com/victoriametrics/contributing/#pull-request-checklist). --------- Co-authored-by: Zhu Jiekun <jiekun@victoriametrics.com>
### Describe Your Changes This pull request addresses a bug in the Less method of the tagFilter struct. The original implementation incorrectly assigned the value of isCompositeB by calling tf.isComposite() instead of other.isComposite(). This caused both isCompositeA and isCompositeB to always have the same value, leading to incorrect comparisons when determining the order of tagFilter instances. ### Checklist The following checks are **mandatory**: - [x] My change adheres to [VictoriaMetrics contributing guidelines](https://docs.victoriametrics.com/victoriametrics/contributing/#pull-request-checklist). --------- Co-authored-by: Zhu Jiekun <jiekun@victoriametrics.com>
The fix has been included to v1.120.0 release |
Describe Your Changes
This pull request addresses a bug in the Less method of the tagFilter struct. The original implementation incorrectly assigned the value of isCompositeB by calling tf.isComposite() instead of other.isComposite(). This caused both isCompositeA and isCompositeB to always have the same value, leading to incorrect comparisons when determining the order of tagFilter instances.
Checklist
The following checks are mandatory: