|
|
233933 |
From 99f86ae7d45667d86b1b6f9f9540ec2889c6c4ce Mon Sep 17 00:00:00 2001
|
|
|
233933 |
From: Ravishankar N <ravishankar@redhat.com>
|
|
|
233933 |
Date: Wed, 8 May 2019 04:51:27 -0400
|
|
|
233933 |
Subject: [PATCH 181/192] afr: log before attempting data self-heal.
|
|
|
233933 |
|
|
|
233933 |
Upstream patch: https://review.gluster.org/#/c/glusterfs/+/22685/
|
|
|
233933 |
|
|
|
233933 |
I was working on a blog about troubleshooting AFR issues and I wanted to copy
|
|
|
233933 |
the messages logged by self-heal for my blog. I then realized that AFR-v2 is not
|
|
|
233933 |
logging *before* attempting data heal while it logs it for metadata and entry
|
|
|
233933 |
heals.
|
|
|
233933 |
|
|
|
233933 |
I [MSGID: 108026] [afr-self-heal-entry.c:883:afr_selfheal_entry_do]
|
|
|
233933 |
0-testvol-replicate-0: performing entry selfheal on
|
|
|
233933 |
d120c0cf-6e87-454b-965b-0d83a4c752bb
|
|
|
233933 |
I [MSGID: 108026] [afr-self-heal-common.c:1741:afr_log_selfheal]
|
|
|
233933 |
0-testvol-replicate-0: Completed entry selfheal on
|
|
|
233933 |
d120c0cf-6e87-454b-965b-0d83a4c752bb. sources=[0] 2 sinks=1
|
|
|
233933 |
I [MSGID: 108026] [afr-self-heal-common.c:1741:afr_log_selfheal]
|
|
|
233933 |
0-testvol-replicate-0: Completed data selfheal on
|
|
|
233933 |
a9b5f183-21eb-4fb3-a342-287d3a7dddc5. sources=[0] 2 sinks=1
|
|
|
233933 |
I [MSGID: 108026] [afr-self-heal-metadata.c:52:__afr_selfheal_metadata_do]
|
|
|
233933 |
0-testvol-replicate-0: performing metadata selfheal on
|
|
|
233933 |
a9b5f183-21eb-4fb3-a342-287d3a7dddc5
|
|
|
233933 |
I [MSGID: 108026] [afr-self-heal-common.c:1741:afr_log_selfheal]
|
|
|
233933 |
0-testvol-replicate-0: Completed metadata selfheal on
|
|
|
233933 |
a9b5f183-21eb-4fb3-a342-287d3a7dddc5. sources=[0] 2 sinks=1
|
|
|
233933 |
|
|
|
233933 |
Adding it in this patch. Now there is a 'performing' and a corresponding
|
|
|
233933 |
'Completed' message for every type of heal.
|
|
|
233933 |
|
|
|
233933 |
BUG: 1710701
|
|
|
233933 |
Change-Id: I91e29dd05af1c78dbc447d1a02dda32b03d64aef
|
|
|
233933 |
fixes: bz#1710701
|
|
|
233933 |
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
|
|
|
233933 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/173108
|
|
|
233933 |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
233933 |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
233933 |
---
|
|
|
233933 |
xlators/cluster/afr/src/afr-self-heal-data.c | 3 +++
|
|
|
233933 |
1 file changed, 3 insertions(+)
|
|
|
233933 |
|
|
|
233933 |
diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c
|
|
|
233933 |
index 18a0334..cdff4a5 100644
|
|
|
233933 |
--- a/xlators/cluster/afr/src/afr-self-heal-data.c
|
|
|
233933 |
+++ b/xlators/cluster/afr/src/afr-self-heal-data.c
|
|
|
233933 |
@@ -324,6 +324,9 @@ afr_selfheal_data_do(call_frame_t *frame, xlator_t *this, fd_t *fd, int source,
|
|
|
233933 |
call_frame_t *iter_frame = NULL;
|
|
|
233933 |
unsigned char arbiter_sink_status = 0;
|
|
|
233933 |
|
|
|
233933 |
+ gf_msg(this->name, GF_LOG_INFO, 0, AFR_MSG_SELF_HEAL_INFO,
|
|
|
233933 |
+ "performing data selfheal on %s", uuid_utoa(fd->inode->gfid));
|
|
|
233933 |
+
|
|
|
233933 |
priv = this->private;
|
|
|
233933 |
if (priv->arbiter_count) {
|
|
|
233933 |
arbiter_sink_status = healed_sinks[ARBITER_BRICK_INDEX];
|
|
|
233933 |
--
|
|
|
233933 |
1.8.3.1
|
|
|
233933 |
|