Bug 1282710

Summary: Tier: Hard link created during file promotion is lost once the migration is complete
Product: [Community] GlusterFS Reporter: Nithya Balachandran <nbalacha>
Component: tieringAssignee: Nithya Balachandran <nbalacha>
Status: CLOSED CURRENTRELEASE QA Contact: bugs <bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-4.1.3 (or higher) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1285730 (view as bug list) Environment:
Last Closed: 2018-08-29 03:18:28 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: 1305277, 1311836    
Bug Blocks: 1285730    

Description Nithya Balachandran 2015-11-17 08:28:21 UTC
Description of problem:

A hard link created when a file is being promoted will be lost once the file migration is complete.

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


How reproducible:

Consistently

Steps to Reproduce:
1. Create a tier volume and FUSE mount it.
2. Create a large file FILE1 so it will take some time to migrate. This is created on the hot tier by default
3. After FILE1 is demoted, append some data to it to trigger file promotion
4. While FILE1 is being promoted, create a hardlink hlink to FILE1 in some other directory


Actual results:
Once FILE1 has been migrated, hlink no longer exists

Expected results:
Once FILE1 has been migrated, hlink should still exist

Additional info:

Comment 1 Vijay Bellur 2015-11-17 15:03:56 UTC
REVIEW: http://review.gluster.org/12600 (WIP cluster/tier : hardlink creation fails) posted (#1) for review on master by N Balachandran (nbalacha)

Comment 2 Nithya Balachandran 2016-02-08 06:06:00 UTC
This has been fixed with the fix for 1305277 (http://review.gluster.org/#/c/13391/)