From: Noah Watkins <jayhawk@cs.ucsc.edu>
To: Gregory Farnum <gregory.farnum@dreamhost.com>
Cc: Noah Watkins <jayhawk@soe.ucsc.edu>, ceph-devel@vger.kernel.org
Subject: Re: Client receives 'connection refused' only after heavy use
Date: Thu, 08 Dec 2011 16:40:08 -0800 [thread overview]
Message-ID: <4EE158E8.8030603@cs.ucsc.edu> (raw)
In-Reply-To: <CAF3hT9DACT5QMNkPYv8tG2dE=JnnZO-k22-k7SG7htbv6D2YEg@mail.gmail.com>
This patch appears to be working well!
Thanks,
Noah
On 12/07/2011 02:33 PM, Gregory Farnum wrote:
> Noah:
> Branch wip-messenger contains the patch you want (plus one or two
> cleanups), or apply the below. Should handle it, although I'd like to
> do a more thorough cleanup of this problem at a later time.
> -Greg
>
> From 8c4f4748e8b683f5b4ea939295793421c0ab7b61 Mon Sep 17 00:00:00 2001
> From: Greg Farnum<gregory.farnum@dreamhost.com>
> Date: Wed, 7 Dec 2011 14:19:23 -0800
> Subject: [PATCH] mds: mark_disposable when closing a Client connection.
>
> This is causing issues since the Client's ack of the MClientSession
> is somehow not getting back to the MDS. We should make the
> Client/SimpleMessenger be better-behaved about shutdown, but for
> now this solution matches how we're working elsewhere in our codebase.
>
> Signed-off-by: Greg Farnum<gregory.farnum@dreamhost.com>
> ---
> src/mds/Server.cc | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/src/mds/Server.cc b/src/mds/Server.cc
> index a9ef64f..d44bd7e 100644
> --- a/src/mds/Server.cc
> +++ b/src/mds/Server.cc
> @@ -289,6 +289,7 @@ void Server::_session_logged(Session *session,
> uint64_t state_seq, bool open, ve
> // reset session
> mds->send_message_client(new
> MClientSession(CEPH_SESSION_CLOSE), session);
> mds->sessionmap.set_state(session, Session::STATE_CLOSED);
> + mds->messenger->mark_disposable(session->connection);
> session->clear();
> } else if (session->is_killing()) {
> // destroy session, close connection
>
prev parent reply other threads:[~2011-12-09 0:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-05 0:22 Client receives 'connection refused' only after heavy use Noah Watkins
2011-12-05 1:03 ` Noah Watkins
2011-12-05 4:47 ` Sage Weil
2011-12-05 6:22 ` Noah Watkins
2011-12-05 18:57 ` Noah Watkins
2011-12-05 19:03 ` Tommi Virtanen
2011-12-05 19:05 ` Noah Watkins
2011-12-05 19:11 ` Sage Weil
2011-12-05 19:36 ` Tommi Virtanen
2011-12-07 5:49 ` Gregory Farnum
2011-12-07 22:33 ` Gregory Farnum
2011-12-09 0:40 ` Noah Watkins [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EE158E8.8030603@cs.ucsc.edu \
--to=jayhawk@cs.ucsc.edu \
--cc=ceph-devel@vger.kernel.org \
--cc=gregory.farnum@dreamhost.com \
--cc=jayhawk@soe.ucsc.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox