Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1140531 - [DHT:REBALANCE]: xattrs set on the file during rebalance migration will be lost after migration is over
[DHT:REBALANCE]: xattrs set on the file during rebalance migration will be lo...
Status: CLOSED DUPLICATE of bug 1047481
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: distribute (Show other bugs)
3.0
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Nithya Balachandran
shylesh
dht-data-loss
: ZStream
Depends On: 1193636 1225839
Blocks: 1087818
  Show dependency treegraph
 
Reported: 2014-09-11 04:03 EDT by shylesh
Modified: 2015-05-28 06:17 EDT (History)
8 users (show)

See Also:
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 11:53:24 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description shylesh 2014-09-11 04:03:16 EDT
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 04:13:26 EDT
Created attachment 936420 [details]
mount logs with trace enabled
Comment 3 Sayan Saha 2014-09-12 15:56:22 EDT
Target 3.0.2
Comment 4 Shalaka 2014-09-20 07:07:57 EDT
Please review and sign-off edited doc text
Comment 5 Nithya Balachandran 2014-09-22 00:12:20 EDT
The doc text provided is fine.
Comment 10 Nithya Balachandran 2015-03-30 11:53:24 EDT

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