It's only useful to skip over bad writes temporarily. basically you are that flag and then take a snapshot so that bad data is removed from the raft log permanently.
Otherwise it will just ignore both live writes and writes in raft log which is replayed at the start.