Bug 763297 (GLUSTER-1565)

Summary: deleting files after dht rebalance
Product: [Community] GlusterFS Reporter: Lakshmipathi G <lakshmipathi>
Component: distributeAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: low    
Version: 3.1-alphaCC: gluster-bugs, vijay, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTP Mount Type: fuse
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Lakshmipathi G 2010-09-08 07:14:37 UTC
Created a simple 2 server dht setup. mounted & created files at client.
added new brick and started "rebalance" , files are distributed across 3 bricks.

While trying to remove all files (rm -rf /mnt/*) - few files are not removed.

in the backend running ls shows -

server#ls -l 
---------T 1 root root 0 Sep  8 02:52 14938
---------T 1 root root 0 Sep  8 02:52 14940
---------T 1 root root 0 Sep  8 02:52 14944
---------T 1 root root 0 Sep  8 02:52 14945
---------T 1 root root 0 Sep  8 02:52 14947
---------T 1 root root 0 Sep  8 02:52 14948

Comment 1 Lakshmipathi G 2010-09-09 03:49:43 UTC
checked with 3.1.0qa19, unable to reproduce this issue.

Comment 2 Lakshmipathi G 2010-09-15 04:43:30 UTC
update with 3.1.0qa22 - 
in 4dht cluster 

client#touch 1..20000

remove a brick -
now do 
client#rm -rf * 
client#ls 
show files.
server1#ls -l
-rw-r--r-- 1 root root 0 Sep 15 03:29 file9979
-rw-r--r-- 1 root root 0 Sep 15 03:29 file9980
-rw-r--r-- 1 root root 0 Sep 15 03:29 file9981
-rw-r--r-- 1 root root 0 Sep 15 03:29 file9987
-rw-r--r-- 1 root root 0 Sep 15 03:29 file9992
-rw-r--r-- 1 root root 0 Sep 15 03:29 file9993
-rw-r--r-- 1 root root 0 Sep 15 03:29 file9997

server2#ls -l 
-rw-r--r-- 1 root root 0 Sep 15 03:27 file708
---------T 1 root root 0 Sep 15 03:32 file71
---------T 1 root root 0 Sep 15 03:32 file710
---------T 1 root root 0 Sep 15 03:32 file711
---------T 1 root root 0 Sep 15 03:32 file714
---------T 1 root root 0 Sep 15 03:32 file717
---------T 1 root root 0 Sep 15 03:32 file718
---------T 1 root root 0 Sep 15 03:32 file721
-rw-r--r-- 1 root root 0 Sep 15 03:27 file723
---------T 1 root root 0 Sep 15 03:32 file724
-rw-r--r-- 1 root root 0 Sep 15 03:27 file725
---------T 1 root root 0 Sep 15 03:32 file726
---------T 1 root root 0 Sep 15 03:32 file727
---------T 1 root root 0 Sep 15 03:32 file729
-rw-r--r-- 1 root root 0 Sep 15 03:27 file73
---------T 1 root root 0 Sep 15 03:32 file730
-rw-r--r-- 1 root root 0 Sep 15 03:27 file731
---------T 1 root root 0 Sep 15 03:32 file733
---------T 1 root root 0 Sep 15 03:32 file734
---------T 1 root root 0 Sep 15 03:32 file75
-rw-r--r-- 1 root root 0 Sep 15 03:27 file80
---------T 1 root root 0 Sep 15 03:32 file86
-rw-r--r-- 1 root root 0 Sep 15 03:27 file87
---------T 1 root root 0 Sep 15 03:32 file9
-rw-r--r-- 1 root root 0 Sep 15 03:27 file93
-rw-r--r-- 1 root root 0 Sep 15 03:27 file97

Comment 3 Vijay Bellur 2010-09-22 12:23:04 UTC
PATCH: http://patches.gluster.com/patch/4931 in master (distribute: in linkfile creation check for valid gfid in inode)