Bug 1225940
Summary: | DHT: lookup-unhashed feature breaks runtime compatibility with older client versions | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Shyamsundar <srangana> |
Component: | distribute | Assignee: | Shyamsundar <srangana> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.7.0 | CC: | bugs, gluster-bugs, jdarcy, nbalacha, rgowdapp, sabansal, spalai, vbellur |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-3.7.2 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1222126 | Environment: | |
Last Closed: | 2015-06-20 09:48:57 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: | 1222126 | ||
Bug Blocks: | 1227206 |
Description
Shyamsundar
2015-05-28 13:45:56 UTC
REVIEW: http://review.gluster.org/10976 (dht: Add lookup-optimize configuration option for DHT) posted (#2) for review on release-3.7 by Shyamsundar Ranganathan (srangana) REVIEW: http://review.gluster.org/10976 (dht: Add lookup-optimize configuration option for DHT) posted (#3) for review on release-3.7 by Shyamsundar Ranganathan (srangana) The required changes to fix this bug have not made it into glusterfs-3.7.1. This bug is now getting tracked for glusterfs-3.7.2. REVIEW: http://review.gluster.org/10976 (dht: Add lookup-optimize configuration option for DHT) posted (#4) for review on release-3.7 by Shyamsundar Ranganathan (srangana) REVIEW: http://review.gluster.org/10976 (dht: Add lookup-optimize configuration option for DHT) posted (#5) for review on release-3.7 by Shyamsundar Ranganathan (srangana) COMMIT: http://review.gluster.org/10976 committed in release-3.7 by Raghavendra G (rgowdapp) ------ commit bedda7c258e000d94b09599340400955e4b8079f Author: Shyam <srangana> Date: Fri May 15 15:50:42 2015 -0400 dht: Add lookup-optimize configuration option for DHT Currently with commit 4eaaf5 a mixed version cluster would have issues if lookup-uhashed is set to auto, as older clients would fail to validate the layouts if newer clients (i.e 3.7 or upwards) create directories. Also, in a mixed version cluster rebalance daemon would set commit hash for some subvolumes and not for the others. This commit fixes this problem by moving the enabling of the functionality introduced in the above mentioned commit to a new dht option. This option also has a op_version of 3_7_1 thereby preventing it from being set in a mixed version cluster. It brings in the following changes, - Option can be set only if min version of the cluster is 3.7.1 or more - Rebalance and mkdir update the layout with the commit hashes only if this option is set, hence ensuring rebalance works in a mixed version cluster, and also directories created by newer clients do not cause layout errors when read by older clients - This option also supersedes lookup-unhased, to enable the optimization for lookups more deterministic and not conflict with lookup-unhashed settings. Option added is cluster.lookup-optimize, which is a boolean. Usage: # gluster volume set VOLNAME cluster.lookup-optimize on Change-Id: Ifd1d4ce3f6438fcbcd60ffbfdbfb647355ea1ae0 BUG: 1225940 Signed-off-by: Shyam <srangana> Reviewed-on: http://review.gluster.org/10976 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: N Balachandran <nbalacha> Reviewed-by: Raghavendra G <rgowdapp> Tested-by: Raghavendra G <rgowdapp> *** Bug 1221747 has been marked as a duplicate of this bug. *** 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.2, please reopen this bug report. glusterfs-3.7.2 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://www.gluster.org/pipermail/packaging/2015-June/000006.html [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user |