Description of problem: ======================= On FUSE mount seeing lot of linkto files after rebalance. Version-Release number of selected component (if applicable): 3.8.4-22.el7rhgs.x86_64 How reproducible: ================= 1/1 Steps to Reproduce: =================== 1) Create a distributed replicate volume and start it. 2) Set the below options to enable parallel -readdirp gluster volume set <VOLNAME> performance.parallel-readdir on gluster volume set <VOLNAME> rda-cache-limit 10MB 3) Fuse mount the volume on multiple clients. 4) Perform below tasks simultaneously from multiple clients, a) From client-1, touch --> for i in {1..20000};do touch f$i;done b) From client-2, create hard links for the created files , for i in {1..20000};do ln f$i fl$i;done c) From client-3, change the permissions for the created files, for i in {1..20000};do chmod 660 f$i;done d) From client-4, do a continuous lookup from two terminals. 5) While the tasks in step-4 are in progress, add few bricks to the volume and start rebalance. Wait till step-4 and step-5 completes. Actual results: =============== After rebalance, when listed the files on the mount point we are seeing lot of linkto files. Expected results: ================= Linkto files should not be seen on the mount point. Additional info: =============== Also, for few files two target links are being created on mount point. One data file and one linkto File.
Created attachment 1271352 [details] FUSE mount ll output
Same as https://bugzilla.redhat.com/show_bug.cgi?id=1437960 and https://bugzilla.redhat.com/show_bug.cgi?id=1438468 Patch posted @ https://code.engineering.redhat.com/gerrit/#/c/102614/
On FUSE mount, we are seeing linkto files while doing rename operations as well. Steps: ===== 1) Create a distributed-replicate volume and start it and set parallel readdir options. 2) FUSE mount the volume on multiple clients. 3) Perform below tasks simultaneously from multiple clients, Client-1: start creating files. Client-2: Rename the files. Client-3: Lookups 4) While step-3 is in-progress, add few bricks and start rebalance. 5) After the rebalance is completed, list the files on the mount point. We will see linkto files.
Verified this BZ on glusterfs version 3.8.4-29.el7rhgs.x86_64. Ran the tests mentioned in the description and Comment 7, I didn't see any linkto files on FUSE mount after rebalance. Moving this BZ to Verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2774