diff options
author | Ravishankar N <ravishankar@redhat.com> | 2020-02-11 14:34:48 +0530 |
---|---|---|
committer | Rinku Kothiya <rkothiya@redhat.com> | 2020-02-25 17:07:04 +0000 |
commit | 2c5b724c0071ae184dd4bfd441d7346106387ed5 (patch) | |
tree | 0883a63febbf0e89a6ec5213b810cefe11e0dd8a /xlators/performance | |
parent | 9542e65cd342b4fb579dcaa60d31819a3fc1271a (diff) |
afr: prevent spurious entry heals leading to gfid split-brain
Problem:
In a hyperconverged setup with granular-entry-heal enabled, if a file is
recreated while one of the bricks is down, and an index heal is triggered
(with the brick still down), entry-self heal was doing a spurious heal
with just the 2 good bricks. It was doing a post-op leading to removal
of the filename from .glusterfs/indices/entry-changes as well as
erroneous setting of afr xattrs on the parent. When the brick came up,
the xattrs were cleared, resulting in the renamed file not getting
healed and leading to gfid split-brain and EIO on the mount.
Fix:
Proceed with entry heal only when shd can connect to all bricks of the replica,
just like in data and metadata heal.
fixes: bz#1804591
Change-Id: I916ae26ad1fabf259bc6362da52d433b7223b17e
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
(cherry picked from commit 06453d77d056fbaa393a137ca277a20e38d2f67e)
Diffstat (limited to 'xlators/performance')
0 files changed, 0 insertions, 0 deletions