[Bugs] [Bug 1225940] New: DHT: lookup-unhashed feature breaks runtime compatibility with older client versions

bugzilla at redhat.com bugzilla at redhat.com
Thu May 28 13:45:56 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1225940

            Bug ID: 1225940
           Summary: DHT: lookup-unhashed feature breaks runtime
                    compatibility with older client versions
           Product: GlusterFS
           Version: 3.7.0
         Component: distribute
          Severity: urgent
          Assignee: bugs at gluster.org
          Reporter: srangana at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com,
                    jdarcy at redhat.com, nbalacha at redhat.com,
                    rgowdapp at redhat.com, sabansal at redhat.com,
                    spalai at redhat.com, vbellur at redhat.com
        Depends On: 1222126
            Blocks: 1221747, 1222053



+++ This bug was initially created as a clone of Bug #1222126 +++

+++ This bug was initially created as a clone of Bug #1221747 +++

Description of problem:
With the feature http://review.gluster.org/#/c/7702/ the on disk layout would
now carry 0 in the first 4 bytes of the xattr trusted.glusterfs.dht. In
previous revisions this was set to 1 and the DHT code does a strict check on
the same.

As a result lookups would fail to read and throw layout errors, when older
clients are used against a 3.7 volume.

Version-Release number of selected component (if applicable):
3.7

How reproducible:
Always

Steps to Reproduce:
1. Access a gluster volume using client bits from 3.7
2. Create a directory
3. Access the created directory from a client using 3.6 client bits

Actual results:
Step 3 reports layout inconsistencies

Expected results:
Step 3 should not report layout inconsistencies

Additional info:
Fixing this has a few parts to it as follows,
- Do not set layout xattr with the commit-hash unless lookup-unhashed is set to
auto
- Do not allow older clients to connect if the above option is set
- Warn the administrator that setting lookup-unhashed to auto would cause older
clients to not function well with the volume

--- Additional comment from Anand Avati on 2015-05-15 16:02:21 EDT ---

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 at redhat.com)

--- Additional comment from Anand Avati on 2015-05-20 16:37:46 EDT ---

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 at redhat.com)

--- Additional comment from Anand Avati on 2015-05-22 09:59:24 EDT ---

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 at redhat.com)

--- Additional comment from Anand Avati on 2015-05-22 15:11:53 EDT ---

REVIEW: http://review.gluster.org/10797 (dht: Add lookup-optimize configuration
option for DHT) posted (#5) for review on master by Shyamsundar Ranganathan
(srangana at redhat.com)

--- Additional comment from Anand Avati on 2015-05-28 00:19:06 EDT ---

REVIEW: http://review.gluster.org/10797 (dht: Add lookup-optimize configuration
option for DHT) posted (#6) for review on master by Raghavendra G
(rgowdapp at redhat.com)


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1221747
[Bug 1221747] DHT: lookup-unhashed feature breaks runtime compatibility
with older client versions
https://bugzilla.redhat.com/show_bug.cgi?id=1222053
[Bug 1222053] DHT: lookup-unhashed feature breaks runtime compatibility
with older client versions
https://bugzilla.redhat.com/show_bug.cgi?id=1222126
[Bug 1222126] DHT: lookup-unhashed feature breaks runtime compatibility
with older client versions
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list