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.
REVIEW: https://review.gluster.org/21114 (cluster/dht: Create a linkto file if required) posted (#1) for review on master by N Balachandran
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>
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/