Bug 1243391 - fail the fops if inode context get fails
Summary: fail the fops if inode context get fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: bitrot
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Raghavendra Bhat
QA Contact:
bugs@gluster.org
URL:
Whiteboard:
Depends On:
Blocks: 1255351
TreeView+ depends on / blocked
 
Reported: 2015-07-15 11:24 UTC by Raghavendra Bhat
Modified: 2016-06-16 13:24 UTC (History)
1 user (show)

Fixed In Version: glusterfs-3.8rc2
Clone Of:
: 1255351 (view as bug list)
Environment:
Last Closed: 2016-06-16 13:24:08 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Raghavendra Bhat 2015-07-15 11:24:20 UTC
Description of problem:

Some fops such as readv, writev, open etc checks if the object is bad or not by getting the info from the inode context. If the inode_context_get operation fails, then bit-rot-stub still allows the fops to go through.

It should fail the fop if inode context could not be obtained.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Anand Avati 2015-07-15 11:25:57 UTC
REVIEW: http://review.gluster.org/11449 (features/bit-rot-stub: fail the fop if inode context get fails) posted (#4) for review on master by Raghavendra Bhat (raghavendra)

Comment 2 Anand Avati 2015-07-24 12:51:12 UTC
REVIEW: http://review.gluster.org/11449 (features/bit-rot-stub: fail the fop if inode context get fails) posted (#5) for review on master by Raghavendra Bhat (raghavendra)

Comment 3 Anand Avati 2015-08-05 07:33:04 UTC
REVIEW: http://review.gluster.org/11449 (features/bit-rot-stub: fail the fop if inode context get fails) posted (#6) for review on master by Raghavendra Bhat (raghavendra)

Comment 4 Anand Avati 2015-08-12 04:18:05 UTC
COMMIT: http://review.gluster.org/11449 committed in master by Venky Shankar (vshankar) 
------
commit 7b44b6c16fb538e5f15a255182de4dee781994a0
Author: Raghavendra Bhat <raghavendra>
Date:   Sat Jun 27 13:17:32 2015 +0530

    features/bit-rot-stub: fail the fop if inode context get fails
    
    In stub, for fops like readv, writev etc, if the the object is bad, then the fop
    is denied. But for checking if the object is bad inode context should be
    checked. Now, if the inode context is not there, then the fop is allowed to
    continue. This patch fixes it and the fop is unwound with an error, if the inode
    context is not found.
    
    Change-Id: I5ea4d4fc1a91387f7f9d13ca8cb43c88429f02b0
    BUG: 1243391
    Signed-off-by: Raghavendra Bhat <raghavendra>
    Reviewed-on: http://review.gluster.org/11449
    Tested-by: NetBSD Build System <jenkins.org>
    Reviewed-by: Venky Shankar <vshankar>

Comment 5 Nagaprasad Sathyanarayana 2015-10-25 15:21:23 UTC
Fix for this BZ is already present in a GlusterFS release. You can find clone of this BZ, fixed in a GlusterFS release and closed. Hence closing this mainline BZ as well.

Comment 6 Niels de Vos 2016-06-16 13:24:08 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.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


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