You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Jonathan Matthew (Created) (JIRA)" <ji...@apache.org> on 2012/01/12 03:01:41 UTC

[jira] [Created] (MAPREDUCE-3661) JvmManager dies on windows because it doesn't have process IDs

JvmManager dies on windows because it doesn't have process IDs
--------------------------------------------------------------

                 Key: MAPREDUCE-3661
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3661
             Project: Hadoop Map/Reduce
          Issue Type: Bug
          Components: task-controller
    Affects Versions: 1.0.0
         Environment: Windows+cygwin
            Reporter: Jonathan Matthew


JvmManager.kill() throws a NumberFormatException on Windows because it doesn't have process IDs, so it passes the default empty string (set in Child.main apparently) to Integer.parseInt().  This causes the task tracker to shut down.

I'm guessing the child can't send null (rather than "") as its pid to the parent, so the parent should treat the empty string the same as null when processing the pid string.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-3661) JvmManager dies on windows because it doesn't have process IDs

Posted by "Jonathan Matthew (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-3661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Matthew updated MAPREDUCE-3661:
----------------------------------------

    Attachment: mapreduce-3661-fix.diff
    
> JvmManager dies on windows because it doesn't have process IDs
> --------------------------------------------------------------
>
>                 Key: MAPREDUCE-3661
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3661
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: task-controller
>    Affects Versions: 1.0.0
>         Environment: Windows+cygwin
>            Reporter: Jonathan Matthew
>         Attachments: mapreduce-3661-fix.diff
>
>
> JvmManager.kill() throws a NumberFormatException on Windows because it doesn't have process IDs, so it passes the default empty string (set in Child.main apparently) to Integer.parseInt().  This causes the task tracker to shut down.
> I'm guessing the child can't send null (rather than "") as its pid to the parent, so the parent should treat the empty string the same as null when processing the pid string.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira