-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
GH-41988: [Go] Add FormatRecoveredError to consistently handle recovery with wrapped errors #41989
Conversation
|
Part of #210. This updates memory-limit error handling because, prior to this fix, there were two fallbacks. (1) the use of os.Stderr to print the message that we had lost (2) a test for the expected number of records to match The first is now removed (i.e. no printing to os.Stderr). The second is now an internal error. The consumer is expected to test for the memory limit error explicitly (e.g., and handle it as ResourceExhausted). A new function is added to do this (NewLimitErrorFromError) that parses the message using a regexp. An upstream issue report and PR will be filed with Arrow-Go to overcome this in the future. See apache/arrow#41989.
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.
Sorry for the delay here, I've been traveling for a conference. Assuming no issues with the CI tests this looks great! Thanks much!
It looks like you need to re-run |
@zeroshade Thank you! |
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 4df00fa. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 3 possible false positives for unstable benchmarks that are known to sometimes produce them. |
Remove a pre-v17 hack that was fixed by apache/arrow#41989.
Remove a pre-v17 hack that was fixed by apache/arrow#41989. See open-telemetry/opentelemetry-collector-contrib#34114.
Rationale for this change
Part of #36186 (Fixes it, IMO)
Fixes #41988.
What changes are included in this PR?
A new internal
FormatRecoveredError()
function adds consistency to errors generated from panic recovery.Are these changes tested?
Yes.
Are there any user-facing changes?
Users will be able to unwrap errors thrown by allocators, for example.