source: vendor/current/ctdb/tests/takeover/lcp2.010.sh

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 815 bytes
Line 
1#!/bin/sh
2
3. "${TEST_SCRIPTS_DIR}/unit.sh"
4
5define_test "2 disjoint groups of nodes/addresses, a node becomes healthy"
6
7# This illustrates a bug in LCP2 when the the only candidate for a
8# source node is chosen to be the "most imbalanced" node. This means
9# that nodes in the smaller group aren't necessarily (depends on sort
10# order and addresses used) considered as candidates. If the larger
11# group has 6 addresses then the "necessarily" goes away and the
12# smaller group won't be rebalanced.
13
14export CTDB_TEST_LOGLEVEL=0
15
16required_result <<EOF
17192.168.209.102 3
18192.168.209.101 2
19192.168.140.4 1
20192.168.140.3 1
21192.168.140.2 0
22192.168.140.1 0
23EOF
24
25simple_test 0,0,0,0 <<EOF
26192.168.140.1 0 0,1
27192.168.140.2 0 0,1
28192.168.140.3 1 0,1
29192.168.140.4 1 0,1
30192.168.209.101 2 2,3
31192.168.209.102 2 2,3
32EOF
Note: See TracBrowser for help on using the repository browser.