• Huang Zhw's avatar
    Throw -TRYAGAIN instead of -ASK on migrating nodes for multi-key commands when... · 78960ad5
    Huang Zhw authored
    Throw -TRYAGAIN instead of -ASK on migrating nodes for multi-key commands when the node only has some of the keys (#9526)
    
    * In cluster getNodeByQuery when target slot is in migrating state and
    the slot lack some keys but have at least one key, should return TRYAGAIN.
    
    Before this commit, when a node is in migrating state and recevies
    multiple keys command, if some keys don't exist, the command emits
    an `ASK` redirection.
    
    After this commit, if some keys exist and some keys don't exist, the
    command emits a TRYAGAIN error. If all keys don't exist, the command
    emits an `ASK` redirection.
    78960ad5
cluster.c 276 KB