Bug 1190633
| Summary: | self-heal-algorithm with option "full" doesn't heal sparse files correctly | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Ravishankar N <ravishankar> |
| Component: | replicate | Assignee: | Ravishankar N <ravishankar> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.5.3 | CC: | bugs, gluster-bugs, lindsay.mathieson, pkarampu, ravishankar |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | glusterfs-3.5.4 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1166020 | Environment: | |
| Last Closed: | 2015-06-03 21:09:07 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: | 1166020 | ||
| Bug Blocks: | 1167012, 1179563, 1187547 | ||
|
Description
Ravishankar N
2015-02-09 10:15:47 UTC
REVIEW: http://review.gluster.org/9611 (afr: Don't write to sparse regions of sink.) posted (#1) for review on release-3.5 by Ravishankar N (ravishankar) REVIEW: http://review.gluster.org/9611 (afr: Don't write to sparse regions of sink.) posted (#2) for review on release-3.5 by Ravishankar N (ravishankar) REVIEW: http://review.gluster.org/9611 (afr: Don't write to sparse regions of sink.) posted (#3) for review on release-3.5 by Ravishankar N (ravishankar) REVIEW: http://review.gluster.org/9611 (afr: Don't write to sparse regions of sink.) posted (#4) for review on release-3.5 by Ravishankar N (ravishankar) COMMIT: http://review.gluster.org/9611 committed in release-3.5 by Niels de Vos (ndevos) ------ commit b6c37bd9954fb3b7aee79dbe453f875b70a03e71 Author: Ravishankar N <ravishankar> Date: Mon Feb 9 08:31:10 2015 +0530 afr: Don't write to sparse regions of sink. Corresponding afr-v2 fix: http://review.gluster.org/#/c/9480/ Problem: When data-self-heal-algorithm is set to 'full', shd just reads from source and writes to sink. If source file happened to be sparse (VM workloads), we end up actually writing 0s to the corresponding regions of the sink causing it to lose its sparseness. Fix: If the source file is sparse, and the data read from source and sink are both zeros for that range, skip writing that range to the sink. Change-Id: Iade957e4173c87e45a2881df501ba2ad3eb1a172 BUG: 1190633 Signed-off-by: Ravishankar N <ravishankar> Reviewed-on: http://review.gluster.org/9611 Reviewed-by: Pranith Kumar Karampuri <pkarampu> Reviewed-by: Krutika Dhananjay <kdhananj> Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Niels de Vos <ndevos> 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.5.4, please reopen this bug report. glusterfs-3.5.4 has been announced on the Gluster Packaging mailinglist [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://thread.gmane.org/gmane.comp.file-systems.gluster.packaging/2 [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user |