Repository navigation
Fix for MGET crash when upstream Redis Command Stats are enabled - #9954
Merged
Merged
Conversation
…nstream MGET test case to exercise this code path Signed-off-by: Nicolas Flacco <[email protected]>
Member
|
Do you mind taking a look at CI and filling out the PR description per the https://github.com/envoyproxy/envoy/blob/master/PULL_REQUESTS.md |
Signed-off-by: Nicolas Flacco <[email protected]>
Signed-off-by: Nicolas Flacco <[email protected]>
…to fix-mget-stats-crash Signed-off-by: Nicolas Flacco <[email protected]>
Signed-off-by: Nicolas Flacco <[email protected]>
HenryYYang
reviewed
Feb 10, 2020
Signed-off-by: Nicolas Flacco <[email protected]>
Signed-off-by: Nicolas Flacco <[email protected]>
Signed-off-by: Nicolas Flacco <[email protected]>
|
This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Contributor
|
LGTM. +1 |
Member
|
Oops looks like you need a master merge. /wait |
Merged
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The root cause was not handling all types in a switch statement in
RedisCommandStatswhere I get the command string (ieget,set, etc.). Unfortunately the code path exercised by anmgetrequest from downstream was not exercised so this was not caught by unit or integration tests.I've explicitly handled all the types; specifically the
RespType::CompositeArraywhich is used inmget. I've also added an integration test that verifies the behavior (and crashes as expected without the fix). The integration test is needed because themgetis downstream-specific; on the upstream side it is converted togets and theclient_impl_test.ccwhere we tested theRedisCommandStatsstats measurement is upstream-specific.Risk Level: Low
Testing: Local unit/integration on Mac
Docs Changes: N/A
Release Notes: N/A