Bug 1598720 - afr: fix bug-1363721.t failure
Summary: afr: fix bug-1363721.t failure
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: replicate
Version: 3.12
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ravishankar N
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-06 10:04 UTC by Ravishankar N
Modified: 2018-08-20 07:01 UTC (History)
1 user (show)

Fixed In Version: glusterfs-3.12.12
Clone Of:
Environment:
Last Closed: 2018-08-20 07:01:24 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Ravishankar N 2018-07-06 10:04:18 UTC
afr: fix bug-1363721.t failure

    Backport of https://review.gluster.org/#/c/20036/

    Problem:
    In the .t, when the only good brick was brought down, writes on the fd were
    still succeeding on the bad bricks. The inflight split-brain check was
    marking the write as failure but since the write succeeded on all the
    bad bricks, afr_txn_nothing_failed() was set to true and we were
    unwinding writev with success to DHT and then catching the failure in
    post-op in the background.

    Fix:
    Don't wind the FOP phase if the write_subvol (which is populated with readable
    subvols obtained in pre-op cbk) does not have at least 1 good brick which was up
    when the transaction started.

    Change-Id: I4a1fef4569609c31cffeaef591a64c10870e8d0b
    Signed-off-by: Ravishankar N <ravishankar>

Comment 1 Worker Ant 2018-07-06 10:06:19 UTC
REVIEW: https://review.gluster.org/20471 (afr: fix bug-1363721.t failure) posted (#1) for review on release-3.12 by Ravishankar N

Comment 2 Worker Ant 2018-07-07 04:02:54 UTC
REVIEW: https://review.gluster.org/20471 (afr: fix bug-1363721.t failure) posted (#2) for review on release-3.12 by Ravishankar N

Comment 3 Worker Ant 2018-07-09 10:04:29 UTC
REVIEW: https://review.gluster.org/20471 (afr: fix bug-1363721.t failure) posted (#3) for review on release-3.12 by Ravishankar N

Comment 4 Worker Ant 2018-07-11 14:03:51 UTC
COMMIT: https://review.gluster.org/20471 committed in release-3.12 by "Ravishankar N" <ravishankar> with a commit message- afr: fix bug-1363721.t failure

Backport of https://review.gluster.org/#/c/20036/
Note:  We need to update inode context's write_subvol even in case of compound
fops. This is not there in master and 4.1 since compound FOPS was removed in it.

Problem:
In the .t, when the only good brick was brought down, writes on the fd were
still succeeding on the bad bricks. The inflight split-brain check was
marking the write as failure but since the write succeeded on all the
bad bricks, afr_txn_nothing_failed() was set to true and we were
unwinding writev with success to DHT and then catching the failure in
post-op in the background.

Fix:
Don't wind the FOP phase if the write_subvol (which is populated with readable
subvols obtained in pre-op cbk) does not have at least 1 good brick which was up
when the transaction started.

Change-Id: I4a1fef4569609c31cffeaef591a64c10870e8d0b
BUG: 1598720
Signed-off-by: Ravishankar N <ravishankar>

Comment 5 Jiffin 2018-08-20 07:01:24 UTC
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.12.12, please open a new bug report.

glusterfs-3.12.12 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] https://lists.gluster.org/pipermail/announce/2018-July/000105.html
[2] https://www.gluster.org/pipermail/gluster-users/


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