-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Search dv only IP masks #16628
Search dv only IP masks #16628
Conversation
❌ Gradle check result for bf572a8: 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? |
server/src/main/java/org/opensearch/index/mapper/IpFieldMapper.java
Outdated
Show resolved
Hide resolved
@mkhludnev Could you please add entry to CHANGELOG.md for this change? thank you |
Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com>
Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com>
❌ Gradle check result for f7eecfc: 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? |
Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com>
❌ Gradle check result for a859408: 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? |
Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com>
❕ Gradle check result for fa14302: 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16628 +/- ##
============================================
+ Coverage 72.03% 72.11% +0.08%
- Complexity 65169 65232 +63
============================================
Files 5318 5318
Lines 303890 303895 +5
Branches 43968 43972 +4
============================================
+ Hits 218906 219155 +249
+ Misses 67051 66773 -278
- Partials 17933 17967 +34 ☔ View full report in Codecov by Sentry. |
server/src/main/java/org/opensearch/index/mapper/IpFieldMapper.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/mapper/IpFieldMapper.java
Outdated
Show resolved
Hide resolved
Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com>
Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com>
@msfroh LGTY? thanks! |
* search dv only ip masks Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com> * search dv only ip masks: changes Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * drop fancy closures Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com> * drop fancy closures. one more Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com> * fix unit tests; add some more dvOnly Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com> * drop skipping dvOnly in 2.x Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com> * drop redundant brackets Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com> * extract conditions Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com> * asserts Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com> * spotless apply Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com> * bring back skip before Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com> * combine asserts Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com> * inline, copy-paste Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com> --------- Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com> Signed-off-by: Mikhail Khludnev <mkhl@apache.org> Co-authored-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com> (cherry picked from commit d4d70d8) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* search dv only ip masks * search dv only ip masks: changes * drop fancy closures * drop fancy closures. one more * fix unit tests; add some more dvOnly * drop skipping dvOnly in 2.x * drop redundant brackets * extract conditions * asserts * spotless apply * bring back skip before * combine asserts * inline, copy-paste --------- (cherry picked from commit d4d70d8) Signed-off-by: mikhail-khludnev <mikhail_khludnev@rntgroup.com> Signed-off-by: Mikhail Khludnev <mkhl@apache.org> 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: mikhail-khludnev <mikhail_khludnev@rntgroup.com>
Description
it fixes an edge case when docvalues-only (index:false) IP field is queried via IP mask (1.2.3.4/22 syntax). Now such query is ignored, this change makes it work.
Related Issues
relate #11508
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.