[Gluster-devel] client cannot reconnect

Emmanuel Dreyfus manu at netbsd.org
Tue Sep 25 10:05:58 UTC 2012


On Tue, Sep 25, 2012 at 04:16:03PM +0800, Jules Wang wrote:
>            if (priv->own_thread) {
>             /*
>              * Without this, reconnect (= disconnect + connect)
>              * won't work except by accident.
>              */
>             close(priv->sock);
>             priv->sock = -1;
>             ++(priv->socket_gen);
>         }

I removed the if (priv->own_thread) which does not exists on release-3.3
and made the operation unconditionnal. I also removed ++(priv->socket_gen);
for the same reason.

mount fails with a crash. Before the crash I get this:

[2012-09-25 12:00:07.521199] E [socket.c:1777:socket_event_handler]  0-socket: invalid argument: this->private
[2012-09-25 12:00:07.521237] I [socket.c:1805:socket_event_handler] 0-transport: disconnecting now
[2012-09-25 12:00:07.521265] E [event.c:250:event_unregister_poll] 0-poll: index not found for fd=-1 (idx_hint=3)
[2012-09-25 12:00:07.521298] E [socket.c:1777:socket_event_handler]  0-socket: invalid argument: this->private
[2012-09-25 12:00:07.521325] I [socket.c:1805:socket_event_handler] 0-transport: disconnecting now
[2012-09-25 12:00:07.521353] E [event.c:250:event_unregister_poll] 0-poll: index not found for fd=-1 (idx_hint=5)
[2012-09-25 12:00:07.521388] E [socket.c:1777:socket_event_handler]  0-socket: invalid argument: this->private
[2012-09-25 12:00:07.521415] I [socket.c:1805:socket_event_handler] 0-transport: disconnecting now
[2012-09-25 12:00:07.521442] E [event.c:250:event_unregister_poll] 0-poll: index not found for fd=-1 (idx_hint=3)
[2012-09-25 12:00:07.521474] E [socket.c:1777:socket_event_handler]  0-socket: invalid argument: this->private
(repeated hunderds of time)



-- 
Emmanuel Dreyfus
manu at netbsd.org




More information about the Gluster-devel mailing list