• 杨博东's avatar
    Fix flock cluster config may cause failure to restart after kill -9 (#7674) · cbaf3c5b
    杨博东 authored
    
    
    After fork, the child process(redis-aof-rewrite) will get the fd opened
    by the parent process(redis), when redis killed by kill -9, it will not
    graceful exit(call prepareForShutdown()), so redis-aof-rewrite thread may still
    alive, the fd(lock) will still be held by redis-aof-rewrite thread, and
    redis restart will fail to get lock, means fail to start.
    
    This issue was causing failures in the cluster tests in github actions.
    Co-authored-by: default avatarOran Agra <oran@redislabs.com>
    cbaf3c5b
cluster.c 230 KB