Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-135

Potential deadlock in JobTracker.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.1.0
    • 0.4.0
    • None
    • None

    Description

      org.apache.hadoop.mapred.JobTracker.RetireJobs.run()
      locks resources in this order
      synchronized (jobs) {
      synchronized (jobInitQueue) {
      synchronized (jobsByArrival) {

      org.apache.hadoop.mapred.JobTracker.submitJob()
      locks resources in a different order
      synchronized (jobs) {
      synchronized (jobsByArrival) {
      synchronized (jobInitQueue) {

      This potentially can lead to a deadlock.
      Unless there is common lock on top of it in which case these
      three locks are redundant.

      Attachments

        1. fix-lock-order.patch
          0.8 kB
          Owen O'Malley

        Activity

          People

            omalley Owen O'Malley
            shv Konstantin Shvachko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: