Skip to content

redis: fix asking output for ask redirection support#6543

Merged
mattklein123 merged 6 commits intoenvoyproxy:masterfrom
HenryYYang:msukalski/fix-asking
Apr 14, 2019
Merged

redis: fix asking output for ask redirection support#6543
mattklein123 merged 6 commits intoenvoyproxy:masterfrom
HenryYYang:msukalski/fix-asking

Conversation

@msukalski
Copy link
Contributor

  • issue separate, preceding "asking" command instead of prefixing
    "asking" to the redirected command.

  • combined all derived requests' onChildRedirection() methods into
    a single method.

  • fixed affected unit and integration tests.

Signed-off-by: Mitch Sukalski mitch.sukalski@workday.com

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md

Description:

For Redis ASK redirection support, the "asking" command is now a separate command issued before the redirected command, instead of being prepended to the redirected command itself ("asking" is now encoded at its own array of a single bulkstring, "asking" -- instead of being added as the first array element of the redirected command). The unit and integration tests have been updated to reflect this change, and additional optimization was done to remove redundant onChildRedirection() methods for command splitter request types derived from FragmentRequest.

Risk Level: low
Testing: unit and integration tests as well as direct verification via redis-cli to a Redis cluster
Docs Changes: none
Release Notes: none
[Optional Fixes #Issue]
[Optional Deprecated:]

- issue separate, preceding "asking" command instead of prefixing
"asking" to the redirected command.

- combined all derived requests' onChildRedirection() methods into
a single method.

- fixed affected unit and integration tests.

Signed-off-by: Mitch Sukalski <mitch.sukalski@workday.com>
@msukalski
Copy link
Contributor Author

build_image failed with:

Allocating a remote Docker Engine
Waiting for a Docker Engine assignment: ....................................................................................................
Got error while creating host: failed to create a vm: instance not ready yet: unassigned
We had an unexpected error preparing a VM for this build, potentially due to our infrastructure or cloud provider. Please retry the build in a few minutes

Signed-off-by: Mitch Sukalski <mitch.sukalski@workday.com>
- adding additional unit and integration negative tests for coverage

Signed-off-by: Mitch Sukalski <mitch.sukalski@workday.com>
- extended tests for coverage gap

Signed-off-by: Mitch Sukalski <mitch.sukalski@workday.com>
@msukalski
Copy link
Contributor Author

msukalski commented Apr 11, 2019

100% line coverage of modified code achieved with the last push.

@mattklein123
Copy link
Member

@FAYiEKcbD0XFqF2QK2E4viAHg8rMm2VbjYKdjTg
Copy link
Contributor

Ok I'm on it

@FAYiEKcbD0XFqF2QK2E4viAHg8rMm2VbjYKdjTg
Copy link
Contributor

LGTM, one minor comment.

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM with some nits.

/wait

Signed-off-by: Mitch Sukalski <mitch.sukalski@workday.com>
Signed-off-by: Mitch Sukalski <mitch.sukalski@workday.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mattklein123 mattklein123 merged commit ae70dbe into envoyproxy:master Apr 14, 2019
@msukalski msukalski deleted the msukalski/fix-asking branch April 15, 2019 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants