-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
BUG: Remove TerminateAfter from Elasticsearch/Opensearch query resulting in incomplete span count/list #4336
BUG: Remove TerminateAfter from Elasticsearch/Opensearch query resulting in incomplete span count/list #4336
Conversation
f8b7dff
to
3a5e63b
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #4336 +/- ##
==========================================
+ Coverage 97.07% 97.08% +0.01%
==========================================
Files 300 300
Lines 17728 17727 -1
==========================================
+ Hits 17210 17211 +1
+ Misses 416 415 -1
+ Partials 102 101 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
It seems quite reasonable to me to remove the terminate after. IIUC, its primary use case is to protect shards from using a large amount of memory while also improving query times.
However, I feel query correctness should take precedence, especially if shard capacity can be configured.
I've just added a suggestion relating to testing.
e7ddc47
to
c6a8069
Compare
Signed-off-by: Jakob Hahn <[email protected]>
Signed-off-by: Jakob Hahn <[email protected]>
c6a8069
to
bfaf804
Compare
@albertteoh @yurishkuro can we get this merged or is there anything left open? |
For posterity, However, based on this SO answer and the ES docs, I don't see how Maintainers: This bug fix is technically a breaking change, so I think we should report it as such in release notes. @yurishkuro are you okay for this to be merged? I noticed you had some comments/questions in the linked issue. |
This SO explanations also confirms that TerminateAfter is the wrong thing to do. |
Which problem is this PR solving?
Closes #4330
Short description of the changes