LISTSERV mailing list manager LISTSERV 16.5

Help for XROOTD-DEV Archives


XROOTD-DEV Archives

XROOTD-DEV Archives


XROOTD-DEV@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

XROOTD-DEV Home

XROOTD-DEV Home

XROOTD-DEV  November 2011

XROOTD-DEV November 2011

Subject:

[bug #87880] wrong TBasket when reading via xrootd

From:

"noreply [Lukasz Janyst]" <[log in to unmask]>

Date:

3 Nov 2011 12:53:34 +0100Thu, 3 Nov 2011 12:53:34 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (201 lines)


Posted by: Lukasz Janyst <ljanyst>
Related to: [ROOT bugs #87880] wrong TBasket when reading via xrootd
URL: <http://savannah.cern.ch/bugs/?87880>

Follow-up Comment:

It's the client.

Submitted by: clemencic
Originator Email: 
Bug / Feature: Bug report
Category: 
Priority: 5 - Normal
Severity: 5 - Blocker
Status: Fixed
Privacy: Public
Assigned to: ljanyst
Open/Closed: Closed
Release: 5.30/00
Discussion Lock: 
Operating System: GNU/Linux

-----Reply from Marco Clemencic <clemencic> on 2011-11-03 12:51
(Europe/Warsaw)-----
Hi Lukasz,

thanks a lot for the fix.

It's not too clear to me if the problem is on the client or server side.
In any case, how can we get the fix deployed?

Thanks
Marco

-----Reply from Lukasz Janyst <ljanyst> on 2011-11-03 12:34
(Europe/Warsaw)-----
XRootD has some limits on the lengths and number of chunks per vector read.
If one of those limits is exceeded then the XrdClient::ReadV method will try
to split the chunks themselves and send them in many actual readv requests if
necessary.

This is what happened in this case:
* the number of chunks after splitting them not to exceed max chunk size was
513
* maximum number of chunks per readv is 512, so the client issued one readv
and one read request
* the readv request was unpacked correctly into the buffer supplied to the
client but the read request didn't take into account that a readv request was
unpacked before overwriting the beginning of the buffer

http://xrootd.cern.ch/cgi-bin/cgit.cgi/xrootd/commit/?id=d10c528900539891037566b5d26c26be1c662132

-----Reply from Lukasz Janyst <ljanyst> on 2011-11-03 10:26
(Europe/Warsaw)-----
It's a bug in the vector read algorithm of xrootd. The attached file
reproduces the issue in terms of pure xroot api.

(file #22190, file #22191)

-----Reply from Marco Cattaneo <cattanem> on 2011-11-02 16:45
(Europe/Warsaw)-----
To comment#8
Yes, that is also what we observe: we have circumstantial evidence that
switching off the cache circumvents the problem.



-----Reply from Lukasz Janyst <ljanyst> on 2011-11-02 16:32
(Europe/Warsaw)-----
On the other hand with TTreeCache disabled all three protocols come out with
the right thing.

-----Reply from Lukasz Janyst <ljanyst> on 2011-11-02 15:50
(Europe/Warsaw)-----
rfio:// is consistent to castor:// but different than root:// sorry for the
mistake.

-----Reply from Lukasz Janyst <ljanyst> on 2011-11-02 15:48
(Europe/Warsaw)-----
I have hooked in the crc32 calculation for this particular buffer and it
indeed comes different for the two protocols. I have also checked rfio:// and
get the reading consistent to the access through root://. This confirms that
there is a problem on xrootd side, either in TXNetFile or xrootd itself.

-----Reply from Lukasz Janyst <ljanyst> on 2011-11-02 14:49
(Europe/Warsaw)-----
I am looking into this and will let you know as soon as I know something.

-----Reply from Marco Cattaneo <cattanem> on 2011-11-02 14:35
(Europe/Warsaw)-----
Is there any progress with this? We need a fix....

-----Reply from Marco Clemencic <clemencic> on 2011-10-28 22:07
(Europe/Warsaw)-----
Hi Lukasz,

I do not know exactly the details, but you can find it here:

https://svnweb.cern.ch/trac/lhcb/browser/Online/trunk/Online/RootCnv

If you need something else, let me know.

Thanks
Marco

-----Reply from Lukasz Janyst <ljanyst> on 2011-10-24 16:39
(Europe/Warsaw)-----
Marco, can you point me to the place where you keep the code interacting with
ROOT? I meant the part where the event selector touches ROOT API.

-----Reply from Lukasz Janyst <ljanyst> on 2011-10-24 14:45
(Europe/Warsaw)-----
I can reproduce the problem and will be looking at it.

Lukasz

  -----Original Message-----
Hi,

we have a problem (most probably) with xrootd (bug #87105).

In some cases we get strange warnings of the type

Warning in <TBasket::ReadBasketBuffers>:
basket:_Event_Bhadron_Phys_B02DstDstKSDDBeauty2CharmLine_Particle2VertexRelations.DataObject.m_version
has fNevBuf=26400 but fEntryOffset=0, pos=509266101, len=26563, fNbytes=311,
fObjlen=26400, trying to repair


The problem doesn't occur if we use rootd instead of xrootd.

At least in the case case I've been testing, it turns out that we are getting
the wrong basket.

I crafted a minimal example (attached) that exposes the problem, showing the
different behavior between "root://" and "castor://" PFNs.
It reads few events and it prints the branch name for a good event and for a
bad event.

The output you should get is:

$ ./run_me.sh 
... Prepare the environment
ROOTSYS=/afs/cern.ch/sw/lcg/app/releases/ROOT/5.30.00/x86_64-slc5-gcc43-dbg/root


****** Using xrootd (PFN:root://) ******
No source file named TBranch.cxx.
warning: no loadable sections found in added symbol-file system-supplied DSO
at 0x2aaaaaac7000
====================================================================================================================================
====================================================================================================================================
====== Good one ======
=== Branch name: _Event_DAQ_RawEvent.m_banks.m_buff
=== Basket name: _Event_DAQ_RawEvent.m_banks.m_buff
=== fObjlen: 78145
====== Bad one ======
=== Branch name: _Event_DAQ_RawEvent.m_banks.m_buff
=== Basket name:
_Event_Bhadron_Phys_B02DstDstKSDDBeauty2CharmLine_Particle2VertexRelations.DataObject.m_version
=== fObjlen: 26400
Warning in <TBasket::ReadBasketBuffers>:
basket:_Event_Bhadron_Phys_B02DstDstKSDDBeauty2CharmLine_Particle2VertexRelations.DataObject.m_version
has fNevBuf=26400 but fEntryOffset=0, pos=509266101, len=26563, fNbytes=311,
fObjlen=26400, trying to repair
Error in <TBranchElement::GetBasket>: File:
root://castorlhcb.cern.ch//castor/cern.ch/grid/lhcb/LHCb/Collision11/BHADRON.DST/00012571/0000/00012571_00000092_1.bhadron.dst
at byte:4761175735, branch:_Event_DAQ_RawEvent.m_banks.m_buff, entry:2900,
badread=0, nerrors=1, basketnumber=2064
****************************************


****** Using rootd (PFN:castor://) ******
No source file named TBranch.cxx.
warning: no loadable sections found in added symbol-file system-supplied DSO
at 0x2aaaaaac7000
====================================================================================================================================
====================================================================================================================================
====== Good one ======
=== Branch name: _Event_DAQ_RawEvent.m_banks.m_buff
=== Basket name: _Event_DAQ_RawEvent.m_banks.m_buff
=== fObjlen: 78145
====== Bad one ======
=== Branch name: _Event_DAQ_RawEvent.m_banks.m_buff
=== Basket name: _Event_DAQ_RawEvent.m_banks.m_buff
=== fObjlen: 131420
****************************************
117.946u 12.009s 4:27.01 48.6%  0+0k 0+0io 18116pf+0w


Cheers
Marco

_______________________________________________
  Message sent via/by LCG Savannah
  http://savannah.cern.ch/



Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use