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:
REVIEW: http://review.gluster.org/12841 (glusterd: enable self-heal-daemon for distribute volumes) posted (#1) for review on master by Sakshi Bansal
REVIEW: http://review.gluster.org/12841 (glusterd: enable self-heal-daemon for distribute volumes) posted (#2) for review on master by Sakshi Bansal
REVIEW: http://review.gluster.org/12841 (glusterd: enable self-heal-daemon for distribute volumes) posted (#3) for review on master by Sakshi Bansal
REVIEW: http://review.gluster.org/12841 (glusterd: enable self-heal-daemon for distribute volume) posted (#4) for review on master by Sakshi Bansal
REVIEW: http://review.gluster.org/12841 (glusterd: enable self-heal-daemon for distribute volumes) posted (#5) for review on master by Sakshi Bansal
*** This bug has been marked as a duplicate of bug 1557435 ***