-
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
[Extensions] Fix timeout error when adding a document to an index with extension running #6275
Conversation
…unning Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #6275 +/- ##
============================================
+ Coverage 70.62% 70.77% +0.15%
- Complexity 58786 58891 +105
============================================
Files 4789 4789
Lines 281788 281789 +1
Branches 40669 40670 +1
============================================
+ Hits 199007 199437 +430
+ Misses 66412 65950 -462
- Partials 16369 16402 +33
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
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.
Approved 'cause it works but suggest adding an LGTM!else
.
if (e.getCause() instanceof TimeoutException) { | ||
logger.info("No response from extension to request."); | ||
} | ||
if (e.getCause() instanceof RuntimeException) { |
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.
curious why this isn't an else if like line 512.
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.
Not sure - I should fix that
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.
Actually I think it's intentional, because no exception handling happens in the first if statement: there's only an additional logging statement. The other if/else ifs actually handle the exception.
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.
Ah, I see. A timeout is a runtime exception so we log and throw.
Signed-off-by: Ryan Bogan <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
…h extension running (#6275) * Fix timeout error when adding a document to an index with extension running Signed-off-by: Ryan Bogan <[email protected]> * Add CHANGELOG entry Signed-off-by: Ryan Bogan <[email protected]> --------- Signed-off-by: Ryan Bogan <[email protected]> (cherry picked from commit 0eee9a9) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…h extension running (#6275) (#6307) * Fix timeout error when adding a document to an index with extension running (cherry picked from commit 0eee9a9) Signed-off-by: Ryan Bogan <[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>
Signed-off-by: Ryan Bogan [email protected]
Description
Fixes a timeout exception that would occur when attempting to add a document to an index while an extension is running.
Issues Resolved
#5999
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.