The Samba-Bugzilla – Attachment 15823 Details for
Bug 14295
Starting ctdb node that was powered off hard before results in recovery loop
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
WIP patch for master
WIP-bug14295-master.patch (text/plain), 1.60 KB, created by
Ralph Böhme
on 2020-02-26 09:27:08 UTC
(
hide
)
Description:
WIP patch for master
Filename:
MIME Type:
Creator:
Ralph Böhme
Created:
2020-02-26 09:27:08 UTC
Size:
1.60 KB
patch
obsolete
>From 9b20bf00b905f6bea088048bc7dfa167a0a5a750 Mon Sep 17 00:00:00 2001 >From: Ralph Boehme <slow@samba.org> >Date: Wed, 26 Feb 2020 10:23:42 +0100 >Subject: [PATCH] WIP: ctdb/tcp: free the in_queue in > ctdb_tcp_stop_connection() > >This fixes a regression introduced by commit >d0baad257e511280ff3e5c7372c38c43df841070 as part of the fixes for bug 14175. > >The scenario that triggers this seems to be: > >- hard power off of a node A > >- all other nodes in the cluster fail to free > struct ctdb_tcp_node.in_queue > >- restart node A and start ctdb > >- node A connect to other nodes but the other nodes > reject the incoming connection with > > Feb 21 13:47:13 somenode ctdbd[302424]: ctdb_listen_event: > Incoming queue active, rejecting connection from SOMEIP > >struct ctdb_tcp_node.in_queue is only ever freed in the fd readable handler >ctdb_tcp_read_cb(), but this gets never called as the TCP stacks on the nodes >doesn't notice the connection is dead. ctdb sets SO_KEEPALIVE on the socket, but >the default timeout for tcp_keepalive_time is 2 hours. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=14295 >--- > ctdb/tcp/tcp_connect.c | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/ctdb/tcp/tcp_connect.c b/ctdb/tcp/tcp_connect.c >index 559442f14bf..79501296054 100644 >--- a/ctdb/tcp/tcp_connect.c >+++ b/ctdb/tcp/tcp_connect.c >@@ -45,6 +45,7 @@ void ctdb_tcp_stop_connection(struct ctdb_node *node) > struct ctdb_tcp_node *tnode = talloc_get_type( > node->transport_data, struct ctdb_tcp_node); > >+ TALLOC_FREE(tnode->in_queue); > TALLOC_FREE(tnode->out_queue); > TALLOC_FREE(tnode->connect_te); > TALLOC_FREE(tnode->connect_fde); >-- >2.24.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 14295
:
15823
|
15826
|
15827
|
15828
|
15829
|
15830
|
15855
|
15859
|
15860
|
15862
|
15869