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 or view it on GitHub:
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