{"id":"multi-leader-sync-collects-then-distributes","text":"`sync()` drains all pending queues from every node before distributing any changes, preventing intra-round cascading where one node's change would trigger further propagation within the same sync round","truth_value":"IN","source":"entries/2026/05/29/multi-leader-replication-multi_leader.md","source_url":"","source_hash":"","justifications":[],"dependents":["multi-leader-sync-designed-for-safe-convergence"],"metadata":{"example":"pending_by_node = {}\nfor nid in self._node_order:\n    pending_by_node[nid] = self._nodes[nid].get_pending_changes()\n# then distribute to peers"},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"multi-leader-sync-collects-then-distributes","truth_value":"IN","reason":"premise"}]}}