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

bugzilla at redhat.com bugzilla at redhat.com
Tue Jun 2 10:03:13 UTC 2015


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



--- Comment #6 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/10797 committed in master by Raghavendra G
(rgowdapp at redhat.com) 
------
commit 9f29401791ad374015c3d0927b7cf967d66471a6
Author: Shyam <srangana at redhat.com>
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 at redhat.com>
    Reviewed-on: http://review.gluster.org/10797
    Tested-by: NetBSD Build System <jenkins at build.gluster.org>
    Reviewed-by: Kaushal M <kaushal at redhat.com>
    Reviewed-by: Raghavendra G <rgowdapp at redhat.com>
    Tested-by: Raghavendra G <rgowdapp at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=gXXsjiiA84&a=cc_unsubscribe


More information about the Bugs mailing list