Bug 1441951

Summary: [Parallel Readdir]:Seeing linkto files on FUSE mount after rebalance
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Prasad Desala <tdesala>
Component: distributeAssignee: Poornima G <pgurusid>
Status: CLOSED ERRATA QA Contact: Prasad Desala <tdesala>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.3CC: amukherj, nchilaka, pgurusid, rhs-bugs, storage-qa-internal, vbellur
Target Milestone: ---   
Target Release: RHGS 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.8.4-23 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-21 04:37:54 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:
Bug Depends On:    
Bug Blocks: 1417151    
Attachments:
Description Flags
FUSE mount ll output none

Description Prasad Desala 2017-04-13 07:47:35 UTC
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.

Comment 3 Prasad Desala 2017-04-13 08:06:22 UTC
Created attachment 1271352 [details]
FUSE mount ll output

Comment 7 Prasad Desala 2017-04-13 10:29:15 UTC
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.

Comment 11 Prasad Desala 2017-06-27 09:18:10 UTC
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.

Comment 13 errata-xmlrpc 2017-09-21 04:37:54 UTC
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