1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/ctdb
Martin Schwenke 6a552f1a12 ctdb-tests: Try harder to avoid failures due to repeated recoveries
About a year ago a check was added to _cluster_is_healthy() to make
sure that node 0 isn't in recovery.  This was to avoid unexpected
recoveries causing tests to fail.  However, it was misguided because
each test initially calls cluster_is_healthy() and will now fail if an
unexpected recovery occurs.

Instead, have cluster_is_healthy() warn if the cluster is in recovery.

Also:

* Rename wait_until_healthy() to wait_until_ready() because it waits
  until both healthy and out of recovery.

* Change the post-recovery sleep in restart_ctdb() to 2 seconds and
  add a loop to wait (for 2 seconds at a time) if the cluster is back
  in recovery.  The logic here is that the re-recovery timeout has
  been set to 1 second, so sleeping for just 1 second might race
  against the next recovery.

* Use reverse logic in node_has_status() so that it works for "all".

* Tweak wait_until() so that it can handle timeouts with a
  recheck-interval specified.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2014-06-19 23:41:13 +02:00
..
client ctdb-client: Talloc tdb_wrap off ctdb_db_context 2014-04-23 14:49:07 +02:00
common ctdb-logging: Move controls handling functions from common to server 2014-06-12 05:40:10 +02:00
config ctdb-eventscripts: New configuration variable CTDB_GANESHA_REC_SUBDIR 2014-06-11 09:29:22 +02:00
doc ctdb-eventscripts: New configuration variable CTDB_GANESHA_REC_SUBDIR 2014-06-11 09:29:22 +02:00
ib ctdb-ib: Make infiniband transport compile again 2014-05-29 03:35:54 +02:00
include ctdb-logging: Split ringbuffer handling code from ctdb_collect_log 2014-06-12 05:40:10 +02:00
lib ctdb:build: fix building with external libtdb 2014-06-16 15:49:14 +02:00
packaging ctdb-daemon: Add helper process to execute event scripts 2014-01-16 12:11:37 +11:00
server ctdb:vacuum: always run freelist_size again 2014-06-17 09:33:10 +02:00
tcp ctdb-tcp: Coverity fixes 2013-11-19 17:13:06 +01:00
tests ctdb-tests: Try harder to avoid failures due to repeated recoveries 2014-06-19 23:41:13 +02:00
tools ctdb-tools-ctdb: Make natgwlist and lvsmaster more resilient 2014-05-29 05:59:37 +02:00
utils ctdb-pmda: Do not hardcode include paths 2014-05-29 03:35:54 +02:00
web web: Add links to new manpages 2013-10-30 15:37:54 +11:00
.bzrignore more code rearrangement 2007-06-07 22:16:48 +10:00
.gitignore git: Ignore generated documentation files 2013-10-22 13:07:13 +11:00
aclocal.m4 initial version 2006-11-18 10:41:20 +11:00
autogen.sh event: Update events to latest Samba version 0.9.8 2010-08-18 09:16:31 +09:30
config.guess ctdb-build: Update to latest upstream config.guess 2013-11-27 18:46:15 +01:00
config.mk minor back-merge from samba4 2007-07-10 18:13:47 +10:00
config.sub build: Update config.guess 2012-12-30 and config.sub to 2013-01-11 2013-01-22 18:03:37 +11:00
configure.ac build: Move the default CTDB socket from /tmp to /var/run/ctdb 2013-10-25 12:06:07 +11:00
configure.rpm fixed permissions on configure.rpm 2008-04-22 16:48:25 +02:00
COPYING add a licence file 2009-02-07 08:10:34 +11:00
ctdb.pc.in (This used to be ctdb commit b0718551f55d5da9be0e6aba233f57c1ff8509be) 2009-04-08 09:14:20 +10:00
install-sh initial version 2006-11-18 10:41:20 +11:00
Makefile.in ctdb-build: Remove duplicate library dependency 2014-06-12 05:40:11 +02:00
NEWS ctdb: Update NEWS 2013-11-27 18:46:17 +01:00
README doc: README - add information about CTDB, license and website 2012-10-22 17:39:49 +11:00
README.Coding Add a code-style document. 2010-07-30 16:37:22 +10:00

This is the release version of CTDB, a clustered implementation of TDB
database used by Samba and other projects to store temporary data.

This software is freely distributable under the GNU public license,
a copy of which you should have received with this software (in a file
called COPYING).

For documentation on CTDB, please visit CTDB website http://ctdb.samba.org.