Whamcloud - gitweb
LU-1252 recovery: reduce reconnect time for IR
Two problems fixed in this patch:
1. network latency can be increased to incredible large after all
connections have been tried. Limited it to not be over
CONNECTION_SWITCH_MAX;
2. reconnect the failing target ASAP when the previous connecting
RPC failed, if the client has already been notified by IR.
With the above two fix, it can reduce the recovery time if there was a
connecting RPC in flight when the client is notified by IR.
Signed-off-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Change-Id: If43e93037e418b7a775228ca7abbe8b337e44e9a
Reviewed-on: http://review.whamcloud.com/2371
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>