Print

Print


Specifically, for xrootd file locking to work correctly, stat() must fill in the st_dev and st_ino which should be unique to the file in question. These fields are rarely if ever set, especially for files that will be created in the cache (i.e. open+create), leading to locking failure. Below is a question that sparked this analysis.

Hello XRootD folks,

I'm GeorgeV at RAL, I work on Echo and we're seeing a weird issue with our XRootD servers.

Since putting in the XRootD caching proxy, it has been denying all of
our writes via XRootD with messages like this:

170627 17:00:14 53626 XrootdXeq: Output file
dteam:test/nagios_check_xrootd_20170627_170014_ceph-gw1 is already
opened by 15 readers; open denied.

All of our writes at this moment are from the Nagios functional check.
It is however of some concern that the proxy seems to think that every
file is opened by multiple readers, even if it is a newly generated
filename and the file is yet to be created for the first time.

With my limited knowledge of C++ and the XRootD codebase I have tracked
this down to:

https://github.com/xrootd/xrootd/blob/0ecced4f68073a52742ae14078c8894c8d346bc5/src/XrdXrootd/XrdXrootdXeq.cc#L1306

It seems to use this method:

https://github.com/xrootd/xrootd/blob/1bf3552685f54ad20e402ec54306830a9b242327/src/XrdXrootd/XrdXrootdFileLock1.cc#L80

This didn't use to happen before we put the proxy in place and we don't intend to switch back (as that solved a number of other issues). It's also difficult for us to bypass the proxy for writes due to how we have the two set up.

Has anyone seen this before? Any ideas would be much appreaciated.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xrootd/xrootd","title":"xrootd/xrootd","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Proxy Cache (memory or disk) not returning proper stat information. (#533)"}],"action":{"name":"View Issue","url":"https://github.com/xrootd/xrootd/issues/533"}}}

Use REPLY-ALL to reply to list

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