e7a346
From 53649d22deea97c1604f5688ecab303eb46104d9 Mon Sep 17 00:00:00 2001
e7a346
From: Xavi Hernandez <xhernandez@redhat.com>
e7a346
Date: Wed, 28 Mar 2018 11:34:49 +0200
e7a346
Subject: [PATCH 210/212] cluster/ec: send list-node-uuids request to all
e7a346
 subvolumes
e7a346
e7a346
The xattr trusted.glusterfs.list-node-uuids was only sent to a single
e7a346
subvolume. This was returning null uuids from the other subvolumes as
e7a346
if they were down.
e7a346
e7a346
This fix forces that xattr to be requested from all subvolumes.
e7a346
e7a346
> Upstream patch: https://review.gluster.org/19784
e7a346
e7a346
Change-Id: If62eb39a6857258923ba625e153d4ad79018ea2f
e7a346
BUG: 1561733
e7a346
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
e7a346
Reviewed-on: https://code.engineering.redhat.com/gerrit/134066
e7a346
Tested-by: RHGS Build Bot <nigelb@redhat.com>
e7a346
Reviewed-by: Ashish Pandey <aspandey@redhat.com>
e7a346
---
e7a346
 tests/basic/ec/ec-rebalance.t | 1 +
e7a346
 xlators/cluster/ec/src/ec.c   | 2 +-
e7a346
 2 files changed, 2 insertions(+), 1 deletion(-)
e7a346
e7a346
diff --git a/tests/basic/ec/ec-rebalance.t b/tests/basic/ec/ec-rebalance.t
e7a346
index b5c3072..6cda3a3 100644
e7a346
--- a/tests/basic/ec/ec-rebalance.t
e7a346
+++ b/tests/basic/ec/ec-rebalance.t
e7a346
@@ -14,6 +14,7 @@ cleanup
e7a346
 TEST glusterd
e7a346
 TEST pidof glusterd
e7a346
 TEST $CLI volume create $V0 disperse 3 redundancy 1 $H0:$B0/${V0}{0..2}
e7a346
+TEST $CLI volume set $V0 lookup-optimize on
e7a346
 TEST $CLI volume start $V0
e7a346
 
e7a346
 #Mount the volume
e7a346
diff --git a/xlators/cluster/ec/src/ec.c b/xlators/cluster/ec/src/ec.c
e7a346
index 956b45b..eb91c4a 100644
e7a346
--- a/xlators/cluster/ec/src/ec.c
e7a346
+++ b/xlators/cluster/ec/src/ec.c
e7a346
@@ -881,7 +881,7 @@ ec_gf_getxattr (call_frame_t *frame, xlator_t *this, loc_t *loc,
e7a346
 
e7a346
         if (name &&
e7a346
             ((fnmatch (GF_XATTR_STIME_PATTERN, name, 0) == 0) ||
e7a346
-             (XATTR_IS_NODE_UUID(name)))) {
e7a346
+             XATTR_IS_NODE_UUID(name) || XATTR_IS_NODE_UUID_LIST(name))) {
e7a346
                 minimum = EC_MINIMUM_ALL;
e7a346
         }
e7a346
 
e7a346
-- 
e7a346
1.8.3.1
e7a346