-
Notifications
You must be signed in to change notification settings - Fork 259
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
max_error_reason_size limit error reason #386
max_error_reason_size limit error reason #386
Conversation
FYI all the maintainers are off, we'll review the PR in January |
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.
Hi, thanks for the PR.
Can you add documentations and tests to your PR?
You can look at what was done in the PR of the max_payload_side to help you in these tasks
proxy.go
Outdated
errString, err := toString(reader) | ||
if err != nil { | ||
log.Errorf("%s failed to get error reason: %s", s, err.Error()) | ||
var errReason string |
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 you add a default value at "" in order to avoid a nil errReason? It could lead to future bugs
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.
added default value
on top of that, please do run the tests on your laptop because your PR broke some existing tests:
|
fixed all tests, added new ones |
TestKillQuery::timeout_cluster_user runs well on my local machine |
don't worry, this test is sometimes fails only on github (there is a PR to fix that). |
I added new case for TestReverseProxy_ServeHTTP1 and checks for transaction fail reasons for all other cases Also I added config into default.md |
also 2 days ago we deployed this branch in our production and solved all OOM problems, we will go back to your upstream as soon as PR will be merged |
Hi, I'm a bit busy, I'll review your PR next week. If it's ok, I'll merge it then release a new version of chproxy. |
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.
looks good to me. I don't merge the PR so that the other reviewers can review it if they want.
We'll release a new version containing your fix soon (before next week)
Description
example of limiting error reason to solve large tmp file reading problem
Pull request type
Please check the type of change your PR introduces:
Checklist
Does this introduce a breaking change?
Further comments