Re: meaning of LEASE_RECOVER_PERIOD

2010-07-26 Thread Todd Lipcon
Hi Thanh, It's a little bit of a hack - basically, this is a time that determines how often lease recovery can be re-initiated in the NN. The assumption is that if a recovery attempt has not completed within LEASE_RECOVERY_PERIOD, it can be retried using a different DN as the "primary" (ie recover

meaning of LEASE_RECOVER_PERIOD

2010-07-24 Thread Thanh Do
Hi, I look at FSConstants and see this LEASE_RECOVER_PERIOD = 10 * 1000; // i.e 10 seconds and the only place this is used is in: INodeFileUnderConstruction.setLastRecoveryTime() Can any one explain to me the intuition behind this? Why this value is fixed to be 10 seconds? Thanks -- thanh