Revision 422da37ed4e31651cba5b88a9e3b2ab8445110e4

Committed on 16/12/2025 2:34 pm by Zohaib Sibte Hassan <zohaib@sibte.pk> [GitHub Diff]

Fix: Schema version race condition causing Node 3 instability

Prevent nodes from becoming ALIVE before their schema versions catch up
with peers. This fixes a race condition where anti-entropy could sync
from behind peers, causing DDL loss and node instability.

Defense-in-depth approach:
- Promotion criteria now blocks JOINING→ALIVE when local schema < peer
- Anti-entropy skips peers with older schema versions
- Fresh databases (schema=0) are now properly compared

???? Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>