Cluster sync: an exact timestamp tie can settle differently on two nodes, and a second collision from the same creating node repeats a renamed name #465
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil#465
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while #450 was verified. Both are narrow; neither blocked #450.
ClusterSyncConflictResolver.IncomingWinstreats a local row with no recorded origin asGuid.Empty, while the sender stamps the same kind of row with its real node id. With identical last-change times, node X can treat peer Y's row as the winner while Y treats X's row as the winner, so the two disagree on who keeps a name such asadmin. The same mismatch lets a node accept an echo of its own row on a tie (harmless: same row id). Bootstrap rows are created at different ticks, so this is unlikely, but README and the wiki say a tie "settles the same way on every node". Wanted: use the holding node's id for a row with no recorded origin in the comparison too (as the rename now does), with a test for an exact tie on both sides.<name>-conflict-<creator id>. If node A's first loser already holdsadmin-conflict-<A>and node A later creates anotheradminthat loses again, the new name is the same and the save hits the unique index. The same happens for two names longer than 212 characters, created on one node, that differ only after the cut point. Failure mode today: the exception is caught inClusterChannelController.ConfigSync, logged as an error, and that one envelope is not applied; the stream carries on. Wanted: a deterministic way to tell such rows apart that every node computes alike (for example a short hash of the row id in the suffix when the plain name is taken), or a documented decision that the row is skipped, with a log line that says how to resolve it.