Reduce distributor memory usage when error volume is high #6095
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does:
Avoid nesting httpgrpcutil.WrapHTTPGrpcError.
This cluster has ~600 QPS, and ~400 of them are 2xx.
![image](https://private-user-images.githubusercontent.com/6223594/349421836-997ef830-183a-4c7f-8f1c-b206eab5976a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MTUwNjgsIm5iZiI6MTczOTUxNDc2OCwicGF0aCI6Ii82MjIzNTk0LzM0OTQyMTgzNi05OTdlZjgzMC0xODNhLTRjN2YtOGYxYy1iMjA2ZWFiNTk3NmEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMDYzMjQ4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWFmMzRhOWY3NmI3ODI2N2FlMDgwMTM0YmU5ZTAzNzYxZjcwMWY3MzY3OTUwNmQ4NzYyZDhkZTU1MzZkY2U0MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.QxrBFAzoi30W1MQAbqOIxg1KAEVaiSlQHEcapgfhnj4)
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]