mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-25 19:10:42 +00:00
The test was flaky because it stopped dc2_node immediately after an LWT write, before cross-DC replication could complete. The LWT commit uses LOCAL_QUORUM, which only guarantees persistence in the coordinator's DC. Replication to the remote DC is async background work, and CAS mutations don't store hints. Stopping dc2_node could drop in-flight RPCs, leaving DC1 without the mutation. Fix by polling both live DC1 nodes after the write to confirm cross-DC replication completed before stopping dc2_node. Both nodes must have the data so that the later ConsistentRead=True (LOCAL_QUORUM) read on restarted node1 is guaranteed to succeed. Fixes SCYLLADB-1267 Closes scylladb/scylladb#29287