HomeStore
HomeStore copied to clipboard
Timedout repl_req to be garbage collected when originator is crashed/rebooted
Each replication request is tracked as repl_req structure. In followers they are created upon leader sending data either over raft or data channel (whichever comes first). There is a possibility of the request failed in leader or didn't receive quorum, resulting in these requests are not going to be further processed. It occupies system resources (including blks allocated). It needs to be garbage collected with timer.
Idea is to start a timer and walks through every ReplDev and look at the map structure and iterate over them based on time and free up the resources.