Describe the bug
Child process redis-rdb-to-slaves is running continuously forever when parent process is restarted.
At the below code, child process is waiting for the parent process.
https://github.com/redis/redis/blob/521e54f551386eaec3e84ddad052add391059e5e/src/rdb.c#L3540
If for some reason, redis is restarted before the child process reaches the above code, then child process redis-rdb-to-slaves will stay forever. Also it holds the old memory pages, which results into double memory usage.
Expected behavior
Child process redis-rdb-to-slaves should check for the liveness of the parent process before issuing the read in above code.
OR We can add some timeout so that process is stopped after some time even when parent process is not reachable.
Comment From: oranagra
I think I recently fixed it. Which version are you using?
Comment From: azeemmd
I am using 6.2.6. in which version it was fixed, and what was the fix. Thanks.
Comment From: enjoy-binbin
look like the fix is this one #11463 ? (released in 6.2.8 , 7.0.6)