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

ShuffleMetrics.ShuffleConnections Gauge Metric Rises Infinitely

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • mrv2
    • None

    Description

      We recently noticed that the mapred.ShuffleMetrics.ShuffleConnections metric rises indefinitely (see attached graph), despite supposedly being a gauge measuring the number of currently open connections:

      ShuffleHandler.java
          @Metric("# of current shuffle connections")
              MutableGaugeInt shuffleConnections;
      

      It seems this is because the metric is incremented once for each map file sent, but decremented once for each request. Thus a request which fetches multiple map files permanently increments shuffleConnections by (mapsFetched - 1).

      Attachments

        1. mapred_ShuffleMetrics_ShuffleConnections.png
          10 kB
          Erik Krogen
        2. MAPREDUCE-6919.test.patch
          8 kB
          Erik Krogen

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xkrogen Erik Krogen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: