-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix @timestamp upgrade issue by adding a version check on skip_list param (3.3) #19671
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
Fix @timestamp upgrade issue by adding a version check on skip_list param (3.3) #19671
Conversation
455a4f5 to
2d33d05
Compare
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.
Thanks @asimmahmood1 for working on the fix quickly!
Also, let us open a new issue separately to track what bwc compatibility test we can add as a follow-up to prevent these bugs!
3.3 builds are failing for now dependent on #19668 - gradle should succeed after it.
server/src/test/java/org/opensearch/index/mapper/DateFieldMapperTests.java
Outdated
Show resolved
Hide resolved
|
❌ Gradle check result for 2d33d05: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
2d33d05 to
ac5ed1e
Compare
…aram (bwc) Fixes opensearch-project#19660 Signed-off-by: Asim Mahmood <[email protected]>
ac5ed1e to
8b6422c
Compare
Signed-off-by: Sandesh Kumar <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 3.3 #19671 +/- ##
============================================
- Coverage 72.99% 72.98% -0.01%
+ Complexity 70482 70477 -5
============================================
Files 5717 5717
Lines 323055 323054 -1
Branches 46794 46791 -3
============================================
- Hits 235798 235784 -14
- Misses 68237 68273 +36
+ Partials 19020 18997 -23 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks @asimmahmood1 for quickly fixing this. @jainankitk Nice call out on keeping the feature (instead of reverting it) with version check. Good to merge? |
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! Let us test it thoroughly and see if automated bwc test can be added
…aram (bwc) (#19671) Fixes #19660 Signed-off-by: Asim Mahmood <[email protected]> Signed-off-by: Sandesh Kumar <[email protected]> Co-authored-by: Sandesh Kumar <[email protected]> (cherry picked from commit 0b6a2c9) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|
Thanks. Yes, still looking to add/update bwc tests. Mark pointed me to https://github.com/opensearch-project/OpenSearch/blob/main/qa/mixed-cluster/src/test/java/org/opensearch/backwards/IndexingIT.java and https://github.com/opensearch-project/OpenSearch/blob/main/qa/rolling-upgrade/src/test/java/org/opensearch/upgrades/IndexingIT.java. These only have a string keyword, checking to see if I can date field in it. |
…heck on skip_list param (#19677) * Fix @timestamp upgrade issue by adding a version check on skip_list param (bwc) (#19671) Fixes #19660 Signed-off-by: Asim Mahmood <[email protected]> Signed-off-by: Sandesh Kumar <[email protected]> Co-authored-by: Sandesh Kumar <[email protected]> (cherry picked from commit 0b6a2c9) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Removed changelog of items part of 3.3.1 Signed-off-by: Sandesh Kumar <[email protected]> --------- Signed-off-by: Asim Mahmood <[email protected]> Signed-off-by: Sandesh Kumar <[email protected]> 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: Sandesh Kumar <[email protected]> Co-authored-by: Peter Zhu <[email protected]>
…heck on skip_list param (opensearch-project#19677) * Fix @timestamp upgrade issue by adding a version check on skip_list param (bwc) (opensearch-project#19671) Fixes opensearch-project#19660 Signed-off-by: Asim Mahmood <[email protected]> Signed-off-by: Sandesh Kumar <[email protected]> Co-authored-by: Sandesh Kumar <[email protected]> (cherry picked from commit 0b6a2c9) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Removed changelog of items part of 3.3.1 Signed-off-by: Sandesh Kumar <[email protected]> --------- Signed-off-by: Asim Mahmood <[email protected]> Signed-off-by: Sandesh Kumar <[email protected]> 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: Sandesh Kumar <[email protected]> Co-authored-by: Peter Zhu <[email protected]>
Description
Date field's skip_list param was introduced in 3.3.0, so any index created since 3.3.0 with @timestamp name will have skip_list set to true. This way older indexes with @timestamp or index sort date field will continue to remain false.
This way new indexes can take advantage of the performance enhancement in date histogram aggregation.
This is proper fix compared to #19661
Testing
Manually tested appending to big5 index created using 3.2.0.
Looking at how to add a bwc integ test. Existing ones do not have date field.
Note: this is pushing to 3.3 version to help expedite patch release. Once merged I'll open one for mainline.
Related Issues
Fixes #19660
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.