<div>Hi ,</div><div><br></div><div>Im running gluster 3.1.4 .</div><div><br></div><div>[glusterfs 3.1.4 built on May  5 2011 06:52:24</div><div>Repository revision: v3.1.4]</div><div><br></div><div>Assumed test scenario: [Might not be correct but the test python script gives a definite repro]</div>
<div>    1. create few files , write few thousands of lines of data in these files.</div>
<div>    2. now create another file in the same dir and Rename or move the new file with the old file name.</div><div>    3. Try these for few number of files.</div><div>    4  After few iterations opening these files with any application will give &quot;Permission denied.&quot;</div>

<div><br></div><div>In my test i was using python apis - os.rename and file open apis.</div><div>This is very easy to reproduce with the attached python script </div>
<div><br></div><div><b>Note</b>: before running the script create the required directories mentioned in the script as well as create each input directories with atleast 1500 files.</div><div><br></div><div>The issue seems to be related to DHT. When I delete the link files with sticky bit ------T from the backend after the application returns &quot;permission denied&quot;, the file becomes accessible.</div>

<div><br></div><div>logs:</div><div><br></div><div><div>[2011-05-20 10:02:41.821605] I [client-handshake.c:1014:select_server_supported_programs] 1-172.26.98.57-1: Using Program GlusterFS-3.1.0, Num (1298437), Version (310)</div>

<div>[2011-05-20 10:02:41.821696] I [client-handshake.c:852:client_setvolume_cbk] 1-172.26.98.56-1: Connected to <a href="http://172.26.98.56:6996" target="_blank">172.26.98.56:6996</a>, attached to remote volume &#39;brickex&#39;.</div>

<div>[2011-05-20 10:02:41.821814] I [client-handshake.c:1014:select_server_supported_programs] 1-172.26.98.59-1: Using Program GlusterFS-3.1.0, Num (1298437), Version (310)</div><div>[2011-05-20 10:02:41.821852] I [client-handshake.c:852:client_setvolume_cbk] 1-172.26.98.57-1: Connected to <a href="http://172.26.98.57:6996" target="_blank">172.26.98.57:6996</a>, attached to remote volume &#39;brickex&#39;.</div>

<div>[2011-05-20 10:02:41.821863] I [afr-common.c:2552:afr_notify] 1-replicate-2: Subvolume &#39;172.26.98.57-1&#39; came back up; going online.</div><div>[2011-05-20 10:02:41.824742] I [fuse-bridge.c:3316:fuse_graph_setup] 0-fuse: switched graph to 1</div>

<div>[2011-05-20 10:02:41.824784] I [client-handshake.c:852:client_setvolume_cbk] 1-172.26.98.59-1: Connected to <a href="http://172.26.98.59:6996" target="_blank">172.26.98.59:6996</a>, attached to remote volume &#39;brickex&#39;.</div>

<div>[2011-05-20 10:02:42.832141] I [afr-common.c:819:afr_fresh_lookup_cbk] 1-replicate-1: added root inode</div><div>[2011-05-20 10:02:42.832656] I [afr-common.c:819:afr_fresh_lookup_cbk] 1-replicate-2: added root inode</div>

<div>[2011-05-20 10:02:42.847511] I [afr-common.c:716:afr_lookup_done] 1-replicate-2: background  data self-heal triggered. path: /logs/admin_scheduler_lock</div><div>[2011-05-20 10:02:42.849009] I [afr-self-heal-common.c:1527:afr_self_heal_completion_cbk] 1-replicate-2: background  data self-heal completed on /logs/admin_scheduler_lock</div>

<div>[2011-05-20 10:06:41.459183] W [fuse-bridge.c:582:fuse_fd_cbk] 0-glusterfs-fuse: 333260: OPEN() /testdir/input11.idx =&gt; -1 (Invalid argument)</div><div>[2011-05-20 10:06:41.462296] W [fuse-bridge.c:582:fuse_fd_cbk] 0-glusterfs-fuse: 333267: OPEN() /testdir/input13.idx =&gt; -1 (Invalid argument)</div>

<div>[2011-05-20 10:06:41.464954] W [fuse-bridge.c:582:fuse_fd_cbk] 0-glusterfs-fuse: 333274: OPEN() /testdir/input15.idx =&gt; -1 (Invalid argument)</div><div>[2011-05-20 10:06:41.465279] W [fuse-bridge.c:582:fuse_fd_cbk] 0-glusterfs-fuse: 333275: OPEN() /testdir/input16.idx =&gt; -1 (Invalid argument)</div>

<div>[2011-05-20 10:06:41.465586] W [fuse-bridge.c:582:fuse_fd_cbk] 0-glusterfs-fuse: 333276: OPEN() /testdir/input17.idx =&gt; -1 (Invalid argument)</div><div>[2011-05-20 10:06:41.465915] W [fuse-bridge.c:582:fuse_fd_cbk] 0-glusterfs-fuse: 333277: OPEN() /testdir/input18.idx =&gt; -1 (Invalid argument)</div>

<div>[2011-05-20 10:06:41.480038] W [fuse-bridge.c:582:fuse_fd_cbk] 0-glusterfs-fuse: 333319: OPEN() /testdir/input11.idx =&gt; -1 (Invalid argument)</div></div><div><br></div><div>tx</div><div>Vikas</div>