Bug 1344277
Summary: | [disperse] mkdir after re balance give Input/Output Error | |||
---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Ashish Pandey <aspandey> | |
Component: | disperse | Assignee: | Ashish Pandey <aspandey> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | ||
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | mainline | CC: | aspandey, bperkins, bugs | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | 3.10.0 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1344278 1344594 1344595 (view as bug list) | Environment: | ||
Last Closed: | 2017-03-08 08:31:27 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1344278, 1344594, 1344595 |
Description
Ashish Pandey
2016-06-09 10:19:50 UTC
RCA - In case of mkdir failure, dht expects error information so that it can act accordingly. In this case, after re balance, layout has been changed. mkdir with old layout returns EIO. EC gets this error in cbk->xdata but does not pass it back to dht. In this case dht will not be able to take corrective action. REVIEW: http://review.gluster.org/14679 (cluster/ec: Pass xdata to dht in case of error) posted (#1) for review on master by Ashish Pandey (aspandey) REVIEW: http://review.gluster.org/14679 (cluster/ec: Pass xdata to dht in case of error) posted (#2) for review on master by Ashish Pandey (aspandey) COMMIT: http://review.gluster.org/14679 committed in master by Xavier Hernandez (xhernandez) ------ commit a837357c5c7873bf19155e76bf6c251fa799a605 Author: Ashish Pandey <aspandey> Date: Thu Jun 9 16:19:37 2016 +0530 cluster/ec: Pass xdata to dht in case of error Problem: In case of mkdir failure, dht expects error information so that it can act accordingly. Aftre adding bricks and re balance, layout gets changed. Fop "mkdir" with old layout returns EIO. EC gets this error in xdata but does not pass it back to dht. In this case dht will not be able to take corrective action. Solution: Return xdata back to dht Change-Id: I24def8038e6880607689b7b046dc6428f564c6ab BUG: 1344277 Signed-off-by: Ashish Pandey <aspandey> Reviewed-on: http://review.gluster.org/14679 Reviewed-by: Pranith Kumar Karampuri <pkarampu> Reviewed-by: Xavier Hernandez <xhernandez> Tested-by: Atin Mukherjee <amukherj> Smoke: Gluster Build System <jenkins.com> CentOS-regression: Gluster Build System <jenkins.com> NetBSD-regression: NetBSD Build System <jenkins.org> Please reply (in Gerrit and here) to the comment in http://review.gluster.org/14690: xlators/cluster/ec/src/ec-dir-write.c Line 594: Other operations(fsync,writev....) have similar problems, modify together? If this indeed is an issue, send a follow-up patch to address it there too. we shall send a separate patch that addresses rest of the fops to reduce the amount of testing that we need to do to qualify this patch. |