Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4359

Potential deadlock in Counters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.3
    • 1.2.0
    • None
    • None
    • Reviewed

    Description

      jcarder identified this deadlock in branch-1 (though it may also be present in trunk):

      • Counters.size() is synchronized and locks Counters before Group
      • Counters.Group.getCounterForName() is synchronized and calls through to Counters.size()

      This creates a potential cycle which could cause a deadlock (though probably quite rare in practice)

      Attachments

        1. MAPREDUCE-4359.patch
          2 kB
          Thomas White
        2. 1_jcarder_result_0.dot.png
          32 kB
          Todd Lipcon

        Activity

          People

            tomwhite Thomas White
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: