Hello All,

For one of our client, using nfs-ganesha v2.4 and ceph v10.2.4, readdir fails 
with error:

On nfs-client: "Remote I/O error"

In nfs-ganesha server log (Removed some part of readability) 

mdcache_readdir :NFS READDIR :F_DBG :About to readdir in mdcache_readdir: 
directory=0x1f8dc10 cookie=0 collisions 0
mdcache_getattrs :INODE :F_DBG :attrs  obj attributes Mask = 0005dfce 
NO_FILE_TYPE
Encode FAILED for attr 1, name = FATTR4_TYPE
NFS READDIR :F_DBG :Returning NFS4ERR_SERVERFAULT 


But for the same directory=0x1f8dc10 , readdir works sometime. 
In the log, it prints the correct attr "nfs4_FSALattr_To_Fattr :NFS4 :F_DBG 
:Encoded attr 1, name = FATTR4_TYPE"

Could
 there be a possible race condition somewhere in accessing mdcache, 
because of which for the same directory it works sometime?

I have not been able to reproduce it. Looking at code, it seems somehow mdcache 
and attributes are not in sync.
Client is also using cephfs cache tiering, but I think that should not have any 
effect on nfs-ganesha mdcache.

Any hints on how to debug it further?

Thanks,
Supriti 

------
Supriti Singh��SUSE Linux GmbH, GF: Felix Imend��rffer, Jane Smithard, Graham 
Norton,
HRB 21284 (AG N��rnberg)
 




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to