Bug 1140531

Summary: [DHT:REBALANCE]: xattrs set on the file during rebalance migration will be lost after migration is over
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: shylesh <shmohan>
Component: distributeAssignee: Nithya Balachandran <nbalacha>
Status: CLOSED DUPLICATE QA Contact: shylesh <shmohan>
Severity: medium Docs Contact:
Priority: medium    
Version: rhgs-3.0CC: nbalacha, nsathyan, sasundar, sharne, ssaha, ssamanta, surs, vagarwal
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: dht-data-loss
Fixed In Version: Doc Type: Known Issue
Doc Text:
Extended attributes set on a file while it is being migrated during a rebalance operation are lost. Workaround (if any): Reset the extended attributes on the file once the migration is complete.
Story Points: ---
Clone Of:
: 1193636 (view as bug list) Environment:
Last Closed: 2015-03-30 15:53:24 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: 1193636, 1225839    
Bug Blocks: 1087818    
Attachments:
Description Flags
mount logs with trace enabled none

Description shylesh 2014-09-11 08:03:16 UTC
Description of problem:
setting xattr on a file while its in progress, once the migration is over all the user set xattrs will be lost

Version-Release number of selected component (if applicable):
3.6.0.28-1.el6rhs.x86_64

How reproducible:
always

Steps to Reproduce:
1.created a 54 brick dist-rep volume
2.created a file GGG of size 3GB
3.rename the file to something else so that triggering rebalance moves this file
4. mv GGG BBB
5. start rebalance force
gluster v start rebalance <vol> force
6. while the migration is in progress set some xattrs using setfattr
7. once the migration is over get the xattr


Actual results:


Expected results:


Additional info:

Before migration
====================
[root@localhost mnt]# setfattr -n trusted.testattr -v "GLUSTER" BBB ; getfattr -n trusted.testattr BBB
# file: BBB
trusted.testattr="GLUSTER"

[root@localhost mnt]# ll
total 3145737
drwxr-xr-x 2 root root        162 Sep 10 15:09 2
-rw-r-Sr-T 1 root root 3221225522 Sep 11 03:06 BBB
-rw-r--r-- 1 root root         24 Sep 10 15:12 f1
-rwxr-xr-x 1 root root       8139 Sep 10 15:11 slow

During migration
=================
[root@localhost mnt]# getfattr -n trusted.testattr BBB
# file: BBB
trusted.testattr="GLUSTER"

after migration
==============
[root@localhost mnt]# getfattr -n trusted.testattr BBB
BBB: trusted.testattr: No such attribute

Comment 2 shylesh 2014-09-11 08:13:26 UTC
Created attachment 936420 [details]
mount logs with trace enabled

Comment 3 Sayan Saha 2014-09-12 19:56:22 UTC
Target 3.0.2

Comment 4 Shalaka 2014-09-20 11:07:57 UTC
Please review and sign-off edited doc text

Comment 5 Nithya Balachandran 2014-09-22 04:12:20 UTC
The doc text provided is fine.

Comment 10 Nithya Balachandran 2015-03-30 15:53:24 UTC

*** This bug has been marked as a duplicate of bug 1047481 ***