Skip to content
Snippets Groups Projects
Commit b84dde36 authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Modified the default retry parameters of the NS API to something much

shorter, in order to limit the impact of cases like the one in
SR #127670: disk2disk copy for old/obsolete file succeeds after a namespace truncate
parent 27beeb04
Branches
Tags
No related merge requests found
......@@ -171,14 +171,14 @@ FILEQUERY MAXNBRESPONSES 10000
#RH DefaultResponse reject-with-error
# The CNS/CONRETRY option defines how often nameserver clients should attempt to
# reconnect to a nameserver which is not available. By default the value is 38880
# times. Which in conjunction with the CNS connection retry interval is approx 1 week
#CNS CONRETRY 38880
# reconnect to a nameserver which is not available. By default the value is 10 times,
# for a total of 100 seconds with the CNS connection default retry interval
#CNS CONRETRY 10
# The CNS/CONRETRYINT option defines how long in seconds, nameserver clients should
# wait before making new attempts to connect to the nameserver should it be
# unavailable
#CNS CONRETRYINT 60
#CNS CONRETRYINT 10
# The following option defines whether or not file checksum information generated by
# the movers should be stored in and retrieved from the name server. This option is
......
......@@ -37,7 +37,7 @@
#define CNS_TIMEOUT 5 /* netread timeout while receiving a request */
#define CNS_TRANSTIMEOUT 60 /* timeout while waiting for the next req in transaction */
#define MAXRETRY 5
#define RETRYI 60
#define RETRYI 10
#define DIRBUFSZ 4096
#define LISTBUFSZ 4096
#define LOGBUFSZ 4096
......
......@@ -68,7 +68,7 @@
/* timeout constants */
#define DEFAULT_RETRYCNT 38880 /* Default retry count 38880*60 = 1 week */
#define DEFAULT_RETRYCNT 10 /* Default retry count => 100 secs (cf. RETRYI) */
#define DEFAULT_CONNTIMEOUT (2*60) /* Default connect timeout limit = 2mins. */
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment