ctdb-tcp: move free of inbound queue to TCP restart
authorNoel Power <noel.power@suse.com>
Sat, 29 Feb 2020 15:49:28 +0000 (15:49 +0000)
committerMartin Schwenke <martins@samba.org>
Thu, 12 Mar 2020 03:47:30 +0000 (03:47 +0000)
commit0ff1b78fc2f0491f9e11131d0040bdaba8873770
tree4ddbf30a680677c7f63990ff4746d253bdd05c13
parent15762a34559599cf908e30651a2d4c11560068ed
ctdb-tcp: move free of inbound queue to TCP restart

Since commit 77deaadca8e8dbc3c92ea16893099c72f6dc874e, a nodeA which
had previously accepted a connection from nodeB (where nodeB dies
e.g. as as result of fencing) when nodeB attempts to connect again
after restarting is always rejected with

 ctdb_listen_event: Incoming queue active, rejecting connection from w.x.y.z

messages.

Consolidate dead node handling in the TCP restart handling.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14295

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/tcp/tcp_init.c
ctdb/tcp/tcp_io.c