File: 007

package info (click to toggle)
sheepdog 0.8.3-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,364 kB
  • ctags: 3,951
  • sloc: ansic: 30,552; sh: 3,573; perl: 2,924; asm: 453; makefile: 391; python: 192
file content (27 lines) | stat: -rwxr-xr-x 541 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

# Test cluster rejecting node with wrong epoch

. ./common


# create a node who has wrong epoch
_start_sheep 1
_wait_for_sheep 1 1
_cluster_format -p 7001 -c 1
$DOG cluster shutdown -p 7001
_wait_for_sheep_stop

# start Sheepdog with one node
_start_sheep 0
_wait_for_sheep 1
_cluster_format -p 7000 -c 1

_start_sheep 1  # should fail
_wait_for_sheep_stop 1
_wait_for_sheep 1
_start_sheep 2  # should succeed
_wait_for_sheep 2

$DOG cluster info -p 7000 | _filter_cluster_info
$DOG cluster info -p 7002 | _filter_cluster_info