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

NPE from Simon in JT stdout

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12.1
    • None
    • None

    Description

      Seen in JT std out:

      Exception in thread "Timer-0" java.lang.NullPointerException
      at com.yahoo.simon.hadoop.metrics.Client.computeBlurbSize(Unknown Source)
      at com.yahoo.simon.hadoop.metrics.Client.sendBlurb(Unknown Source)
      at com.yahoo.simon.hadoop.metrics.SimonContext.emitRecord(Unknown Source)
      at org.apache.hadoop.metrics.spi.AbstractMetricsContext.timerEvent(AbstractMetricsContext.java:295)
      at org.apache.hadoop.metrics.spi.AbstractMetricsContext.access$000(AbstractMetricsContext.java:48)
      at org.apache.hadoop.metrics.spi.AbstractMetricsContext$1.run(AbstractMetricsContext.java:242)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)

      There are (at least) two bugs:

      (1) o.a.h.metrics.MetricsRecord.setTag(String name, String value) will
      cause this problem to happen (later) if value==null. It should treat a
      null value as equivalent to an empty string.
      (2) o.a.h.mapred.Counters.getGroupNames returns a collection which may
      be getting updated concurrently. It needs to make a copy.

      Attachments

        1. 1091.patch
          1 kB
          David Bowen

        Activity

          People

            dbowen David Bowen
            dbowen David Bowen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: