omnipaxos icon indicating copy to clipboard operation
omnipaxos copied to clipboard

Flushing entries on Prepare

Open kevin-harrison opened this issue 1 year ago • 0 comments

Right now we flush entries on receiving a Prepare message. There is nothing wrong with this, but it could be optimized. If we in general only send Accepted after flushing then actually this is not strictly necessary. (any chosen entry must be flushed among a majority and if we haven't flushed it, then we will get it in the AcceptSync). To prevent flushing stuff that will anyway get overwritten, we should perhaps do some checks here first. The most basic check is if the leader is more updated than us, we don't flush. There are probably more sophisticated checks we can do.

kevin-harrison avatar Nov 13 '23 14:11 kevin-harrison