-
Notifications
You must be signed in to change notification settings - Fork 40
[RFS] Add additional logging when bulk requests fail #1484
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
[RFS] Add additional logging when bulk requests fail #1484
Conversation
Signed-off-by: Tanner Lewis <[email protected]>
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.
Lets add test cases for this
RFS/src/main/java/org/opensearch/migrations/bulkload/common/OpenSearchClient.java
Outdated
Show resolved
Hide resolved
RFS/src/main/java/org/opensearch/migrations/bulkload/common/OpenSearchClient.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Tanner Lewis <[email protected]>
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.
Can we reuse CloseableLogSetup
for this test case?
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.
Oof this is exactly what I was looking for and didn't see, have adjusted to use now and removed my created class
Signed-off-by: Tanner Lewis <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1484 +/- ##
============================
============================
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Our current pattern for handling failures with bulk requests doesn't print information regarding what caused the failure (for the default log level) until all retries are completed, which can cause users and our tests around a 10 minute delay to identify the cause. This change provides the bulk request response error message on failures to give quicker detection here
Previously:
With change:
Issues Resolved
N/A
Testing
Local testing
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.