raft-no-leader-forwarding

Status: IN

`client_request` returns `{"success": False, "error": "not leader"}` if the node is not the leader; there is no automatic forwarding to the current leader.

Source: entries/2026/05/29/raft-consensus-raft.md

Example

def client_request(self, command):
    if self._state != "leader":
        return {"success": False, "error": "not leader"}

JSON