Bug 1187547
Summary: | self-heal-algorithm with option "full" doesn't heal sparse files correctly | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Ravishankar N <ravishankar> |
Component: | replicate | Assignee: | bugs <bugs> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.6.1 | CC: | bugs, lindsay.mathieson, pkarampu, rabhat, ravishankar |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-v3.6.3 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1166020 | Environment: | |
Last Closed: | 2016-02-04 15:20:35 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, 1190633 | ||
Bug Blocks: | 1167012, 1179563, 1184460 |
Description
Ravishankar N
2015-01-30 12:08:07 UTC
REVIEW: http://review.gluster.org/9515 (afr: Don't write to sparse regions of sink.) posted (#1) for review on release-3.6 by Ravishankar N (ravishankar) COMMIT: http://review.gluster.org/9515 committed in release-3.6 by Raghavendra Bhat (raghavendra) ------ commit f397d7edb85c1e4b78c4cac176dc8a0afe8cf9a8 Author: Ravishankar N <ravishankar> Date: Fri Jan 23 11:12:54 2015 +0530 afr: Don't write to sparse regions of sink. Backport of http://review.gluster.org/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: Id23d953fe2c8c64cde5ce3530b52ef91a7583891 BUG: 1187547 Signed-off-by: Ravishankar N <ravishankar> Reviewed-on: http://review.gluster.org/9515 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu> Reviewed-by: Raghavendra Bhat <raghavendra> Lindsay, Want to share your experience with this build so that we can see if there is anything more we need to address before closing this issue for good? Pranith. 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-v3.6.3, please open a new bug report. glusterfs-v3.6.3 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-users/2015-April/021669.html [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user |