You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Koji Noguchi (JIRA)" <ji...@apache.org> on 2007/10/12 01:12:50 UTC

[jira] Created: (HADOOP-2036) NPE in JvmMetrics.doThreadUpdates

NPE in JvmMetrics.doThreadUpdates
---------------------------------

                 Key: HADOOP-2036
                 URL: https://issues.apache.org/jira/browse/HADOOP-2036
             Project: Hadoop
          Issue Type: Bug
          Components: metrics
    Affects Versions: 0.14.1
            Reporter: Koji Noguchi


It showed on task's stderr.  Didn't fail the task directly.

java.lang.NullPointerException
at org.apache.hadoop.metrics.jvm.JvmMetrics.doThreadUpdates(JvmMetrics.java:129)
at org.apache.hadoop.metrics.jvm.JvmMetrics.doUpdates(JvmMetrics.java:79)
at org.apache.hadoop.metrics.spi.AbstractMetricsContext.timerEvent(AbstractMetricsContext.java:284)
at org.apache.hadoop.metrics.spi.AbstractMetricsContext.access$000(AbstractMetricsContext.java:50)
at org.apache.hadoop.metrics.spi.AbstractMetricsContext$1.run(AbstractMetricsContext.java:249)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2036) NPE in JvmMetrics.doThreadUpdates

Posted by "Nigel Daley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nigel Daley updated HADOOP-2036:
--------------------------------

    Attachment: 2036.patch

The ThreadMXBean.getThreadInfo method states that elements of the returned array may be null if the thread is no longer alive or doesn't exist.  The attached patch checks for this state.

> NPE in JvmMetrics.doThreadUpdates
> ---------------------------------
>
>                 Key: HADOOP-2036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2036
>             Project: Hadoop
>          Issue Type: Bug
>          Components: metrics
>    Affects Versions: 0.14.1
>            Reporter: Koji Noguchi
>            Priority: Blocker
>             Fix For: 0.15.0
>
>         Attachments: 2036.patch
>
>
> It showed on task's stderr.  Didn't fail the task directly.
> java.lang.NullPointerException
> at org.apache.hadoop.metrics.jvm.JvmMetrics.doThreadUpdates(JvmMetrics.java:129)
> at org.apache.hadoop.metrics.jvm.JvmMetrics.doUpdates(JvmMetrics.java:79)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext.timerEvent(AbstractMetricsContext.java:284)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext.access$000(AbstractMetricsContext.java:50)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext$1.run(AbstractMetricsContext.java:249)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2036) NPE in JvmMetrics.doThreadUpdates

Posted by "Koji Noguchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Noguchi updated HADOOP-2036:
---------------------------------

    Fix Version/s: 0.15.0
         Priority: Blocker  (was: Major)

Can it be fixed by 0.15?

> NPE in JvmMetrics.doThreadUpdates
> ---------------------------------
>
>                 Key: HADOOP-2036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2036
>             Project: Hadoop
>          Issue Type: Bug
>          Components: metrics
>    Affects Versions: 0.14.1
>            Reporter: Koji Noguchi
>            Priority: Blocker
>             Fix For: 0.15.0
>
>
> It showed on task's stderr.  Didn't fail the task directly.
> java.lang.NullPointerException
> at org.apache.hadoop.metrics.jvm.JvmMetrics.doThreadUpdates(JvmMetrics.java:129)
> at org.apache.hadoop.metrics.jvm.JvmMetrics.doUpdates(JvmMetrics.java:79)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext.timerEvent(AbstractMetricsContext.java:284)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext.access$000(AbstractMetricsContext.java:50)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext$1.run(AbstractMetricsContext.java:249)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2036) NPE in JvmMetrics.doThreadUpdates

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534227 ] 

Hadoop QA commented on HADOOP-2036:
-----------------------------------

+1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12367613/2036.patch
against trunk revision r584031.

    @author +1.  The patch does not contain any @author tags.

    javadoc +1.  The javadoc tool did not generate any warning messages.

    javac +1.  The applied patch does not generate any new compiler warnings.

    findbugs +1.  The patch does not introduce any new Findbugs warnings.

    core tests +1.  The patch passed core unit tests.

    contrib tests +1.  The patch passed contrib unit tests.

Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/931/testReport/
Findbugs warnings: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/931/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/931/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/931/console

This message is automatically generated.

> NPE in JvmMetrics.doThreadUpdates
> ---------------------------------
>
>                 Key: HADOOP-2036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2036
>             Project: Hadoop
>          Issue Type: Bug
>          Components: metrics
>    Affects Versions: 0.14.1
>            Reporter: Koji Noguchi
>            Assignee: Nigel Daley
>            Priority: Blocker
>             Fix For: 0.15.0
>
>         Attachments: 2036.patch
>
>
> It showed on task's stderr.  Didn't fail the task directly.
> java.lang.NullPointerException
> at org.apache.hadoop.metrics.jvm.JvmMetrics.doThreadUpdates(JvmMetrics.java:129)
> at org.apache.hadoop.metrics.jvm.JvmMetrics.doUpdates(JvmMetrics.java:79)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext.timerEvent(AbstractMetricsContext.java:284)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext.access$000(AbstractMetricsContext.java:50)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext$1.run(AbstractMetricsContext.java:249)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2036) NPE in JvmMetrics.doThreadUpdates

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Owen O'Malley updated HADOOP-2036:
----------------------------------

    Fix Version/s:     (was: 0.15.0)
                   0.14.3

> NPE in JvmMetrics.doThreadUpdates
> ---------------------------------
>
>                 Key: HADOOP-2036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2036
>             Project: Hadoop
>          Issue Type: Bug
>          Components: metrics
>    Affects Versions: 0.14.1
>            Reporter: Koji Noguchi
>            Assignee: Nigel Daley
>            Priority: Blocker
>             Fix For: 0.14.3
>
>         Attachments: 2036.patch
>
>
> It showed on task's stderr.  Didn't fail the task directly.
> java.lang.NullPointerException
> at org.apache.hadoop.metrics.jvm.JvmMetrics.doThreadUpdates(JvmMetrics.java:129)
> at org.apache.hadoop.metrics.jvm.JvmMetrics.doUpdates(JvmMetrics.java:79)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext.timerEvent(AbstractMetricsContext.java:284)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext.access$000(AbstractMetricsContext.java:50)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext$1.run(AbstractMetricsContext.java:249)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2036) NPE in JvmMetrics.doThreadUpdates

Posted by "Nigel Daley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nigel Daley updated HADOOP-2036:
--------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

I just committed this.

> NPE in JvmMetrics.doThreadUpdates
> ---------------------------------
>
>                 Key: HADOOP-2036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2036
>             Project: Hadoop
>          Issue Type: Bug
>          Components: metrics
>    Affects Versions: 0.14.1
>            Reporter: Koji Noguchi
>            Assignee: Nigel Daley
>            Priority: Blocker
>             Fix For: 0.15.0
>
>         Attachments: 2036.patch
>
>
> It showed on task's stderr.  Didn't fail the task directly.
> java.lang.NullPointerException
> at org.apache.hadoop.metrics.jvm.JvmMetrics.doThreadUpdates(JvmMetrics.java:129)
> at org.apache.hadoop.metrics.jvm.JvmMetrics.doUpdates(JvmMetrics.java:79)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext.timerEvent(AbstractMetricsContext.java:284)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext.access$000(AbstractMetricsContext.java:50)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext$1.run(AbstractMetricsContext.java:249)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2036) NPE in JvmMetrics.doThreadUpdates

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534882 ] 

Owen O'Malley commented on HADOOP-2036:
---------------------------------------

I'd like to back-port this into 14.3. Comments?

> NPE in JvmMetrics.doThreadUpdates
> ---------------------------------
>
>                 Key: HADOOP-2036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2036
>             Project: Hadoop
>          Issue Type: Bug
>          Components: metrics
>    Affects Versions: 0.14.1
>            Reporter: Koji Noguchi
>            Assignee: Nigel Daley
>            Priority: Blocker
>             Fix For: 0.15.0
>
>         Attachments: 2036.patch
>
>
> It showed on task's stderr.  Didn't fail the task directly.
> java.lang.NullPointerException
> at org.apache.hadoop.metrics.jvm.JvmMetrics.doThreadUpdates(JvmMetrics.java:129)
> at org.apache.hadoop.metrics.jvm.JvmMetrics.doUpdates(JvmMetrics.java:79)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext.timerEvent(AbstractMetricsContext.java:284)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext.access$000(AbstractMetricsContext.java:50)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext$1.run(AbstractMetricsContext.java:249)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2036) NPE in JvmMetrics.doThreadUpdates

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534333 ] 

Hudson commented on HADOOP-2036:
--------------------------------

Integrated in Hadoop-Nightly #269 (See [http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Nightly/269/])

> NPE in JvmMetrics.doThreadUpdates
> ---------------------------------
>
>                 Key: HADOOP-2036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2036
>             Project: Hadoop
>          Issue Type: Bug
>          Components: metrics
>    Affects Versions: 0.14.1
>            Reporter: Koji Noguchi
>            Assignee: Nigel Daley
>            Priority: Blocker
>             Fix For: 0.15.0
>
>         Attachments: 2036.patch
>
>
> It showed on task's stderr.  Didn't fail the task directly.
> java.lang.NullPointerException
> at org.apache.hadoop.metrics.jvm.JvmMetrics.doThreadUpdates(JvmMetrics.java:129)
> at org.apache.hadoop.metrics.jvm.JvmMetrics.doUpdates(JvmMetrics.java:79)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext.timerEvent(AbstractMetricsContext.java:284)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext.access$000(AbstractMetricsContext.java:50)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext$1.run(AbstractMetricsContext.java:249)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2036) NPE in JvmMetrics.doThreadUpdates

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Owen O'Malley updated HADOOP-2036:
----------------------------------

    Assignee: Nigel Daley
      Status: Patch Available  (was: Open)

+1

> NPE in JvmMetrics.doThreadUpdates
> ---------------------------------
>
>                 Key: HADOOP-2036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2036
>             Project: Hadoop
>          Issue Type: Bug
>          Components: metrics
>    Affects Versions: 0.14.1
>            Reporter: Koji Noguchi
>            Assignee: Nigel Daley
>            Priority: Blocker
>             Fix For: 0.15.0
>
>         Attachments: 2036.patch
>
>
> It showed on task's stderr.  Didn't fail the task directly.
> java.lang.NullPointerException
> at org.apache.hadoop.metrics.jvm.JvmMetrics.doThreadUpdates(JvmMetrics.java:129)
> at org.apache.hadoop.metrics.jvm.JvmMetrics.doUpdates(JvmMetrics.java:79)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext.timerEvent(AbstractMetricsContext.java:284)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext.access$000(AbstractMetricsContext.java:50)
> at org.apache.hadoop.metrics.spi.AbstractMetricsContext$1.run(AbstractMetricsContext.java:249)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.