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

feat(query) Support split partition raw queries #1677

Merged

Conversation

amolnayak311
Copy link
Contributor

@amolnayak311 amolnayak311 commented Sep 28, 2023

Pull Request checklist

  • The commit(s) message(s) follows the contribution guidelines ?
  • Tests for the changes have been added (for bug fixes / features) ?
  • Docs have been added / updated (for bug fixes / features) ?

Current behavior :

Whenever a query spans across partitions, there is a gap in results for the range queries where lookbacks/offsets span multiple partitions.

New behavior :

The PR is a draft for the WIP to achieve 0 downtime for queries when there are time-split partitions.

@amolnayak311 amolnayak311 marked this pull request as ready for review December 15, 2023 02:31
Copy link
Contributor

@alextheimer alextheimer left a comment

Choose a reason for hiding this comment

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

Just a few comments/questions. Thanks for handling this @amolnayak311 -- it doesn't look like it was easy to get the timestamps exactly right.

@@ -85,4 +87,5 @@ case class QueryConfig(askTimeout: FiniteDuration,
plannerSelector: Option[String] = None,
recordContainerOverrides: Map[String, Int] = Map.empty,
supportRemoteRawExport: Boolean = false,
maxRemoteRawExportTimeRange: FiniteDuration = 3 days)
maxRemoteRawExportTimeRange: FiniteDuration = 3 days,
enableApproximatelyEqualCheckInStitch: Boolean = true)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be:

queryConfig.getBoolean("routing.enable-approximate-equals-in-stitch")

?

Copy link
Contributor

@alextheimer alextheimer left a comment

Choose a reason for hiding this comment

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

Thanks for addressing all comments @amolnayak311
PR looks good 👍 -- please see the one comment I've left, and feel free to merge if no action is needed.

@amolnayak311 amolnayak311 merged commit 7daca4d into filodb:develop Jan 6, 2024
1 check passed
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.

2 participants