-
Notifications
You must be signed in to change notification settings - Fork 2k
Cardinality Aggregation dynamic pruning null pointer exception catch #17775
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
Conversation
Signed-off-by: ajleong623 <[email protected]>
Signed-off-by: ajleong623 <[email protected]>
Signed-off-by: ajleong623 <[email protected]>
…n Signed-off-by: Anthony Leong <[email protected]> Signed-off-by: ajleong623 <[email protected]>
❕ Gradle check result for 6a94385: 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 #17775 +/- ##
============================================
- Coverage 72.51% 72.39% -0.13%
+ Complexity 66142 66062 -80
============================================
Files 5356 5356
Lines 306421 306425 +4
Branches 44393 44395 +2
============================================
- Hits 222192 221824 -368
- Misses 66024 66487 +463
+ Partials 18205 18114 -91 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@jainankitk, @andrross could we merge this in for 3.0? We couldn't reproduce the NPE with real data, so currently we cannot easily cover the added null check. |
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.
While having bug fix without accompanying unit test is not ideal, I don't see any harm in having these checks to avoid any potential NPEs
…#17775) * Update CardinalityAggregator.java Signed-off-by: ajleong623 <[email protected]> * Signed-off-by: Anthony Leong <[email protected]> Signed-off-by: ajleong623 <[email protected]> * Update CardinalityAggregator.java Signed-off-by: ajleong623 <[email protected]> * Checked Cardinality Aggregation dynamic pruning null pointer exception Signed-off-by: Anthony Leong <[email protected]> Signed-off-by: ajleong623 <[email protected]> --------- Signed-off-by: ajleong623 <[email protected]> Signed-off-by: Sriram Ganesh <[email protected]>
…#17775) * Update CardinalityAggregator.java Signed-off-by: ajleong623 <[email protected]> * Signed-off-by: Anthony Leong <[email protected]> Signed-off-by: ajleong623 <[email protected]> * Update CardinalityAggregator.java Signed-off-by: ajleong623 <[email protected]> * Checked Cardinality Aggregation dynamic pruning null pointer exception Signed-off-by: Anthony Leong <[email protected]> Signed-off-by: ajleong623 <[email protected]> --------- Signed-off-by: ajleong623 <[email protected]> Signed-off-by: Harsh Kothari <[email protected]>
…#17775) * Update CardinalityAggregator.java Signed-off-by: ajleong623 <[email protected]> * Signed-off-by: Anthony Leong <[email protected]> Signed-off-by: ajleong623 <[email protected]> * Update CardinalityAggregator.java Signed-off-by: ajleong623 <[email protected]> * Checked Cardinality Aggregation dynamic pruning null pointer exception Signed-off-by: Anthony Leong <[email protected]> Signed-off-by: ajleong623 <[email protected]> --------- Signed-off-by: ajleong623 <[email protected]> Signed-off-by: Harsh Kothari <[email protected]>
Description
There was a possibility of a null pointer exception error when the BooleanScorer passes in a null document. The document is assumed to not be null, and while that might be true for the DefaultBulkScorer, it is not checked in the BooleanScorer.
Related Issues
Resolves #17739
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.