[Gluster-devel] client cannot reconnect

Jules Wang lancelotds at 163.com
Wed Sep 26 02:08:21 UTC 2012


hi,Emmanuel:
    We add the same two lines as you add. As I`m not quite understand the code, I suggest you confirm these two lines do cause the problem.
    I will let you know once we have the same problem. :-)


Best Regards.
Jules Wang.


At 2012-09-25 18:05:58,"Emmanuel Dreyfus" <manu at netbsd.org> wrote:
>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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20120926/18b588ef/attachment-0001.html>


More information about the Gluster-devel mailing list