restatedev / restate

Restate is the platform for building resilient applications that tolerate all infrastructure faults w/o the need for a PhD.
https://docs.restate.dev
Other
1.65k stars 37 forks source link

Remove infinite retry policy when announcing the leadership #2338

Closed tillrohrmann closed 4 days ago

tillrohrmann commented 4 days ago

Instead of retrying infinitely in the LeadershipState, we are now spawning a background appender and hand the announce leadership message over. Additionally, we are now monitoring the health of the appender task to escalate potential failures which would then result in shutting the PP down and let the PPM handle the situation.

This fixes https://github.com/restatedev/restate/issues/2333.

tillrohrmann commented 4 days ago

This PR still has a problem. Closing until fixed.