Bug 1294051 - Though files are in split-brain able to perform writes to the file
Though files are in split-brain able to perform writes to the file
Status: POST
Product: GlusterFS
Classification: Community
Component: replicate (Show other bugs)
mainline
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Pranith Kumar K
: Reopened, ZStream
Depends On: 1277924
Blocks: 1315140
  Show dependency treegraph
 
Reported: 2015-12-24 04:38 EST by Pranith Kumar K
Modified: 2017-09-06 09:39 EDT (History)
4 users (show)

See Also:
Fixed In Version: glusterfs-3.8rc2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1277924
: 1315140 (view as bug list)
Environment:
Last Closed: 2016-06-16 09:52:16 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)

  None (edit)
Comment 1 Pranith Kumar K 2015-12-24 04:39:35 EST
Description of problem:
==================
Though files are in split-brain able to perform writes to the file

How reproducible:
Always

Steps to Reproduce:
=============
1. Create 1x2 volume and mount it on client using fuse and disable self-heal-daemon
2. From the mount create few files and do continuous IO's to file and while IO is going on perfrom pkill gluster on node1 
3. After some time bring back the node1 and perfrom pkill on node2 (while IO is going on to the same files)
4. Now files are in split-brian and gluster vol heal info is shwoing the same 
5. From the mount do append to the file using echo "data" >> file (Don't give full file path )

Actual results:


Expected results:
===============
IO should fail and if i disable performance.write-behind getting IO error while writing to the file
Comment 2 Vijay Bellur 2015-12-24 04:52:21 EST
REVIEW: http://review.gluster.org/13075 (cluster/afr: Fail open on split-brain) posted (#1) for review on master by Pranith Kumar Karampuri (pkarampu@redhat.com)
Comment 3 Vijay Bellur 2015-12-24 04:52:24 EST
REVIEW: http://review.gluster.org/13076 (performance/open-behind: Fix fdctx dump NULL dereference) posted (#1) for review on master by Pranith Kumar Karampuri (pkarampu@redhat.com)
Comment 4 Vijay Bellur 2016-01-05 23:55:38 EST
REVIEW: http://review.gluster.org/13076 (performance/open-behind: Fix fdctx dump NULL dereference) posted (#2) for review on master by Pranith Kumar Karampuri (pkarampu@redhat.com)
Comment 5 Vijay Bellur 2016-01-06 00:03:16 EST
REVIEW: http://review.gluster.org/13075 (cluster/afr: Fail open on split-brain) posted (#2) for review on master by Pranith Kumar Karampuri (pkarampu@redhat.com)
Comment 6 Vijay Bellur 2016-01-06 04:37:33 EST
REVIEW: http://review.gluster.org/13075 (cluster/afr: Fail open on split-brain) posted (#3) for review on master by Pranith Kumar Karampuri (pkarampu@redhat.com)
Comment 7 Vijay Bellur 2016-01-06 04:42:48 EST
REVIEW: http://review.gluster.org/13075 (cluster/afr: Fail open on split-brain) posted (#4) for review on master by Pranith Kumar Karampuri (pkarampu@redhat.com)
Comment 8 Vijay Bellur 2016-01-13 07:00:11 EST
REVIEW: http://review.gluster.org/13076 (performance/open-behind: Fix fdctx dump NULL dereference) posted (#3) for review on master by Pranith Kumar Karampuri (pkarampu@redhat.com)
Comment 9 Vijay Bellur 2016-01-27 04:18:29 EST
REVIEW: http://review.gluster.org/13075 (cluster/afr: Fail open on split-brain) posted (#5) for review on master by Pranith Kumar Karampuri (pkarampu@redhat.com)
Comment 10 Vijay Bellur 2016-01-27 04:53:03 EST
REVIEW: http://review.gluster.org/13076 (performance/open-behind: Fix fdctx dump NULL dereference) posted (#4) for review on master by Pranith Kumar Karampuri (pkarampu@redhat.com)
Comment 11 Vijay Bellur 2016-01-29 01:41:52 EST
REVIEW: http://review.gluster.org/13076 (performance/open-behind: Fix fdctx dump NULL dereference) posted (#5) for review on master by Pranith Kumar Karampuri (pkarampu@redhat.com)
Comment 12 Vijay Bellur 2016-02-08 09:05:41 EST
REVIEW: http://review.gluster.org/13075 (cluster/afr: Fail open on split-brain) posted (#6) for review on master by Pranith Kumar Karampuri (pkarampu@redhat.com)
Comment 13 Vijay Bellur 2016-02-09 00:25:01 EST
COMMIT: http://review.gluster.org/13076 committed in master by Raghavendra G (rgowdapp@redhat.com) 
------
commit dd8306b2f2e38f5de1386461d7f33ac0b64f2886
Author: Pranith Kumar K <pkarampu@redhat.com>
Date:   Thu Dec 24 14:29:33 2015 +0530

    performance/open-behind: Fix fdctx dump NULL dereference
    
    Also printing flags correctly in statedump now
    
    Change-Id: Ibfdd74aab5643ecc47d0a88f109d5d1050685f5a
    BUG: 1294051
    Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
    Reviewed-on: http://review.gluster.org/13076
    Smoke: Gluster Build System <jenkins@build.gluster.com>
    NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
    Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Comment 14 Mike McCune 2016-03-28 19:18:47 EDT
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune@redhat.com with any questions
Comment 15 Niels de Vos 2016-06-16 09:52:16 EDT
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.8.0, please open a new bug report.

glusterfs-3.8.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://blog.gluster.org/2016/06/glusterfs-3-8-released/
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user
Comment 16 Vijay Bellur 2016-06-24 07:44:43 EDT
REVIEW: http://review.gluster.org/13075 (cluster/afr: Fail open on split-brain) posted (#7) for review on master by Pranith Kumar Karampuri (pkarampu@redhat.com)
Comment 17 Worker Ant 2017-09-04 08:45:58 EDT
REVIEW: https://review.gluster.org/13075 (cluster/afr: Fail open on split-brain) posted (#8) for review on master by Pranith Kumar Karampuri (pkarampu@redhat.com)
Comment 18 Worker Ant 2017-09-06 08:09:46 EDT
REVIEW: https://review.gluster.org/13075 (cluster/afr: Fail open on split-brain) posted (#9) for review on master by Pranith Kumar Karampuri (pkarampu@redhat.com)
Comment 19 Worker Ant 2017-09-06 08:48:59 EDT
REVIEW: https://review.gluster.org/13075 (cluster/afr: Fail open on split-brain) posted (#10) for review on master by Pranith Kumar Karampuri (pkarampu@redhat.com)
Comment 20 Worker Ant 2017-09-06 09:39:44 EDT
REVIEW: https://review.gluster.org/13075 (cluster/afr: Fail open on split-brain) posted (#11) for review on master by Pranith Kumar Karampuri (pkarampu@redhat.com)

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