Red Hat Bugzilla – Bug 1281230
dht must avoid fresh lookups when a single replica pair goes offline
Last modified: 2016-07-31 21:22:43 EDT
Description of problem:
Currently even if a single replica pair goes down, there will be fresh lookups for all files and directories thought there is no layout changes. Hence DHT must avoid fresh lookups when bricks go down.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a 2x2 dist-rep volume, mount the volume and create few directories.
2. Bring one the replica pair down.
3. Perform lookup on the directories
Fresh lookups on all the directories
Fresh lookup must be avoided, and read xattr from the other pair
REVIEW: http://review.gluster.org/12573 (afr: replica pair going offline does not require CHILD_MODIFIED event) posted (#1) for review on master by Sakshi Bansal
REVIEW: http://review.gluster.org/12573 (afr: replica pair going offline does not require CHILD_MODIFIED event) posted (#2) for review on master by Sakshi Bansal
COMMIT: http://review.gluster.org/12573 committed in master by Jeff Darcy (email@example.com)
Author: Sakshi Bansal <firstname.lastname@example.org>
Date: Thu Nov 12 12:28:53 2015 +0530
afr: replica pair going offline does not require CHILD_MODIFIED event
As a part of CHILD_MODIFIED event DHT forgets the current layout and
performs fresh lookup. However this is not required when a replica pair
goes offline as the xattrs can be read from other replica pairs. Hence
setting different event to handle replica pair going down.
Signed-off-by: Sakshi Bansal <email@example.com>
Reviewed-by: Ravishankar N <firstname.lastname@example.org>
Reviewed-by: Susant Palai <email@example.com>
Tested-by: NetBSD Build System <firstname.lastname@example.org>
Tested-by: Gluster Build System <email@example.com>
Reviewed-by: Jeff Darcy <firstname.lastname@example.org>
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.8.0, please open a new bug report.
glusterfs-3.8.0 has been announced on the Gluster mailinglists , packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist  and the update infrastructure for your distribution.