|
|
d84cf8 |
From 1370db202a2a60810409f74c390448bf8fbd6998 Mon Sep 17 00:00:00 2001
|
|
|
d84cf8 |
From: Barak Sason Rofman <bsasonro@redhat.com>
|
|
|
d84cf8 |
Date: Sun, 9 Feb 2020 15:09:30 +0200
|
|
|
d84cf8 |
Subject: [PATCH 429/449] dht/rebalance - fixing failure occurace due to
|
|
|
d84cf8 |
rebalance stop
|
|
|
d84cf8 |
|
|
|
d84cf8 |
Probelm description:
|
|
|
d84cf8 |
When topping rebalance, the following error messages appear in the
|
|
|
d84cf8 |
rebalance log file:
|
|
|
d84cf8 |
[2020-01-28 14:31:42.452070] W [dht-rebalance.c:3447:gf_defrag_process_dir] 0-distrep-dht: Found error from gf_defrag_get_entry
|
|
|
d84cf8 |
[2020-01-28 14:31:42.452764] E [MSGID: 109111] [dht-rebalance.c:3971:gf_defrag_fix_layout] 0-distrep-dht: gf_defrag_process_dir failed for directory: /0/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31
|
|
|
d84cf8 |
[2020-01-28 14:31:42.453498] E [MSGID: 109016] [dht-rebalance.c:3906:gf_defrag_fix_layout] 0-distrep-dht: Fix layout failed for /0/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30
|
|
|
d84cf8 |
|
|
|
d84cf8 |
In order to avoid seing these error messages, a modification to the
|
|
|
d84cf8 |
error handling mechanism has been made.
|
|
|
d84cf8 |
In addition, several log messages had been added in order to improve debugging efficiency
|
|
|
d84cf8 |
|
|
|
d84cf8 |
backport of https://review.gluster.org/#/c/glusterfs/+/24103/
|
|
|
d84cf8 |
>fixes: bz#1800956
|
|
|
d84cf8 |
>Change-Id: Ifc82dae79ab3da9fe22ee25088a2a6b855afcfcf
|
|
|
d84cf8 |
>Signed-off-by: Barak Sason Rofman <bsasonro@redhat.com>
|
|
|
d84cf8 |
|
|
|
d84cf8 |
BUG: 1286171
|
|
|
d84cf8 |
Change-Id: Ifc82dae79ab3da9fe22ee25088a2a6b855afcfcf
|
|
|
d84cf8 |
Signed-off-by: Barak Sason Rofman <bsasonro@redhat.com>
|
|
|
d84cf8 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/202562
|
|
|
d84cf8 |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
d84cf8 |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
d84cf8 |
---
|
|
|
d84cf8 |
xlators/cluster/dht/src/dht-rebalance.c | 8 ++++++++
|
|
|
d84cf8 |
1 file changed, 8 insertions(+)
|
|
|
d84cf8 |
|
|
|
d84cf8 |
diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c
|
|
|
d84cf8 |
index 8f31dca..88b6b54 100644
|
|
|
d84cf8 |
--- a/xlators/cluster/dht/src/dht-rebalance.c
|
|
|
d84cf8 |
+++ b/xlators/cluster/dht/src/dht-rebalance.c
|
|
|
d84cf8 |
@@ -3479,6 +3479,10 @@ gf_defrag_process_dir(xlator_t *this, gf_defrag_info_t *defrag, loc_t *loc,
|
|
|
d84cf8 |
migrate_data, dir_dfmeta, xattr_req,
|
|
|
d84cf8 |
&should_commit_hash, perrno);
|
|
|
d84cf8 |
|
|
|
d84cf8 |
+ if (defrag->defrag_status == GF_DEFRAG_STATUS_STOPPED) {
|
|
|
d84cf8 |
+ goto out;
|
|
|
d84cf8 |
+ }
|
|
|
d84cf8 |
+
|
|
|
d84cf8 |
if (ret) {
|
|
|
d84cf8 |
gf_log(this->name, GF_LOG_WARNING,
|
|
|
d84cf8 |
"Found "
|
|
|
d84cf8 |
@@ -3935,6 +3939,10 @@ gf_defrag_fix_layout(xlator_t *this, gf_defrag_info_t *defrag, loc_t *loc,
|
|
|
d84cf8 |
ret = gf_defrag_fix_layout(this, defrag, &entry_loc, fix_layout,
|
|
|
d84cf8 |
migrate_data);
|
|
|
d84cf8 |
|
|
|
d84cf8 |
+ if (defrag->defrag_status == GF_DEFRAG_STATUS_STOPPED) {
|
|
|
d84cf8 |
+ goto out;
|
|
|
d84cf8 |
+ }
|
|
|
d84cf8 |
+
|
|
|
d84cf8 |
if (ret && ret != 2) {
|
|
|
d84cf8 |
gf_msg(this->name, GF_LOG_ERROR, 0, DHT_MSG_LAYOUT_FIX_FAILED,
|
|
|
d84cf8 |
"Fix layout failed for %s", entry_loc.path);
|
|
|
d84cf8 |
--
|
|
|
d84cf8 |
1.8.3.1
|
|
|
d84cf8 |
|