Add missing return on -UNKILLABLE sent by master case#12277
Add missing return on -UNKILLABLE sent by master case#12277oranagra merged 1 commit intoredis:unstablefrom
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.
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