ctdb-scripts: Compact server-end TCP connection killing output

Enterprise / Samba - Martin Schwenke [meltin.net] - 13 June 2017 03:12 EDT

When thousands of connections are being killed the logs are flooded with information about connections that should be killed. When some connections are not killed then the number not killed is printed. This is the wrong way around! When debugging "fail-back" problems, it is important to know details of connections that were *not* killed. It is almost never important to know the full list of all connections that were *supposed* to be killed.

Instead, print a summary showing how many connections of the total were killed. If any were not killed then print a list of remaining connections.

Update unit tests: infrastructure for fake TCP connections, existing, test cases, add new test cases.

dac0751 ctdb-scripts: Compact server-end TCP connection killing output
ctdb/config/functions | 22 +++++++-----
.../eventscripts/10.interface.releaseip.010.sh | 24 ++++---------
.../eventscripts/10.interface.releaseip.011.sh | 39 ++++++++--------------
.../eventscripts/10.interface.releaseip.012.sh | 30 +++++++++++++++++
.../eventscripts/10.interface.releaseip.013.sh | 35 +++++++++++++++++++
ctdb/tests/eventscripts/scripts/local.sh | 39 ++++++++++++++++++++--
ctdb/tests/eventscripts/stubs/ss | 4 +++
7 files changed, 141 insertions(+), 52 deletions(-)

Upstream: gitweb.samba.org

  • Share