Test split brain scenario
Write a test that simulates a network partition and verifies that two new clusters with potentially new leader.
Two groups of nodes G1 and G2. Network partition. All nodes in G1 thinks all nodes in G2 are unreachable and vice versa. Auto-down marks the unreachable as Down and convergence is reached.
G1 and G2 are 2 separated, fully functional clusters.
auto-down=off should be used if it is important to not form new clusters in case of network partition. With auto-down=off a manual decision of which part of the cluster that should continue must be made.
Two groups of nodes G1 and G2. Network partition. All nodes in G1 thinks all nodes in G2 are unreachable and vice versa. Auto-down marks the unreachable as Down and convergence is reached.
G1 and G2 are 2 separated, fully functional clusters.
auto-down=off should be used if it is important to not form new clusters in case of network partition. With auto-down=off a manual decision of which part of the cluster that should continue must be made.
Leave a comment
on 2012-06-26 11:33 *
By Patrik Nordwall
Description changed from Write a test that simulates... to Write a test that simulates...
Summary changed from Test leader wins split brain strategy to Test split brain scenario
Updating tickets (#939, #940, #1941, #2213, #2214, #2215, #2219, #2222, #2223, #2239, #2240, #2249, #2250, #2252, #2253, #2254, #2256, #2259, #2263, #2264, #2265, #2267, #2270, #2271, #2275, #2277, #2286, #2287, #2289, #2290, #2303, #2304, #2308, #2310, #2311, #2317, #2323, #2331, #2374, #2392, #2405, #2423, #2425, #2440, #2444, #2445, #2453, #2456, #2459, #2473, #2477, #2491, #2495, #2523, #2534, #2541, #2544, #2545, #2549, #2582, #2583, #2589, #2626)
Updating tickets (#939, #940, #1941, #2081, #2126, #2213, #2214, #2215, #2219, #2222, #2223, #2239, #2240, #2249, #2250, #2252, #2253, #2254, #2256, #2259, #2263, #2264, #2265, #2267, #2270, #2271, #2275, #2277, #2286, #2287, #2289, #2290, #2303, #2304, #2308, #2310, #2311, #2317, #2323, #2331, #2374, #2392, #2394, #2405, #2408, #2423, #2424, #2425, #2440, #2444, #2445, #2449, #2453, #2456, #2459, #2461, #2473, #2477, #2485, #2491, #2495, #2498, #2501, #2505, #2515, #2517, #2523, #2534, #2541, #2544, #2545, #2549, #2582, #2583, #2588, #2589, #2598, #2599, #2618, #2623, #2626, #2627, #2630, #2631, #2633, #2634, #2635, #2637, #2638, #2642, #2643, #2646, #2647, #2648, #2649, #2650, #2653, #2655, #2657, #2658)