zeromq / zyre

Zyre - an open-source framework for proximity-based peer-to-peer applications
Mozilla Public License 2.0
870 stars 172 forks source link

Problem: When a peer is left amlone in an election, an election starts but will never end properly #735

Closed Mathsoum closed 1 year ago

Mathsoum commented 1 year ago

The last remaining peer in an election sends an ELECT message that will have no response so the election will not end completely.
This leaves the election in an incomplete state indefinitely.

Solution: Force the only remaining peer in an election to consider itself as LEADER in said election.
This behavior is observed only when there was peer assigned to an election, all those peers left but one including the LEADER.

sphaero commented 1 year ago

CI ubuntu is having the unwind dependency trouble. Merging anyway