Bug 1441951 - [Parallel Readdir]:Seeing linkto files on FUSE mount after rebalance
Summary: [Parallel Readdir]:Seeing linkto files on FUSE mount after rebalance
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: distribute
Version: rhgs-3.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: RHGS 3.3.0
Assignee: Poornima G
QA Contact: Prasad Desala
URL:
Whiteboard:
Depends On:
Blocks: 1417151
TreeView+ depends on / blocked
 
Reported: 2017-04-13 07:47 UTC by Prasad Desala
Modified: 2017-09-21 04:37 UTC (History)
6 users (show)

Fixed In Version: glusterfs-3.8.4-23
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-21 04:37:54 UTC
Embargoed:


Attachments (Terms of Use)
FUSE mount ll output (2.40 MB, text/plain)
2017-04-13 08:06 UTC, Prasad Desala
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2774 0 normal SHIPPED_LIVE glusterfs bug fix and enhancement update 2017-09-21 08:16:29 UTC

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


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