Skip to content

Conversation

@ashwanthgoli
Copy link
Contributor

What this PR does / why we need it:

This PR enables racing in the querytee, allowing us to serve the split from the engine that returned a result the fastest, instead of always returning the result from the preferred/v1 engine.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • Title matches the required conventional commits format, see here
    • Note that Promtail is considered to be feature complete, and future development for logs collection will be in Grafana Alloy. As such, feat PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory. Example PR

@ashwanthgoli ashwanthgoli requested a review from a team as a code owner December 8, 2025 10:24
Copy link
Contributor

@DylanGuedes DylanGuedes left a comment

Choose a reason for hiding this comment

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

just to small questions/nitpick suggestions

Comment on lines 6 to 7
ADD COLUMN cell_a_won BOOLEAN NOT NULL DEFAULT FALSE,
ADD COLUMN cell_b_won BOOLEAN NOT NULL DEFAULT FALSE;
Copy link
Contributor

Choose a reason for hiding this comment

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

question: in other parts of the code you used a single bool to infer which cell won, couldn't you take the same approach here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed all of this as we already have exec time as robert mentioned here

Copy link
Member

@rfratto rfratto left a comment

Choose a reason for hiding this comment

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

LGTM, but probably needs real approval from Dylan or Trevor since they know this code better

Copy link
Contributor

@benclive benclive left a comment

Choose a reason for hiding this comment

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

LGTM

@ashwanthgoli ashwanthgoli merged commit 23948c4 into main Dec 8, 2025
65 checks passed
@ashwanthgoli ashwanthgoli deleted the query-tee-racing branch December 8, 2025 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants