Bug 1258782 - DHT: After deletion of all files, still "ls" shows few files
Summary: DHT: After deletion of all files, still "ls" shows few files
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: distribute
Version: rhgs-3.1
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: ---
Assignee: Nithya Balachandran
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard: triaged, rebalance-readdir-race
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-01 09:38 UTC by RajeshReddy
Modified: 2018-02-23 07:12 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-23 07:12:02 UTC
Embargoed:


Attachments (Terms of Use)

Description RajeshReddy 2015-09-01 09:38:02 UTC
Document URL: 
==================
DHT: After deletion of all files, still "ls" shows few files 

Steps:
=============
1. Create distributed volume (3 bricks) and mount it on client using FUSE 
2. On the client create 50k files 
3. Remove one of the brick, and as part of the removal of brick, re-balance triggered and while files are migrating run rm -rf * on mount though command exit without any error but ls on the same direcotry shows files 

Expected Result:
====================
After removal of files, all files needs to be deleted 

Info
======
[root@rhs-client9 dht7]# gluster vol status dht7
Status of volume: dht7
Gluster process                             TCP Port  RDMA Port  Online  Pid
------------------------------------------------------------------------------
Brick rhs-client9.lab.eng.blr.redhat.com:/r
hs/brick4/dht7                              49173     0          Y       11879
Brick rhs-client4.lab.eng.blr.redhat.com:/r
hs/brick4/dht7                              49172     0          Y       5051 
Brick rhs-client39.lab.eng.blr.redhat.com:/
rhs/brick4/dht7                             49162     0          Y       28520
NFS Server on localhost                     2049      0          Y       12217
NFS Server on rhs-client4.lab.eng.blr.redha
t.com                                       2049      0          Y       5564 
NFS Server on rhs-client39.lab.eng.blr.redh
at.com                                      2049      0          Y       28636
 
Task Status of Volume dht7
------------------------------------------------------------------------------
Task                 : Remove brick        
ID                   : 714849d5-ee98-4833-952e-af4509d4198e
Removed bricks:     
rhs-client4.lab.eng.blr.redhat.com:/rhs/brick4/dht7
Status               : completed           

On the client
=================

[root@scarface data]# ls | wc -l
1641

Attaching the sos reports

Comment 2 Sakshi 2015-09-23 05:25:46 UTC
It is possible that the files which are remaining are the ones that were migrated from the brick that you are removing. However the files were migrated only after the rm -rf had completed reading from the remaining subvols. Hence some of the migrated files may not be a part of the readdirp that happened as a part of rm -rf and hence did not get deleted.


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