Print

Print


When POSC is enabled and I write a file that already exists the file is getting deleted by the xrootd server.
POSC is enabled either on the server ( ofs.persist manual hold 1m) or as an option to xrdcp (--psoc), both show the same behavior.

For example if the file already exists xrdcp will fail:
% xrdcp --posc f6 xroot://server:2061//test/mfx/test/f6
Run: [ERROR] Server responded with an error: [3006] Unable to create /test/mfx/test/f6; file exists (destination)
After that checking on the server shows that the file is gone.

The XRootD server log shows (removed time stamp):
14990 psdatmgr.3382:[log in to unmask] XrootdProtocol: 0100 req=stat dlen=18
14990 psdatmgr.3382:[log in to unmask] ofs_stat: fn=/test/mfx/test/f6
14990 psdatmgr.3382:[log in to unmask] XrootdProtocol: 0100 rc=0 stat /test/mfx/test/f6
14990 psdatmgr.3382:[log in to unmask] XrootdResponse: 0100 sending 37 data bytes
14990 psdatmgr.3382:[log in to unmask] XrootdProtocol: 0100 req=open dlen=31
14990 psdatmgr.3382:[log in to unmask] XrootdProtocol: 0100 open unmtp /test/mfx/test/f6?oss.asize=37
14990 psdatmgr.3382:[log in to unmask] ofs_open: 100102-40644 fn=/test/mfx/test/f6
14990 ofs_open: psdatmgr.3382:[log in to unmask] Unable to create /test/mfx/test/f6; file exists
14990 oss_Adjust: free=10261378137935872--37 path=/global/cfs/cdirs/lcls/projecta/lcls/test/
14990 oss_Unlink: lcl rc=0 path=/global/cfs/cdirs/lcls/projecta/lcls/test/mfx/test/f6
14990 psdatmgr.3382:[log in to unmask] XrootdResponse: 0100 sending err 3006: Unable to create /test/mfx/test/f6; file exists

The second to last line shows an oss_Unlink which deletes the file (I assume). Without POSC it works fine.
XRootD version v4.12.3 was used (server, xrdcp)

xrdcp with debug option shows that the following open options are used:
with POSC: kXR_new kXR_open_updt kXR_posc kXR_async kXR_retstat
without POSC: kXR_new kXR_open_updt kXR_async kXR_retstat
so the difference is only the kXR_posc option.

Thanks a lot,
Wilko


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

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1270", "url": "https://github.com/xrootd/xrootd/issues/1270", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

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