<div dir="ltr"><div>Hi,<br><br></div>I am new to gluster and would appreciate if someone could help me to understand what may be wrong.<br><div><div><br></div><div>We have a small filesystem (currently - just one brick) and on the same client node I have two processes. One is writing files to a specific glusterfs share and another one is periodically scanning that directory and loading all the files from there. Files are small, hundreds of bytes at most. There are not too many files written, maybe one in a couple of seconds. <br><br></div><div>Quite often (about 20% of the cases) the &quot;consumer&quot; process fails to open the file written by the &quot;producer&quot;. The producer does create a temporary file first and then renames it to its final name. Both processes are Java apps.<br><br></div><div>Producer writes the file as follows:<br><br>4957  18:15:37 open(&quot;/share/fileXYZ.settings&quot;, O_WRONLY|O_CREAT|<br>O_TRUNC, 0666) = 245 &lt;0.001671&gt;<br><br></div><div>The consumer does this:<br><br>2030  04:26:11 stat(&quot;/share/fileXYZ.settings.settings&quot;, {st_mode=S_IFREG|0644, st_size=556, ...}) = 0 &lt;0.000006&gt;<br>2030  04:26:11 access(&quot;/share/fileXYZ.settings.settings&quot;, R_OK) = 0 &lt;0.000006&gt;<br>2030  04:26:11 open(&quot;/share/fileXYZ.settings.settings&quot;, O_RDONLY) = -1 EACCES (Permission denied) &lt;0.000258&gt;<br><br></div><div>Interestingly enough, if the consumer retries then the file most likely will be readable. Very strange - especially considering that access() returns 0 just before open().<br><br></div><div>It does look like the problem of this specific filesystem - if the same app is used against a local directory than it works flawlessly.<br></div><div><br></div><div><br clear="all"><br>-- <br><div class="gmail_signature">Nikolai Grigoriev<br><br></div>
</div></div></div>