Anyone can help me with this? Thanks, Min
On Tue, Feb 15, 2011 at 11:16 AM, Min Zhou <coderp...@gmail.com> wrote: > Hi all, > > Hadoop JobTracker's http info server provides running/failed/completed > job informations on the web through jobtracker.jsp. Lines below show > the logic how the web retries those informations from JobTracker. > > JobTracker tracker = (JobTracker) application.getAttribute("job.tracker"); > ... > Vector<JobInProgress> runningJobs = tracker.runningJobs(); > Vector<JobInProgress> completedJobs = tracker.completedJobs(); > Vector<JobInProgress> failedJobs = tracker.failedJobs(); > > Those three methods above are apparently non-thread-safe ones. I am > confused, why the web can safely call a non-thread-safe method of JT? > > Thanks, > Min > -- > My research interests are distributed systems, parallel computing and > bytecode based virtual machine. > > My profile: > http://www.linkedin.com/in/coderplay > My blog: > http://coderplay.javaeye.com > -- My research interests are distributed systems, parallel computing and bytecode based virtual machine. My profile: http://www.linkedin.com/in/coderplay My blog: http://coderplay.javaeye.com