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 recovery coordinator)
-Todd On Sat, Jul 24, 2010 at 7:00 PM, Thanh Do <than...@cs.wisc.edu> wrote: > 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 > -- Todd Lipcon Software Engineer, Cloudera