Bug 1626394 - dht_create: Create linkto files if required when using dht_filter_loc_subvol_key
Summary: dht_create: Create linkto files if required when using dht_filter_loc_subvol_key
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: distribute
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nithya Balachandran
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-07 08:27 UTC by Nithya Balachandran
Modified: 2018-10-23 15:19 UTC (History)
1 user (show)

Fixed In Version: glusterfs-5.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-23 15:19:00 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Nithya Balachandran 2018-09-07 08:27:11 UTC
Description of problem:

dht_filter_loc_subvol_key allows you to specify which subvolume to create a file on. If this is not the hashed subvolume, we need to create a linkto file as well because lookup-optimize is now enabled by default on all volumes.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Create a 3x1 distribute volume
2. From the fuse mount, run
 for i in {1..100}; do touch file-$i@<volname>-dht:<volname>-client-1; done
3.

Actual results:

No linkto files created on any bricks


Expected results:

All data files should be created on <volname>-client-1 but there should be linkto files on the other 2 bricks.


Additional info:

This is a debugging hook and not expected to be used in production.

Comment 1 Worker Ant 2018-09-07 08:43:46 UTC
REVIEW: https://review.gluster.org/21114 (cluster/dht: Create a linkto file if required) posted (#1) for review on master by N Balachandran

Comment 2 Worker Ant 2018-09-10 14:23:16 UTC
COMMIT: https://review.gluster.org/21114 committed in master by "N Balachandran" <nbalacha> with a commit message- cluster/dht: Create a linkto file if required

Using the dht_filter_loc_subvol_key to create
files on specific subvols did not create a linkto
file. This can make the file inaccessible as
lookup-optimize is now enabled by default.

Change-Id: I78add5a31887378a479cb9c746b91678876b0dbe
fixes: bz#1626394
Signed-off-by: N Balachandran <nbalacha>

Comment 3 Shyamsundar 2018-10-23 15:19:00 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-5.0, please open a new bug report.

glusterfs-5.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] https://lists.gluster.org/pipermail/announce/2018-October/000115.html
[2] https://www.gluster.org/pipermail/gluster-users/


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