Skip to content
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

Ignore requests send from pinot response comparator #5788

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

bowenxia
Copy link
Member

What changed?
Ignored the requests sent from Pinot Response Comparator

Why?
If we don't ignore, we will have duplicated data.

How did you test it?

Potential risks

Release notes

Documentation Changes

@@ -329,11 +329,16 @@ type userParameters struct {

// For Pinot Migration uses. It will be a temporary usage
// logUserQueryParameters will log user queries' parameters so that a comparator workflow can consume
func (v *pinotVisibilityTripleManager) logUserQueryParameters(userParam userParameters, domain string) {
func (v *pinotVisibilityTripleManager) logUserQueryParameters(userParam userParameters, domain string, override bool) {
// Don't log if it is not enabled
if !v.logCustomerQueryParameter(domain) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can combine this with override check if !v.logCustomerQueryParameter(domain) || override {}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. I was thinking to make it more readable

Copy link
Member

@neil-xie neil-xie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one nit comment, otherwise lgtm

Copy link

codecov bot commented Mar 14, 2024

Codecov Report

Merging #5788 (bdd5035) into master (de9973a) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Additional details and impacted files
Files Coverage Δ
common/persistence/pinotVisibilityTripleManager.go 0.87% <0.00%> (-0.03%) ⬇️

... and 5 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de9973a...bdd5035. Read the comment docs.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 018e3ef5-a875-4e94-a872-25a78e48b097

Details

  • 0 of 25 (0.0%) changed or added relevant lines in 1 file are covered.
  • 39 unchanged lines in 6 files lost coverage.
  • Overall coverage increased (+0.03%) to 64.862%

Changes Missing Coverage Covered Lines Changed/Added Lines %
common/persistence/pinotVisibilityTripleManager.go 0 25 0.0%
Files with Coverage Reduction New Missed Lines %
service/history/task/transfer_standby_task_executor.go 2 86.6%
common/task/weighted_round_robin_task_scheduler.go 2 88.56%
service/matching/taskListManager.go 2 79.7%
common/persistence/statsComputer.go 6 94.29%
service/history/execution/mutable_state_task_refresher.go 7 57.59%
service/history/task/task_util.go 20 70.57%
Totals Coverage Status
Change from base Build 018e3e79-8a4a-40ed-9042-e7afc27bb81a: 0.03%
Covered Lines: 94551
Relevant Lines: 145772

💛 - Coveralls

@bowenxia bowenxia merged commit 6c1ca00 into master Mar 14, 2024
21 checks passed
@bowenxia bowenxia deleted the xbowen_ignore_comparator_log branch March 14, 2024 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants