[PATCH] CTDB - Make natgwlist and lvsmaster more resilient
martin at meltin.net
Tue May 27 22:09:52 MDT 2014
Recent changes have caused these commands to attempt to get
capabilities from all nodes before doing further filtering. This
means that capabilities are unnecessarily fetched from nodes that are
unlikely to be the master. If such a node does not answer the control
then many nodes can fail to calculate the master node. In the case of
natgwlist this will cause "monitor" events to fail resulting in
Restore the behaviour where capabilities are only fetched for a node
that will be the master if it has the desired flags.
Although this masks a problem where a connected node is not replying,
it can help to avoid an outage in some cases.
Add supporting tests and infrastructure. Infrastructure just lets a
timeout be faked - just for ctdb_ctrl_getcapabilities_stub() so far.
First test checks that this infrastructure works if the first node
times out in natgwlist. Second test checks the case worked around by
the above fix - that is, no failure when a node with PNN beyond the
NATGW master can time out.
Please review and push if OK.
This patch is in my ctdb branch:
peace & happiness,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 9523 bytes
Desc: not available
More information about the samba-technical