rabbitmq / ra

A Raft implementation for Erlang and Elixir that strives to be efficient and make it easier to use multiple Raft clusters in a single system.
Other
813 stars 96 forks source link

Allow non-leaders to process apply effects #365

Closed kjnilsson closed 1 year ago

kjnilsson commented 1 year ago

An apply effect emitted by e.g. an aux handler against a follower would be dropped which isn't ideal. This commit changes it to handle apply effects in any state and delegating the handling of these commands to the ra code. (i.e. reject or divert).