|
|
74b1de |
From 17940583c4d991a568582581f68dcbf08463ccaf Mon Sep 17 00:00:00 2001
|
|
|
74b1de |
From: Susant Palai <spalai@redhat.com>
|
|
|
74b1de |
Date: Tue, 16 Jul 2019 10:31:46 +0530
|
|
|
74b1de |
Subject: [PATCH 334/335] dht: log getxattr failure for node-uuid at "DEBUG"
|
|
|
74b1de |
|
|
|
74b1de |
There are two ways to fetch node-uuid information from dht.
|
|
|
74b1de |
|
|
|
74b1de |
1 - #define GF_XATTR_LIST_NODE_UUIDS_KEY "trusted.glusterfs.list-node-uuids"
|
|
|
74b1de |
This key is used by AFR.
|
|
|
74b1de |
|
|
|
74b1de |
2 - #define GF_REBAL_FIND_LOCAL_SUBVOL "glusterfs.find-local-subvol"
|
|
|
74b1de |
This key is used for non-afr volume type.
|
|
|
74b1de |
|
|
|
74b1de |
We do two getxattr operations. First on the #1 key followed by on #2 if
|
|
|
74b1de |
getxattr on #1 key fails.
|
|
|
74b1de |
|
|
|
74b1de |
Since the parent function "dht_init_local_subvols_and_nodeuuids" logs failure,
|
|
|
74b1de |
moving the log-level to DEBUG in dht_find_local_subvol_cbk.
|
|
|
74b1de |
|
|
|
74b1de |
>fixes: bz#1730175
|
|
|
74b1de |
>Change-Id: I4d88244dc26587b111ca5b00d4c00118efdaac14
|
|
|
74b1de |
>Signed-off-by: Susant Palai <spalai@redhat.com>
|
|
|
74b1de |
Upstream patch: https://review.gluster.org/#/c/glusterfs/+/23053/
|
|
|
74b1de |
|
|
|
74b1de |
BUG: 1727755
|
|
|
74b1de |
Change-Id: I4d88244dc26587b111ca5b00d4c00118efdaac14
|
|
|
74b1de |
Signed-off-by: Sunil Kumar Acharya <sheggodu@redhat.com>
|
|
|
74b1de |
Reviewed-on: https://code.engineering.redhat.com/gerrit/185876
|
|
|
74b1de |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
74b1de |
---
|
|
|
74b1de |
xlators/cluster/dht/src/dht-common.c | 7 +++++--
|
|
|
74b1de |
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
|
74b1de |
|
|
|
74b1de |
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
|
|
|
74b1de |
index 37952ba..d0b5287 100644
|
|
|
74b1de |
--- a/xlators/cluster/dht/src/dht-common.c
|
|
|
74b1de |
+++ b/xlators/cluster/dht/src/dht-common.c
|
|
|
74b1de |
@@ -4253,8 +4253,11 @@ dht_find_local_subvol_cbk(call_frame_t *frame, void *cookie, xlator_t *this,
|
|
|
74b1de |
local->op_ret = -1;
|
|
|
74b1de |
local->op_errno = op_errno;
|
|
|
74b1de |
UNLOCK(&frame->lock);
|
|
|
74b1de |
- gf_msg(this->name, GF_LOG_ERROR, op_errno, DHT_MSG_GET_XATTR_FAILED,
|
|
|
74b1de |
- "getxattr err for dir");
|
|
|
74b1de |
+ if (op_errno == ENODATA)
|
|
|
74b1de |
+ gf_msg_debug(this->name, 0, "failed to get node-uuid");
|
|
|
74b1de |
+ else
|
|
|
74b1de |
+ gf_msg(this->name, GF_LOG_ERROR, op_errno,
|
|
|
74b1de |
+ DHT_MSG_GET_XATTR_FAILED, "failed to get node-uuid");
|
|
|
74b1de |
goto post_unlock;
|
|
|
74b1de |
}
|
|
|
74b1de |
|
|
|
74b1de |
--
|
|
|
74b1de |
1.8.3.1
|
|
|
74b1de |
|