1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb
Amitay Isaacs 1f523a628a ctdb-tests: Avoid early exits in scripts that appear on tail of a pipe
When executing a shell script code "foo | bar", if "bar" terminates early,
then "foo" can get I/O error when writing to stdout.

The tdbtool stub did not wait to read anything from stdin when it is
expected to.  This would cause tests to fail randomly under load when
tdbtool process exited early.

Similarly, debug function read from stdin only under certain conditions
(higher debug and when not reading from tty).  Otherwise, exited early.

Thanks to Andrew Bartlett for noticing the problem and Catalyst Cloud
(http://catalyst.net.nz/cloud) for providing resources to test fixes.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Pair-Programmed-With: Martin Schwenke <martin@meltin.net>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Mar 20 16:26:37 CET 2015 on sn-devel-104
2015-03-20 16:26:36 +01:00
..
client ctdb-client: Return a value of 1 when setting obsolete tunable variable 2015-02-18 05:34:06 +01:00
common ctdb: Fix 1125553 Buffer not null terminated 2015-03-10 21:48:03 +01:00
config ctdb-tests: Avoid early exits in scripts that appear on tail of a pipe 2015-03-20 16:26:36 +01:00
doc ctdb: Change default debug level to NOTICE (2) 2015-02-18 05:34:06 +01:00
ib ctdb-logging: Change LogLevel to DEBUGLEVEL 2014-10-06 12:34:33 +02:00
include ctdb-common: New function ctdb_set_helper() 2015-03-10 15:29:06 +01:00
packaging ctdb-build: Fix handling of public headers 2014-10-06 14:56:06 +02:00
server ctdb: Fix CID 1125613 Destination buffer too small 2015-03-13 19:14:20 +01:00
tcp ctdb: Rename CTDB_VERSION to CTDB_PROTOCOL 2014-10-28 05:42:05 +01:00
tests ctdb-tests: Avoid early exits in scripts that appear on tail of a pipe 2015-03-20 16:26:36 +01:00
tools ctdb-tools: Drop a debug message to DEBUG level 2015-03-16 06:41:06 +01:00
utils ctdb-utils: Update Nagios code to use ctdb -X 2014-12-05 21:02:40 +01: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
configure ctdb-build: Allow configure and Makefile to find waf in tarball 2014-09-10 01:36:14 +02:00
configure.rpm ctdb-build: Change from ctdb-util to samba-util 2014-10-06 12:34:33 +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
Makefile ctdb-build: Allow configure and Makefile to find waf in tarball 2014-09-10 01:36:14 +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
wscript ctdb-build: Specify absolute path to libsocket-wrapper.so 2015-03-04 13:11:53 +01: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.