Code RoomElasticsearch split brain divergence
HardPrep Room Coding #2503

Elasticsearch split brain divergence

On-callDatabases & SQLNetworking & APIsSenior–Staff~45 min

Search results are inconsistent: the same query returns different document sets on consecutive requests, and some recently-indexed docs appear then disappear. Started after a 14:05 network blip between two availability zones. Dashboards: the Elasticsearch cluster shows two nodes each claiming to be master (cluster state diverged), the AZ-A and AZ-B node groups can't see each other, indexing requests succeed in BOTH partitions, and shard allocation differs between the two views. The cluster has 4 master-eligible nodes (no dedicated tiebreaker). How do you triage this split-brain, stop divergence, and reconcile the data?

What a strong answer looks like

Stop the bleeding first (mitigate), then form hypotheses from real signals. Separate root cause from symptom, communicate status as you go, and close with what prevents a repeat.

0:00 of about 45 min
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.