Print

Print


Hi John,

Depends on the XRootD release being used. In the old days (i.e. 4.x series 
we used the inode/dev field to generate a hash key for file locking). We 
no longer do that because of this problem. I am suprised that the client 
side thinks the file is offline as we do not specifically use this in the 
XRootD client, instead we have a specific flag that indicates whether the 
file is offline and the plugin is supposed to set it. Looks like some 
strange behaviour from the root framework.

Andy


On Tue, 10 Aug 2021, John Thiltges wrote:

> Dear XRootD developers,
>
> We had a report of problems accessing XRootD files with ROOT tools. E.g.
>
>     # /usr/bin/root -l root://red-gridftp12.unl.edu//store/example.root
>     Warning in <TApplication::GetOptions>: file 
> root://red-gridftp12.unl.edu//store/example.root has size 0, skipping
>
> We're using xrootd-hdfs at our site, and it turns out the plugin returns zero 
> for both inode and device number, which causes XRootD to flag the file as 
> offline:
>
>     Flags:  24 (Offline|IsReadable)
>
> And ROOT doesn't return stat info for offline files[1], leading to the "size 
> 0, skipping" warning.
>
> In an old issue[2], Brian Bockelman asked about modifying the xrootd-hdfs 
> plugin to return 1 for inode number to avoid the issue with files being 
> flagged as offline. I've tested this change, and it does make the root client 
> behave as expected. Are there any negative consequences expected from this 
> fix?
>
> Regards,
> John
>
> [1] 
> https://github.com/root-project/root/blame/v6-22-08/net/netxng/src/TNetXNGSystem.cxx#L210-L213
> [2] https://github.com/xrootd/xrootd/issues/403#issuecomment-249675669
>
> ########################################################################
> Use REPLY-ALL to reply to list
>
> To unsubscribe from the XROOTD-L list, click the following link:
> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1
>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1