It turns out that XrdXrootdMonitor::Init() is never called and so the buffers that should hold the redirection info before it gets sent out are not created (and there is a check in XrdXrootdMonitor::Redirect(...) that does "if (!mP) return 0;" and therefore the thing does not crash (as it should - I hate excessive checking, sometimes things really should crash)).
The Init() call is made from within the following 'if':
Breakpoint 3, XrdXrootdProtocol::Configure (parms=0x0, pi=0x7ffff7fd0680)
at /foo/home/matevz/xrd/xrootd/src/XrdXrootd/XrdXrootdConfig.cc:334
334 if ((!isRedir || (RQList.Next() != 0 && XrdXrootdMonitor::Redirect())))
(gdb) p isRedir
$3 = 82 'R'
(gdb) p RQList.Next()
$4 = (XrdXrootdXPath *) 0x0
(gdb) p XrdXrootdMonitor::Redirect()
$5 = 1
but apparently the condition does not evaluate to true. Andy, please help, the configure function is somewhat arcane :) For now, I'll just hack around this problem so that I can test the rest.
Soon,
Matevz
P.S. To reply to my previous question, the redirection monitoring items get emitted from XrdXrootdProtocol::fsError().
On 05/17/12 13:08, Matevz Tadel wrote:
> Hi,
>
> OK, I have a test setup now to trace this down, I hope. Andy, how does the
> redirection actually happen on a manger ... that is, where should I stick my
> fingers into?
>
> I was searching for calls to XrdXrootdMonitor::Redirect() but they always seem
> to be in places handling some error conditions.
>
> Matevz
>
> On 05/16/12 13:56, Matevz Tadel wrote:
>> Hi,
>>
>> I just started looking into collecting the redirection information from the
>> detailed monitoring stream ... and I get no "redir" packets.
>>
>> Has anybody tested it before, that is, has actually seen the 'r' messages come
>> out of a redirector? I guess I know the answer :)
>>
>> Cheers,
>> Matevz
>>
>> ########################################################################
>> 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
>
> ########################################################################
> 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
########################################################################
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
|