Bug 1006354 - No error is reported when files are in extended-attribute split-brain state.
No error is reported when files are in extended-attribute split-brain state.
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: glusterfs (Show other bugs)
Unspecified Unspecified
medium Severity high
: ---
: RHGS 2.1.2
Assigned To: Ravishankar N
: ZStream
Depends On:
Blocks: 1010834
  Show dependency treegraph
Reported: 2013-09-10 09:36 EDT by spandura
Modified: 2015-05-15 14:16 EDT (History)
7 users (show)

See Also:
Fixed In Version: glusterfs-
Doc Type: Bug Fix
Doc Text:
Previously, files were not checked if they were in a split-brain state before proceeding with certain file operations. As a result no errors were reported on these file operations. With this update, if a file is in split-brain state, the file operation returns I/O error (EIO) to the application.
Story Points: ---
Clone Of:
: 1010834 (view as bug list)
Last Closed: 2014-02-25 02:38:09 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:0208 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #2 2014-02-25 07:20:30 EST

  None (edit)
Description spandura 2013-09-10 09:36:26 EDT
Description of problem:
Getting extended attributes of files which are in extended-attibute split-brain succeeds . Extended attributes are read from any of the brick in the replica pair. 

Version-Release number of selected component (if applicable):
glusterfs built on Sep  8 2013 13:20:26

How reproducible:

Steps to Reproduce:
1. Create 1 x 2 replicate volume. Set "self-heal-daemon" to "off". Start the volume. 

2. Create a fuse mount. Create a file from fuse mount. "touch a"

3. Bring down brick-1.

4. Set an extended attribute on the file from mount point: 
setfattr -n trusted.mdata -v "testing_1" a

5. Bring back brick-1. Immediately brink down brick-2. 

6.  Set an extended attribute on the file from mount point: 
setfattr -n trusted.mdata -v "testing_2" a

7. Bring back brick-2. 

8. From mount point get the extended attribute set. "getfattr -d -e hex -m . a"

Actual results:
root@darrel [Sep-10-2013-13:32:23] >touch a
root@darrel [Sep-10-2013-13:32:25] >setfattr -n trusted.mdata -v "testing_1" a
root@darrel [Sep-10-2013-13:33:02] >setfattr -n trusted.mdata -v "testing_2" a
root@darrel [Sep-10-2013-13:33:24] >getfattr -d -e hex -m . a
# file: a

Expected results:
Error message to report split-brain state . 

Brick-1 extended attribute of file a:
root@fan [Sep-10-2013-13:33:38] >getfattr -d -e hex -m . /rhs/bricks/vol_dis_1_rep_2_b0/a
getfattr: Removing leading '/' from absolute path names
# file: rhs/bricks/vol_dis_1_rep_2_b0/a

Brick-2 extended attribute of file a:
root@mia [Sep-10-2013-13:33:38] >getfattr -d -e hex -m . /rhs/bricks/vol_dis_1_rep_2_b1/a
getfattr: Removing leading '/' from absolute path names
# file: rhs/bricks/vol_dis_1_rep_2_b1/a
Comment 2 Ravishankar N 2013-10-17 03:15:57 EDT
Downstream patch @ https://code.engineering.redhat.com/gerrit/#/c/14169/
Comment 3 spandura 2013-12-29 23:38:24 EST
Verified this fix on the build "glusterfs built on Dec 19 2013 12:20:16" with the steps specified in the description. Bug is fixed. Moving the bug to verified state.
Comment 4 Pavithra 2014-01-02 23:46:05 EST
Can you please verify this doc text and ensure its technically correct?
Comment 5 Ravishankar N 2014-01-03 01:40:54 EST
Comment 7 errata-xmlrpc 2014-02-25 02:38:09 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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