[Gluster-devel] client cannot reconnect

Jules Wang lancelotds at 163.com
Tue Sep 25 08:16:03 UTC 2012


hi, Emmanuel:
     If you are using glusterfs 3.3,  this patch http://review.gluster.com/#patch,sidebyside,362,16,rpc/rpc-transport/socket/src/socket.c
 and the following code in the patch will be helpful:
           if (priv->own_thread) {
            /*
             * Without this, reconnect (= disconnect + connect)
             * won't work except by accident.
             */
            close(priv->sock);
            priv->sock = -1;
            ++(priv->socket_gen);
        }


    Take a try, good luck.


Best Regards.
Jules Wang.

At 2012-09-25 12:35:16,"Emmanuel Dreyfus" <manu at netbsd.org> wrote:
>Emmanuel Dreyfus <manu at netbsd.org> wrote:
>
>> That bug is not that isolated. I reproduced it after a few days of
>> building like explained below. 
>
>And I got it again, when accessing the same file. It takes hours, but it
>seems I can reproduce it.
>
>-- 
>Emmanuel Dreyfus
>http://hcpnet.free.fr/pubz
>manu at netbsd.org
>
>_______________________________________________
>Gluster-devel mailing list
>Gluster-devel at nongnu.org
>https://lists.nongnu.org/mailman/listinfo/gluster-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20120925/fd40a0bf/attachment-0001.html>


More information about the Gluster-devel mailing list