Print

Print


Hi Wilko,

  this is the behavior after the suggestions got from Andreas/Derek 
(don't remember which one of them).

  They said that a short timeout with a low number of retries (for the 
first connection only) was better for an interactive tool. Since nobody 
complained about this, I changed the defaults according to the request.

  Anyway you can change the number of the first-connection retries by 
specifying

  -DIFirstConnectMaxCnt n

  in the command line. The default value for the client is 150, 
overridden by xrdcp to 1.

  The default value that xrdcp sets for the connection timeout is 15 
secs. So, if you specify to retry for 100 times, you will get a total 
timeout of 1500 seconds.

  I remark that we are speaking about the values that xrdcp overrides. 
The client defaults are different. If  from discussion on this list it 
comes out that there is a better choice for those defaults, I will 
change them acccordingly of course.

  Fabrizio

Wilko Kroeger wrote:
> Hello Fabrizio
> 
> I am testing the latest development version 20050509-2006.
> 
> I see that xrdcp exits immediately if the xrootd is not running on
> the data server:
> 
> 
> work > xrdcp  -DIDebugLevel 2   root://datadevsol05:2094////prod/t1 -  | wc -c
> Overriding 'DebugLevel' with value 2.  Final value: 2
> 050517 13:02:20 001 Xrd: main (C) 2004 SLAC INFN xrdcp 0.2 beta
> 050517 13:02:20 001 Xrd: Create (C) 2004 SLAC INFN XrdClient 0.3
> 050517 13:02:20 001 Xrd: GetDomainToMatch GetHostName(kama) returned name=kama.slac.stanford.edu
> 050517 13:02:20 001 Xrd: GetDomainToMatch GetDomain(kama) --> slac.stanford.edu
> 050517 13:02:20 001 Xrd: XrdClientUrlSet List of servers to connect to is [datadevsol05:2094]
> 050517 13:02:20 001 Xrd: XrdClientUrlSet Remote file to open is '///prod/t1'
> 050517 13:02:20 001 Xrd: ConvertSingleDNSAlias Resolving datadevsol05:2094
> 050517 13:02:20 001 Xrd: ConvertSingleDNSAlias Found host datadevsol05.slac.stanford.edu with addr 134.79.85.155
> 050517 13:02:20 001 Xrd: ShowUrls The converted URLs count is 1
> 050517 13:02:20 001 Xrd: ShowUrls URL n.1: datadevsol05.slac.stanford.edu:2094//.
> 050517 13:02:20 001 Xrd: GetDomainToMatch GetHostName(datadevsol05.slac.stanford.edu) returned name=datadevsol05.slac.stanford.edu
> 050517 13:02:20 001 Xrd: GetDomainToMatch GetDomain(datadevsol05.slac.stanford.edu) --> slac.stanford.edu
> 050517 13:02:20 001 Xrd: CheckHostDomain Resolved [datadevsol05.slac.stanford.edu]'s domain name into [slac.stanford.edu]
> 050517 13:02:20 001 Xrd: CheckHostDomain Access granted to the domain of [datadevsol05.slac.stanford.edu].
> 050517 13:02:20 001 Xrd: GetDomainToMatch GetHostName(datadevsol05.slac.stanford.edu) returned name=datadevsol05.slac.stanford.edu
> 050517 13:02:20 001 Xrd: GetDomainToMatch GetDomain(datadevsol05.slac.stanford.edu) --> slac.stanford.edu
> 050517 13:02:20 001 Xrd: CheckHostDomain Resolved [datadevsol05.slac.stanford.edu]'s domain name into [slac.stanford.edu]
> 050517 13:02:20 001 Xrd: CheckHostDomain Access granted to the domain of [datadevsol05.slac.stanford.edu].
> 050517 13:02:20 001 Xrd: CreateTXNf Trying to connect to datadevsol05.slac.stanford.edu:2094. Connect try 1
> 050517 13:02:20 001 Xrd: Connect Creating a logical connection...
> 050517 13:02:20 001 Xrd: Connect Physical connection not found. Creating a new one...
> 050517 13:02:20 001 Xrd: Connect Connecting to [datadevsol05.slac.stanford.edu:2094]
> 050517 13:02:20 001 Xrd: ClientSock::TryConnect Trying to connect todatadevsol05.slac.stanford.edu(134.79.85.155):2094 Timeout=15
> 050517 13:02:20 001 Xrd: ClientSock::TryConnect Connection todatadevsol05.slac.stanford.edu:2094 failed. (-1)
> 050517 13:02:20 001 Xrd: Connect can't open connection to [datadevsol05.slac.stanford.edu:2094]
> 050517 13:02:20 001 Xrd: Connect Connect(datadevsol05.slac.stanford.edu, 2094) returned -1
> 050517 13:02:20 001 Xrd: XrdNetFile Error creating logical connection to datadevsol05.slac.stanford.edu:2094
> 050517 13:02:20 001 Xrd: CreateTXNf Disconnecting.
> Error accessing path/file for root://datadevsol05:2094////prod/t1
>       0
> 
> 
> I tried the -force option e.g: xrdcp -force root://......
> but it still exists immediately.
> 
> So far the default behavior of xrdcp was to retry for sometime before
> exiting.  Shouldn't this be the default?
> 
> 
> Cheers,
>    wilko