Skip to content

Fix protocol error caused by redis-benchmark#10236

Merged
oranagra merged 1 commit intoredis:unstablefrom
ivanstosic-janea:benchmark-protocol-error
Feb 7, 2022
Merged

Fix protocol error caused by redis-benchmark#10236
oranagra merged 1 commit intoredis:unstablefrom
ivanstosic-janea:benchmark-protocol-error

Conversation

@ivanstosic-janea
Copy link
Contributor

@ivanstosic-janea ivanstosic-janea commented Feb 4, 2022

The protocol error was caused by the buggy writeHandler in redis-benchmark.c,
which didn't handle one of the cases, thereby repeating data, leading to protocol errors
when the values being sent are very long.

This PR fixes #10233, issue introduced by #7959

@oranagra
Copy link
Member

oranagra commented Feb 4, 2022

@ivanstosic-janea I see you submitted a patch for 6.2, is this issue already resolved in unstable (our development branch?
(I'm AFK)

@enjoy-binbin
Copy link
Contributor

enjoy-binbin commented Feb 4, 2022

i did not take a deep look, only tested it on the unstable branch (note without TLS), it (src/redis-benchmark -P 1 -t set -n 1 -c 1 -d 50000000) will hang (for a long time). and with this patch, it will work (finish soon). so i suppose you can do a test in unstable branch, and point the PR to the unstabe branch.

btw, may i ask the Protocol error, what exactly does the error look like (hang ?)

@ivanstosic-janea
Copy link
Contributor Author

Yes, redis-benchmark hangs, and yes, the bug also exists in unstable. I'll close this one and open another one aimed at unstable.

@enjoy-binbin
Copy link
Contributor

enjoy-binbin commented Feb 4, 2022

@ivanstosic-janea actually you can just EDIT the PR, and point to the unstable branch

@ivanstosic-janea ivanstosic-janea changed the base branch from 6.2 to unstable February 4, 2022 16:46
@ivanstosic-janea
Copy link
Contributor Author

Should be good now

@oranagra
Copy link
Member

oranagra commented Feb 7, 2022

@oranagra oranagra merged commit bb87560 into redis:unstable Feb 7, 2022
oranagra pushed a commit that referenced this pull request Apr 27, 2022
The protocol error was caused by the buggy `writeHandler` in `redis-benchmark.c`,
which didn't handle one of the cases, thereby repeating data, leading to protocol errors
when the values being sent are very long.

This PR fixes #10233, issue introduced by #7959

(cherry picked from commit bb87560)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[BUG] Protocol error in redis-benchmark

4 participants