Bug 1287004

Summary: Making lookup-optimize on by default
Product: [Community] GlusterFS Reporter: Susant Kumar Palai <spalai>
Component: distributeAssignee: Nithya Balachandran <nbalacha>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: mainlineCC: bugs, kramdoss, nbalacha, rgowdapp, smohan
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: dht-lookup-optimize
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-08 04:42:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Susant Kumar Palai 2015-12-01 10:42:08 UTC
Description of problem:
Currently before creating a file dht will lookup on all subvols for this file, and when it fails with an ENOENT is when the create happens. Such negative lookups can be avoided by making lookup-optimize on, as the lookup goes only on the hashed subvol. However due to parent layout change the hashed subvol of some files can change without proper linkto file.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Create distributed volume
2. create some files and observer how lookup is going on all subvols.
3. Now set lookup-optimize on
4. Create a directory and some files inside it. Make sure there are some anomalies while creating the directory.
5. Trigger lookup selfheal on the directory.
6. Some of the files may now hash to other subvols.
7. If lookup-optimize is on it will not find these files.

Actual results:
Not listing some files.

Expected results:
Must list all files correctly.

Additional info:

Comment 1 Vijay Bellur 2015-12-02 06:20:29 UTC
REVIEW: http://review.gluster.org/12841 (glusterd: enable self-heal-daemon for distribute volumes) posted (#1) for review on master by Sakshi Bansal

Comment 2 Vijay Bellur 2015-12-02 15:09:33 UTC
REVIEW: http://review.gluster.org/12841 (glusterd: enable self-heal-daemon for distribute volumes) posted (#2) for review on master by Sakshi Bansal

Comment 3 Vijay Bellur 2015-12-08 05:44:21 UTC
REVIEW: http://review.gluster.org/12841 (glusterd: enable self-heal-daemon for distribute volumes) posted (#3) for review on master by Sakshi Bansal

Comment 4 Vijay Bellur 2015-12-09 03:58:35 UTC
REVIEW: http://review.gluster.org/12841 (glusterd: enable self-heal-daemon for distribute volume) posted (#4) for review on master by Sakshi Bansal

Comment 5 Vijay Bellur 2015-12-09 19:04:10 UTC
REVIEW: http://review.gluster.org/12841 (glusterd: enable self-heal-daemon for distribute volumes) posted (#5) for review on master by Sakshi Bansal

Comment 7 Nithya Balachandran 2018-10-08 04:42:02 UTC

*** This bug has been marked as a duplicate of bug 1557435 ***