[ https://issues.apache.org/jira/browse/MAPREDUCE-471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Harsh J resolved MAPREDUCE-471. ------------------------------- Resolution: Not A Problem Patch and ticket have gone stale. If you want to pursue this, please reopen and provide a fresher patch. Also, with MR2 in now, this may be irrelevant - but don't quote me on that. > Refactor JobTracker.Expire* arround an utility class > ---------------------------------------------------- > > Key: MAPREDUCE-471 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-471 > Project: Hadoop Map/Reduce > Issue Type: Improvement > Reporter: Brice Arnould > Priority: Minor > Attachments: ExpiringHashSet.patch > > > I would like to propose a new class, called ExpiringHashSet, which could > factorize the code from JobTracker.ExpireLaunchingTasks and > JobTracker.ExpireTrackers. > It behaves like an ordinary HashSet, but adds two methods and one argument to > the constructor. > That argument, {{lifeTime}}, tells after how much milliseconds an element > added to the container expire and is removed. > The first method, {{update(element)}}, takes an element as it argument and > delay it's expiration by {{lifeTime}} milliseconds. > The last method, {{makeExpire}} is called by the ExpiringHashSet just before > it remove an old item. If that method return false, the item won't be removed. > Nothing expire while we're synchronized on the ExpiringHashSet. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira