REVIEW: http://review.gluster.org/13672 (tier: link file creation fails when file moved from hot to cold) posted (#1) for review on master by mohammed rafi kc (rkavunga)
Upstream patch : http://review.gluster.org/#/c/13672/ This patch will solve the race condition with linkfile creation When the file is in hot tier and linkfile in cold tier 1) Hardlink created on cold tier for linkfile 2) if Link creation on hot tier success then send success to application 3) else if Link creation on hot tier fails 4) Do a lookup on hot tier with source path. 5) if source is present 5.1 if (gfid differ) // File can recreate with different gfid 5.2.1 make link call success 5.2 else if same gfid 5.2.1 fail the link call 6) else if source is not present // Either migrated or deleted 6.1 Do lookup on dst loc in cold tier 6.2 if (dst is not present) 6.2.1 Created link was deleted. Fail the link call 6.3 else if dst is present 6.3.1 if it is linkto file // source could have deleted 6.3.1.1 if gfid is same 6.3.1.1.1 delete the linkfile 6.3.1.1.2 fail the link call 6.3.1.2 else if gfid differ 6.3.1.2.1 Fail the link call 6.3.2 else if it is a regular file 6.3.2.1 if gfid is same 6.3.2.1.1 Success the link call. 6.3.2.2 else if gfid is different 6.3.2.2.1 Fail the link call. 7) End
REVIEW: http://review.gluster.org/13672 (tier: link file creation fails when file moved from hot to cold) posted (#2) for review on master by mohammed rafi kc (rkavunga)
REVIEW: http://review.gluster.org/13672 (tier: link file creation fails when file moved from hot to cold) posted (#3) for review on master by mohammed rafi kc (rkavunga)
REVIEW: http://review.gluster.org/13672 (tier: link file creation fails when file moved from hot to cold) posted (#4) for review on master by mohammed rafi kc (rkavunga)
REVIEW: http://review.gluster.org/13672 (tier: link file creation fails when file moved from hot to cold) posted (#5) for review on master by mohammed rafi kc (rkavunga)
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions
Patch https://review.gluster.org/#/c/glusterfs/+/21331/ removes tier functionality from GlusterFS. https://bugzilla.redhat.com/show_bug.cgi?id=1642807 is used as the tracking bug for this. Recommendation is to convert your tier volume to regular volume (either replicate, ec, or plain distribute) with "tier detach" command before upgrade, and use backend features like dm-cache etc to utilize the caching from backend to provide better performance and functionality.