<div dir="ltr"><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14px">Hi gluster-devel team,</div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14px"><br></div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14px">We are running a 2 replica volume in 2 servers. One of our service daemon open a file with &#39;flock&#39; in the volume. We can see every glusterfsd daemon open the replica files in its own server(in /proc/pid/fd). When we pull off the cable of one server about 10 minutes then re-plug in. We found that the glusterfsd open a &#39;NEW&#39; file descriptor while still holding the old one which is opened in the first file access. </span><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14px">
<br></div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14px">Then we stop our service daemon, but the glusterfsd(the re-plug cable one) only closes the new fd, leave the old fd open, we think that may be a fd leak issue. And we restart our service daemon. It flocked the same file, and get a flock failure. The errno is Resource Temporary Unavailable.</div>
<div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14px"><br></div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14px">However, this situation is not replay every time but often come out. We are still looking into the source code of glusterfsd, but it is not a easy job. So we want to look for some help in here. Here are our questions:</div>
<div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14px"><br></div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14px">1. Has this issue been solved? Or is it a known issue?</div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14px">
2. Does anyone know the file descriptor maintenance logic in glusterfsd(server-side)? When the fd will be closed or held?</div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14px"><br></div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14px">
Thank you very much.</div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14px"><br></div><div class="" style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14px"><div id=":26f" class="" tabindex="0">
<img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"><span style="color:rgb(136,136,136)">--</span><span style="color:rgb(136,136,136)"> </span></div><div dir="ltr" style="color:rgb(136,136,136)">
<div><font face="&#39;courier new&#39;, monospace">Best regards,</font></div><font face="&#39;courier new&#39;, monospace">Jaden Liang</font></div></div></div>