Skip to content
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

Fix redis cli test will fail if cannot read response at once #1129

Merged
merged 2 commits into from
Nov 20, 2022
Merged

Fix redis cli test will fail if cannot read response at once #1129

merged 2 commits into from
Nov 20, 2022

Conversation

git-hulk
Copy link
Member

@git-hulk git-hulk commented Nov 19, 2022

This closes #1072

For the current read implementation, it will return the string after reading the response, so it may only read parts of the response. We simply fix it by checking whether the response string has the newline('\n') or not.

For current read implementation, it will return the string after
reading the response, so it may only read partial of the response.
We simply fix it by checking whether the response string has the
newline('\r\n') or not.
torwig
torwig previously approved these changes Nov 19, 2022
@git-hulk git-hulk marked this pull request as draft November 19, 2022 07:32
@git-hulk git-hulk merged commit 9daa6b3 into apache:unstable Nov 20, 2022
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.

Flaky Test TestRedisCli
3 participants