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
MOD-5990: Return timeout error from cursor on strict timeout policy #4149
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4149 +/- ##
==========================================
- Coverage 83.37% 83.36% -0.02%
==========================================
Files 191 191
Lines 32592 32590 -2
==========================================
- Hits 27173 27168 -5
- Misses 5419 5422 +3 ☔ View full report in Codecov by Sentry. |
e4755ce
to
562d572
Compare
Co-authored-by: Omer Shadmi <76992134+oshadmi@users.noreply.github.com>
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.
👍🏼
Successfully created backport PR for |
…4149) * return errors from cursor * Update test comment Co-authored-by: Omer Shadmi <76992134+oshadmi@users.noreply.github.com> * fix test name * fix comment --------- Co-authored-by: Omer Shadmi <76992134+oshadmi@users.noreply.github.com>
…4149) * return errors from cursor * Update test comment Co-authored-by: Omer Shadmi <76992134+oshadmi@users.noreply.github.com> * fix test name * fix comment --------- Co-authored-by: Omer Shadmi <76992134+oshadmi@users.noreply.github.com>
Currently, we return the number of aggregated results and the results aggregated until experiencing a timeout on a cursor command, no matter the timeout policy. This PR fixes this behavior to return a timeout error (accompanied with a
0
cursor id, as before) when the timeout policy is strict (i.e.,ON_TIMEOUT FAIL
).This PR also enables to return other errors from a cursor, which is a behavior we do not currently exploit. This situation is rare also for non-cursor commands, yet we want to have unified behaviors for the cursor in this regard.
(Related to #4059)
Mark if applicable