[Gluster-devel] 1402538 : Assertion failure during rebalance of symbolic links

Ashish Pandey aspandey at redhat.com
Tue Dec 13 09:15:38 UTC 2016


Hi All, 

We have been seeing an issue where re balancing symbolic links leads to an assertion failure in EC volume. 

The root cause of this is that while migrating symbolic links to other sub volume, it creates a link file (with attributes .........T) . 
This file is a regular file. 
Now, during migration a setattr comes to this link and because of possible race, posix_stat return stats of this "T" file. 
In ec_manager_seattr, we receive callbacks and check the type of entry. If it is a regular file we try to get size and if it is not there, we raise an assert. 
So, basically we are checking a size of the link (which will not have size) which has been returned as regular file and we are ending up when this condition 
becomes TRUE. 

Now, this looks like a problem with re balance and difficult to fix at this point (as per the discussion). 
We have an alternative to fix it in EC but that will be more like a hack than an actual fix. We should not modify EC 
to deal with an individual issue which is in other translator. 

Now the question is how to proceed with this? Any suggestions? 

Details on this bug can be found here - 
https://bugzilla.redhat.com/show_bug.cgi?id=1402538 

---- 
Ashish 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-devel/attachments/20161213/9b7194c1/attachment-0001.html>


More information about the Gluster-devel mailing list