-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Add missing return on -UNKILLABLE sent by master case #12277
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
Conversation
This is an overlook in redis#9780
|
looks like we don't have tests that cover it |
zuiderkwast
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like an overlook yes. Good catch!
This could have been avoided if we would not use return at all, but instead if, else if ... else in this function.
Would it be too hard to add a test for that case?
It seems hard, I want to add it, but I haven't thought of a good way yet |
|
I believe we dropped script replication on 7.0 so this is basically a dead code, no? |
|
The code could be alive if we're replicating from an older master, or reading an old (or specially crafted)AOF file |
|
Not sure this is worth the trouble of writing a test or refactoring the code. I'm ok merging it as is. |
i see in aof.tcl, we have a |
|
no, SCRIPT KILL should not be allowed during loading (since the script in that case would be from the AOF file, and we should not kill it). |
|
got it, let's merge it |
We now no longer propagate scripts (started from 7.0), so this is a
very rare issue that in nearly-dead-code.
This is an overlook in #9780