Bug 1332790 - quota: client gets IO error instead of disk quota exceed when the limit is exceeded
Summary: quota: client gets IO error instead of disk quota exceed when the limit is ex...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: quota
Version: 3.7.11
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Raghavendra G
QA Contact:
URL:
Whiteboard:
Depends On: 1292020 1332789
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-04 05:52 UTC by Raghavendra G
Modified: 2016-06-28 12:16 UTC (History)
2 users (show)

Fixed In Version: glusterfs-3.7.12
Doc Type: Bug Fix
Doc Text:
Clone Of: 1332789
Environment:
Last Closed: 2016-06-28 12:16:31 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Raghavendra G 2016-05-04 05:52:56 UTC
+++ This bug was initially created as a clone of Bug #1332789 +++

+++ This bug was initially created as a clone of Bug #1292020 +++

Getting IO error instead of disk quota exceed when the limit is exceeded

# gluster volume create vol1 rh1:/var/opt/gluster/bricks/b1/dir
# gluster volume start vol1
# gluster volume quota vol1 enable
# gluster volume quota vol1 limit-usage / 1

# cd /mnt
# dd if=/dev/zero of=f1 bs=256k count=100
dd: writing `f1': Input/output error
dd: closing output file `f1': Input/output error

--- Additional comment from Vijay Bellur on 2015-12-16 04:29:52 EST ---

REVIEW: http://review.gluster.org/12978 (quota: success is returned when disk quota is exceeded) posted (#1) for review on master by Vijaikumar Mallikarjuna (vmallika)

--- Additional comment from Vijay Bellur on 2015-12-16 04:44:06 EST ---

REVIEW: http://review.gluster.org/12978 (quota: success is returned when disk quota is exceeded) posted (#2) for review on master by Vijaikumar Mallikarjuna (vmallika)

--- Additional comment from Vijay Bellur on 2015-12-16 04:48:20 EST ---

REVIEW: http://review.gluster.org/12978 (quota: success is returned when disk quota is exceeded) posted (#3) for review on master by Vijaikumar Mallikarjuna (vmallika)

--- Additional comment from Vijay Bellur on 2015-12-16 07:21:48 EST ---

REVIEW: http://review.gluster.org/12981 (quota: success is returned when disk quota is exceeded) posted (#1) for review on master by Vijaikumar Mallikarjuna (vmallika)

--- Additional comment from Vijay Bellur on 2015-12-16 07:25:07 EST ---

REVIEW: http://review.gluster.org/12981 (quota: success is returned when disk quota is exceeded) posted (#2) for review on master by Vijaikumar Mallikarjuna (vmallika)

--- Additional comment from Vijay Bellur on 2015-12-16 08:06:55 EST ---

REVIEW: http://review.gluster.org/12981 (quota: set op_errno when a partial write done because of exceeding limit) posted (#3) for review on master by Vijaikumar Mallikarjuna (vmallika)

--- Additional comment from Vijay Bellur on 2016-02-12 07:11:49 EST ---

REVIEW: http://review.gluster.org/13438 (performance/write-behind: guaranteed retry after a short write) posted (#1) for review on master by Raghavendra G (rgowdapp)

--- Additional comment from Mike McCune on 2016-03-28 19:44:20 EDT ---

This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

--- Additional comment from Vijay Bellur on 2016-04-06 22:46:39 EDT ---

REVIEW: http://review.gluster.org/13438 (performance/write-behind: guaranteed retry after a short write) posted (#2) for review on master by Vijaikumar Mallikarjuna (vmallika)

--- Additional comment from Vijay Bellur on 2016-05-03 23:27:05 EDT ---

REVIEW: http://review.gluster.org/13438 (performance/write-behind: guaranteed retry after a short write) posted (#3) for review on master by Raghavendra G (rgowdapp)

Comment 1 Vijay Bellur 2016-05-04 05:54:04 UTC
REVIEW: http://review.gluster.org/14196 (performance/write-behind: guaranteed retry after a short write) posted (#1) for review on release-3.7 by Raghavendra G (rgowdapp)

Comment 2 Vijay Bellur 2016-05-05 03:27:36 UTC
COMMIT: http://review.gluster.org/14196 committed in release-3.7 by Raghavendra G (rgowdapp) 
------
commit fee46d447321689ba059d548f62d7c3c06c24e08
Author: Raghavendra G <rgowdapp>
Date:   Fri Feb 12 17:17:30 2016 +0530

    performance/write-behind: guaranteed retry after a short write
    
    * Don't mark the request with a fake EIO after a short write.
    * retry the remaining buffer at least once before unwinding reply to
      application. This way we capture correct error from backend (ENOSPC,
      EDQUOT etc).
    
    Thanks to "Vijaikumar Mallikarjuna"<vmallika> for the test
    script.
    
    Change-Id: I73a18b39b661a7424db1a7855a980469a51da8f9
    BUG: 1332790
    Signed-off-by: Raghavendra G <rgowdapp>
    Reviewed-on: http://review.gluster.org/14196
    Smoke: Gluster Build System <jenkins.com>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.com>

Comment 3 Kaushal 2016-06-28 12:16:31 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.7.12, please open a new bug report.

glusterfs-3.7.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://www.gluster.org/pipermail/gluster-devel/2016-June/049918.html
[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.