Bug 1287004 - Making lookup-optimize on by default
Making lookup-optimize on by default
Status: NEW
Product: GlusterFS
Classification: Community
Component: distribute (Show other bugs)
mainline
x86_64 Unspecified
medium Severity medium
: ---
: ---
Assigned To: Nithya Balachandran
dht-lookup-optimize, dht-3.2.0-stretch
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-12-01 05:42 EST by Susant Kumar Palai
Modified: 2016-09-20 00:30 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Susant Kumar Palai 2015-12-01 05:42:08 EST
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 01:20:29 EST
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 10:09:33 EST
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 00:44:21 EST
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-08 22:58:35 EST
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 14:04:10 EST
REVIEW: http://review.gluster.org/12841 (glusterd: enable self-heal-daemon for distribute volumes) posted (#5) for review on master by Sakshi Bansal

Note You need to log in before you can comment on or make changes to this bug.