Bug 1221100

Summary: Disperse volume: Directory became stale while renaming files in it.
Product: [Community] GlusterFS Reporter: Bhaskarakiran <byarlaga>
Component: disperseAssignee: Ashish Pandey <aspandey>
Status: CLOSED WORKSFORME QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: aspandey, bugs, byarlaga, gluster-bugs, mzywusko, pkarampu
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1224200 (view as bug list) Environment:
Last Closed: 2015-08-04 04:04:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1186580, 1224200    
Attachments:
Description Flags
client fuse mount log none

Description Bhaskarakiran 2015-05-13 09:41:41 UTC
Created attachment 1024978 [details]
client fuse mount log

Description of problem:
======================
Directory has become stale while renaming files in it. Created 2000 files and renamed 1000 of it. Only 164 has succeeded while the remaining failed. Accessing the directory gives input/output error. This is on fuse mount while the same directory can be accessed from NFS mount.

[root@rhs-client29 fuse]# ls -ltrh
ls: cannot access renames: Input/output error
total 128K
???????????   ? ?    ?       ?            ? renames
drwxr-xr-x.   3 root root   24 May 13 11:52 tarball
drwxr-xr-x.   3 root root   15 May 13 14:49 iozone
drwxr-xr-x.   2 root root    6 May 13 14:57 linux
drwxr-xr-x. 132 root root 8.0K May 13 15:01 files
drwxr-xr-x.  56 root root 8.0K May 13 15:02 dirs
[root@rhs-client29 fuse]# 

Version-Release number of selected component (if applicable):
=============================================================

[root@rhs-client29 fuse]# gluster --version
glusterfs 3.7.0beta2 built on May 11 2015 01:27:46
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU General Public License.
[root@rhs-client29 fuse]# 


How reproducible:
================
100%

Steps to Reproduce:
1. Create a 1x(8+4) disperse volume and fuse mount on the client.
2. Create 2000 files in a directory and rename 1000 in parallel

Actual results:
Input/Output error and stale entries

Expected results:
Renames should succeed

Additional info:
===============
client fuse log will be attached.

Comment 1 Bhaskarakiran 2015-05-18 06:51:21 UTC
This is seen on the latest 3.7.0.2 RHGS build too.