Bug 1279382 - DHT: ls is listing same file twice (file which is failed in between rebalance migration)
DHT: ls is listing same file twice (file which is failed in between rebalance...
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: distribute (Show other bugs)
Unspecified Unspecified
medium Severity unspecified
: ---
: ---
Assigned To: Nithya Balachandran
dht-rca-unknown, dht-failed-rebalance
: ZStream
Depends On:
  Show dependency treegraph
Reported: 2015-11-09 06:00 EST by RajeshReddy
Modified: 2018-03-27 04:43 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2018-03-27 04:43:23 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description RajeshReddy 2015-11-09 06:00:20 EST
Description of problem:
While during the file migration if rebalance fails in between file is getting displayed twice in the mount 

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

How reproducible:

Steps to Reproduce:
1. Create 1x3 and mount it on client using fuse 
2. From the mount point create directory and 20k files, add 3 more bricks to the volume
3.Run the rebalance and while rebalance is going on bring down two of the source bricks 
4. Few files on source brick have Sticky bit (T) and mount shows same file twice 

Actual results:

Expected results:
Mount should not show same file 

Additional info:

[root@rhs-client19 ~]# gluster vol info afr_1x3
Volume Name: afr_1x3
Type: Distributed-Replicate
Volume ID: 299e6362-1e11-4ea4-ad11-f7ba0fee3ca8
Status: Started
Number of Bricks: 2 x 3 = 6
Transport-type: tcp
Brick1: rhs-client19.lab.eng.blr.redhat.com:/rhs/brick3/afr1x3
Brick2: rhs-client18.lab.eng.blr.redhat.com:/rhs/brick3/afr1x3
Brick3: rhs-client19.lab.eng.blr.redhat.com:/rhs/brick3/afr1x3_1
Brick4: rhs-client18.lab.eng.blr.redhat.com:/rhs/brick4/afr_1x3
Brick5: rhs-client19.lab.eng.blr.redhat.com:/rhs/brick4/afr_1x3
Brick6: rhs-client18.lab.eng.blr.redhat.com:/rhs/brick4/afr_1x3_1
Options Reconfigured:
cluster.rebal-throttle: lazy
features.scrub: Active
features.bitrot: on
cluster.self-heal-daemon: off
performance.readdir-ahead: on

[root@rhs-client18 ~]# ls -lrth /rhs/brick*/afr1x3/data | grep T
-rw-r-Sr-T. 2 root root  5 Nov  6 16:16 file2505
-rw-r-Sr-T. 2 root root  5 Nov  6 16:16 file2506
-rw-r-Sr-T. 2 root root  5 Nov  6 16:16 file2508
-rw-r-Sr-T. 2 root root 27 Nov  6 17:17 file2502

[root@rhs-client19 ~]# ls -lrth /rhs/brick*/afr1x3/data | grep T
-rw-r-Sr-T. 2 root root  5 Nov  6 16:42 file2505
-rw-r-Sr-T. 2 root root  5 Nov  6 16:42 file2506
-rw-r-Sr-T. 2 root root  5 Nov  6 16:42 file2508
-rw-r-Sr-T. 2 root root 27 Nov  6 17:42 file2502

From the mount point
[root@dht-rhs-23 data]# ls | grep file2506
[root@dht-rhs-23 data]# ls | grep file2508
[root@dht-rhs-23 data]# ls | grep file2502
[root@dht-rhs-23 data]# ls | grep file2505
Comment 2 RajeshReddy 2015-11-09 07:46:09 EST
sos reports @ /home/repo/sosreports/bug.1279382 on rhsqe-repo.lab.eng.blr.redhat.com

Note You need to log in before you can comment on or make changes to this bug.