Bug 1140531 - [DHT:REBALANCE]: xattrs set on the file during rebalance migration will be lost after migration is over
Summary: [DHT:REBALANCE]: xattrs set on the file during rebalance migration will be lo...
Keywords:
Status: CLOSED DUPLICATE of bug 1047481
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: distribute
Version: rhgs-3.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Nithya Balachandran
QA Contact: shylesh
URL:
Whiteboard: dht-data-loss
Depends On: 1193636 1225839
Blocks: 1087818
TreeView+ depends on / blocked
 
Reported: 2014-09-11 08:03 UTC by shylesh
Modified: 2015-05-28 10:17 UTC (History)
8 users (show)

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.
Clone Of:
: 1193636 (view as bug list)
Environment:
Last Closed: 2015-03-30 15:53:24 UTC
Embargoed:


Attachments (Terms of Use)
mount logs with trace enabled (3.06 MB, application/octet-stream)
2014-09-11 08:13 UTC, shylesh
no flags Details

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 ***


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