[PATCH] CTDB logging improvements
martin at meltin.net
Tue Jun 13 05:46:29 UTC 2017
2 separate commits:
* ctdb-common: Log a count of dropped messages with non-blocking logging
The non-blocking logging variants can currently silently drop messages
when the socket queue fills.
In this case, count the number of dropped messages and attempt to log
a message about dropped log messages when the next message is logged.
* ctdb-scripts: Compact server-end TCP connection killing output
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
Update unit tests: infrastructure for fake TCP connections,
existing, test cases, add new test cases.
Please review and maybe push...
peace & happiness,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 12669 bytes
Desc: not available
More information about the samba-technical