Bug 1483828

Summary: DHT: readdirp fails to read some directories.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Nithya Balachandran <nbalacha>
Component: distributeAssignee: Nithya Balachandran <nbalacha>
Status: CLOSED ERRATA QA Contact: Prasad Desala <tdesala>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.3CC: amukherj, bugs, kramdoss, nbalacha, rgowdapp, rhinduja, rhs-bugs, sabansal, sheggodu, smohan, storage-qa-internal
Target Milestone: ---Keywords: Triaged
Target Release: RHGS 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: dht-directory-consistency, dht-must-fix, rebase
Fixed In Version: glusterfs-3.12.2-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1248393 Environment:
Last Closed: 2018-09-04 06:35:11 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: 1248393    
Bug Blocks: 1266359, 1483402, 1503134    

Comment 6 Prasad Desala 2018-08-06 11:55:31 UTC
Reproduced this issue by following below steps and verified the same on 3.12.2-15.el7rhgs.x86_64.

Steps:
1) Created a distributed-replicated volume and start it.
2) FUSE mounted it on a client.
3) From mount point created the data set as below,
a) Created a dir named 'master' on mount point and created 8000 empty dirs inside it (dir1 to dir8000)
b) then inside each dir1, created 1000 directories with 1000 files in each directory.
c) Repeated b on dir2..dir10
4) Changed the rebalance throttle to lazy using below command,
"gluster volume set distrep rebal-throttle lazy"
5) Added many bricks.
6) Start rebalance with force option
7) list the directories on master.

In older build, not all directories are listed during rebalance. However, could see all the directories at the end of rebalance.

In the fix build, I could list all the directories and subdirs.

Hence, moving this BZ to Verified.

Comment 8 errata-xmlrpc 2018-09-04 06:35:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2607