Print

Print


@mpatrascoiu I can reproduce the problem.
File written in the origin is empty, but it is not corrupted.

It would good if writing option would be visible at the open stage, so the file would be rejected before creating cache IO object.
Thread 4 "xrootd" hit Breakpoint 1, XrdFileCache::Cache::Attach (this=0x65e880, io=0x7fffe8002880, Options=4)
at /home/alja/xrd/master/xrootd/src/XrdFileCache/XrdFileCache.cc:162
162 if (Cache::GetInstance().Decide(io))
(gdb) bt
#0 XrdFileCache::Cache::Attach (this=0x65e880, io=0x7fffe8002880, Options=4)
at /home/alja/xrd/master/xrootd/src/XrdFileCache/XrdFileCache.cc:162
#1 0x00007ffff48c553a in XrdPosixFile::Finalize (this=0x7fffe8002810, Status=0x7ffff55a4900)
at /home/alja/xrd/master/xrootd/src/XrdPosix/XrdPosixFile.cc:278
#2 0x00007ffff48cb73c in XrdPosixXrootd::Open (
path=0x7ffff55a52b0 "root:[log in to unmask]:1094//tmp/test.txt?&oss.asize=11&oss.lcl=1", oflags=194, mode=16804, cbP=0x0)
at /home/alja/xrd/master/xrootd/src/XrdPosix/XrdPosixXrootd.cc:613
#3 0x00007ffff4cfdae0 in XrdPssFile::Open (this=0x7fffe80023d0, path=0x7fffe8002400 "/tmp/test.txt", Oflag=194, Mode=16804, Env=
@0x7ffff55a7350: {env_Hash = {hashtable = 0x7fffe8002a40, prevtablesize = 8, hashtablesize = 13, hashnum = 2, hashmax = 10, hashload = 80}, secEntity = 0x7fffe80020c0, global_env = 0x7fffe8012680 "&oss.asize=11", global_len = 13})
at /home/alja/xrd/master/xrootd/src/XrdPss/XrdPss.cc:686
#4 0x00007ffff7b52c6d in XrdOfsFile::open (this=0x7fffe8013d80, path=0x7fffe8002400 "/tmp/test.txt", open_mode=258, Mode=16804,
client=0x7fffe80020c0, info=0x7fffe800240e "oss.asize=11") at /home/alja/xrd/master/xrootd/src/XrdOfs/XrdOfs.cc:611
#5 0x00007ffff7b46013 in XrdXrootdProtocol::do_Open (this=0x7fffe8002000) at /home/alja/xrd/master/xrootd/src/XrdXrootd/XrdXrootdXeq.cc:1286


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":"PERSON","message":"@alja in #663: @mpatrascoiu I can reproduce the problem. \r\nFile written in the origin is empty, but it is not corrupted.\r\n\r\nIt would good if writing option would be visible at the open stage, so the file would be rejected before creating cache IO object.\r\nThread 4 \"xrootd\" hit Breakpoint 1, XrdFileCache::Cache::Attach (this=0x65e880, io=0x7fffe8002880, Options=4)\r\n at /home/alja/xrd/master/xrootd/src/XrdFileCache/XrdFileCache.cc:162\r\n162 if (Cache::GetInstance().Decide(io))\r\n(gdb) bt\r\n#0 XrdFileCache::Cache::Attach (this=0x65e880, io=0x7fffe8002880, Options=4)\r\n at /home/alja/xrd/master/xrootd/src/XrdFileCache/XrdFileCache.cc:162\r\n#1 0x00007ffff48c553a in XrdPosixFile::Finalize (this=0x7fffe8002810, Status=0x7ffff55a4900)\r\n at /home/alja/xrd/master/xrootd/src/XrdPosix/XrdPosixFile.cc:278\r\n#2 0x00007ffff48cb73c in XrdPosixXrootd::Open (\r\n path=0x7ffff55a52b0 \"root:[log in to unmask]:1094//tmp/test.txt?\u0026oss.asize=11\u0026oss.lcl=1\", oflags=194, mode=16804, cbP=0x0)\r\n at /home/alja/xrd/master/xrootd/src/XrdPosix/XrdPosixXrootd.cc:613\r\n#3 0x00007ffff4cfdae0 in XrdPssFile::Open (this=0x7fffe80023d0, path=0x7fffe8002400 \"/tmp/test.txt\", Oflag=194, Mode=16804, Env=\r\n @0x7ffff55a7350: {env_Hash = {hashtable = 0x7fffe8002a40, prevtablesize = 8, hashtablesize = 13, hashnum = 2, hashmax = 10, hashload = 80}, secEntity = 0x7fffe80020c0, global_env = 0x7fffe8012680 \"\u0026oss.asize=11\", global_len = 13})\r\n at /home/alja/xrd/master/xrootd/src/XrdPss/XrdPss.cc:686\r\n#4 0x00007ffff7b52c6d in XrdOfsFile::open (this=0x7fffe8013d80, path=0x7fffe8002400 \"/tmp/test.txt\", open_mode=258, Mode=16804,\r\n client=0x7fffe80020c0, info=0x7fffe800240e \"oss.asize=11\") at /home/alja/xrd/master/xrootd/src/XrdOfs/XrdOfs.cc:611\r\n#5 0x00007ffff7b46013 in XrdXrootdProtocol::do_Open (this=0x7fffe8002000) at /home/alja/xrd/master/xrootd/src/XrdXrootd/XrdXrootdXeq.cc:1286\r\n\r\n"}],"action":{"name":"View Issue","url":"https://github.com/xrootd/xrootd/issues/663#issuecomment-370968214"}}}

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