gen_paxos icon indicating copy to clipboard operation
gen_paxos copied to clipboard

wasting 3 second in handshake

Open alexshavelev opened this issue 8 years ago • 1 comments

Hi. Sorry, if i made mistake or misunderstood something. But i spend all day reading about Paxos and then playing with this library. I noticed that it works really slow, and started discover source code. So i've noticed that in 'paxos_fsm' module after calling init/1 function it just marks process as system and returns new gen_fsm state, without sending 'process' signal to another node. So we waste 3 seconds waiting for something will never happened. Then after timeout is calling function which will send 'prepare' message to another node. Please correct me, if i've made a mistake, but for now it seems like old bug

alexshavelev avatar Jul 25 '16 18:07 alexshavelev

I think it does work like this

tenwz avatar Dec 07 '21 13:12 tenwz