Repository navigation
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #5084 +/- ##
============================================
- Coverage 92.16% 92.15% -0.01%
Complexity 4356 4356
============================================
Files 1574 1575 +1
Lines 417733 418118 +385
Branches 346248 346634 +386
============================================
+ Hits 384989 385311 +322
- Misses 27256 27323 +67
+ Partials 5488 5484 -4
🚀 New features to boost your workflow:
|
numinnex
requested changes
Nov 25, 2026
Contributor
Author
|
/ready |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A replica hashes its release into the build identity that both halves
of the replica handshake compare for equality. Every version bump, a
patch included, therefore made a node refuse all of its peers, even
when the replica protocol, the storage format and the replicated
logic had not changed. A cluster could only be upgraded with every
node down.
The server now holds a release compatibility table: one row per
release, with the releases it can share a cluster with. Two releases
link when they are equal or when the row of either one lists the
other. A release is matched by its exact version string, so a release
that no pair names, such as a fork under its own version, links only
with itself. The table ships empty, because no released pair is
compatible yet.
Only the binary that holds a row knows it, and an earlier release
cannot learn of a later one. So the node with the row speaks as the
release it lists. A ReplicaHello carries the identity of the dialer
in its header and, as its body, the identities of the releases the
dialer lists, 128 at most. The acceptor picks the identity of the
link: that of the dialer when it is its own or one it lists, its own
when the body contains it. The challenge and the finish carry that
identity, and the node without the row only ever sees its own. With
cluster.auth on, both MACs cover that identity and a hash of the
whole hello, so a hello altered in transit fails the handshake.
A listed identity is hashed with the client protocol, the replica
wire revision and the storage marker of the build that lists it, so a
row cannot link a release that differs in one of them. What a row
asserts, and nothing checks, is that the state transfer formats and
the replicated logic are the same.
The table is compiled in, not configured: an operator who could set
it could link releases whose state machines differ. It holds explicit
pairs, not a version range, because a range admits a fork or a bad
release that sorts inside it. Its test requires a direct pair between
any two releases that link with a common third one, and a valid
version in every entry.
REPLICA_WIRE_REVISION goes from 4 to 5. A build from before this
change ignores the hello body, so a release that listed such a build
would link only where the old build dials. With the bump that build
matches no listed identity. Builds from before and after this change
refuse each other, so stop every node and start them all on the new
build. The storage format does not change and the data directories
stay.