Bug 1222126
| 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: | mainline | CC: | bugs, gluster-bugs, jdarcy, nbalacha, rgowdapp, sabansal, spalai, vbellur | |
| Target Milestone: | --- | Keywords: | Reopened | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | glusterfs-3.8rc2 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | 1221747 | |||
| : | 1225940 (view as bug list) | Environment: | ||
| Last Closed: | 2016-06-16 13:02:03 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: | 1221747, 1222053, 1225940 | |||
|
Description
Shyamsundar
2015-05-15 20:00:40 UTC
REVIEW: http://review.gluster.org/10797 (dht: Change lookup-unhashed 'auto' to a new option) posted (#1) for review on master by Shyamsundar Ranganathan (srangana) REVIEW: http://review.gluster.org/10797 (dht: Change lookup-unhashed 'auto' to a new option) posted (#2) for review on master by Shyamsundar Ranganathan (srangana) REVIEW: http://review.gluster.org/10797 (dht: Change lookup-unhashed 'auto' to a new option) posted (#4) for review on master by Shyamsundar Ranganathan (srangana) REVIEW: http://review.gluster.org/10797 (dht: Add lookup-optimize configuration option for DHT) posted (#5) for review on master by Shyamsundar Ranganathan (srangana) REVIEW: http://review.gluster.org/10797 (dht: Add lookup-optimize configuration option for DHT) posted (#6) for review on master by Raghavendra G (rgowdapp) COMMIT: http://review.gluster.org/10797 committed in master by Raghavendra G (rgowdapp) ------ commit 9f29401791ad374015c3d0927b7cf967d66471a6 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: 1222126 Signed-off-by: Shyam <srangana> Reviewed-on: http://review.gluster.org/10797 Tested-by: NetBSD Build System <jenkins.org> Reviewed-by: Kaushal M <kaushal> Reviewed-by: Raghavendra G <rgowdapp> Tested-by: Raghavendra G <rgowdapp> Fix for this BZ is already present in a GlusterFS release. You can find clone of this BZ, fixed in a GlusterFS release and closed. Hence closing this mainline BZ as well. 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.8.0, please open a new bug report. glusterfs-3.8.0 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] http://blog.gluster.org/2016/06/glusterfs-3-8-released/ [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user |