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

[Backport 2.19] [Backport 2.x] Fix auto date histogram rounding assertion bug #17211

Open
wants to merge 1 commit into
base: 2.19
Choose a base branch
from

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport a79c6e8 from #17175.

* Fix auto date histogram rounding assertion bug (#17023)

* Add comments explanations for auto date histo increaseRoundingIfNeeded.

Signed-off-by: Finn Carroll <carrofin@amazon.com>

* Add testFilterRewriteWithTZRoundingRangeAssert() to reproduce auto date histo assertion bug per #16932

Signed-off-by: Finn Carroll <carrofin@amazon.com>

* Fix #16932. Ensure optimized path can only increase preparedRounding of agg.

Signed-off-by: Finn Carroll <carrofin@amazon.com>

* Spotless apply

Signed-off-by: Finn Carroll <carrofin@amazon.com>

* Fast fail filter rewrite opt in data histo aggs for non UTC timezones

Signed-off-by: Finn Carroll <carrofin@amazon.com>

* Remove redundant UTC check from getInterval().

Signed-off-by: Finn Carroll <carrofin@amazon.com>

* Save a call to prepareRounding if roundingIdx is unchanged.

Signed-off-by: Finn Carroll <carrofin@amazon.com>

* Spotless apply

Signed-off-by: Finn Carroll <carrofin@amazon.com>

* Changelog

Signed-off-by: Finn Carroll <carrofin@amazon.com>

* Add ZoneId getter for date histo filter rewrite canOptimize check.

Signed-off-by: Finn Carroll <carrofin@amazon.com>

* Spotless apply

Signed-off-by: Finn Carroll <carrofin@amazon.com>

* Disable ff optimzation for composite agg in canOptimize.

Signed-off-by: Finn Carroll <carrofin@amazon.com>

* Spotless apply

Signed-off-by: Finn Carroll <carrofin@amazon.com>

* Handle utc timezone check

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* Remove redundant timeZone getter.

Signed-off-by: Finn Carroll <carrofin@amazon.com>

* Simplify ff prepared rounding check.

Signed-off-by: Finn Carroll <carrofin@amazon.com>

---------

Signed-off-by: Finn Carroll <carrofin@amazon.com>
Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>
Co-authored-by: bowenlan-amzn <bowenlan23@gmail.com>
(cherry picked from commit de59264)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Remove breaking abstract isUTC() getter from Rounding.java.

Signed-off-by: Finn Carroll <carrofin@amazon.com>

* Remove unused ZoneId getter.

Signed-off-by: Finn Carroll <carrofin@amazon.com>

---------

Signed-off-by: Finn Carroll <carrofin@amazon.com>
Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: bowenlan-amzn <bowenlan23@gmail.com>
(cherry picked from commit a79c6e8)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

❕ Gradle check result for 6db810b: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link

codecov bot commented Jan 30, 2025

Codecov Report

Attention: Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (2.19@56b5726). Learn more about missing BASE report.

Files with missing lines Patch % Lines
.../src/main/java/org/opensearch/common/Rounding.java 75.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             2.19   #17211   +/-   ##
=======================================
  Coverage        ?   71.95%           
  Complexity      ?    65953           
=======================================
  Files           ?     5341           
  Lines           ?   307137           
  Branches        ?    44826           
=======================================
  Hits            ?   220992           
  Misses          ?    67715           
  Partials        ?    18430           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

0 participants