reef-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chenxi Zhao (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (REEF-1977) OSUtils.getPID() randomly fails
Date Thu, 15 Feb 2018 04:15:00 GMT

     [ https://issues.apache.org/jira/browse/REEF-1977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chenxi Zhao resolved REEF-1977.
-------------------------------
    Resolution: Fixed

> OSUtils.getPID() randomly fails
> -------------------------------
>
>                 Key: REEF-1977
>                 URL: https://issues.apache.org/jira/browse/REEF-1977
>             Project: REEF
>          Issue Type: Bug
>          Components: REEF
>            Reporter: Chenxi Zhao
>            Priority: Minor
>
> Currently inside getPID() call, it is trying to read the command execution result without
waiting for the process execution to be completed.
> There are chances that this method gets the empty result and generates below exception:
>  
> {code:java}
> org.apache.reef.util.OSUtils getPID
> SEVERE: Unable to determine PID
> java.lang.NumberFormatException: For input string: ""
>                 at java.lang.NumberFormatException.forInputString(Unknown
Source)
>                 at java.lang.Long.parseLong(Unknown Source)
>                 at java.lang.Long.valueOf(Unknown Source)
>                 at org.apache.reef.util.OSUtils.getPID(OSUtils.java:104)
>                 at org.apache.reef.runtime.common.evaluator.PIDStoreStartHandler.onNext(PIDSto
> reStartHandler.java:62)
>                 at org.apache.reef.runtime.common.evaluator.EvaluatorRuntime$RuntimeStartHandl
> er.onNext(EvaluatorRuntime.java:184)
>                 at org.apache.reef.runtime.common.evaluator.EvaluatorRuntime$RuntimeStartHandl
> er.onNext(EvaluatorRuntime.java:178)
>                 at
> org.apache.reef.wake.impl.PubSubEventHandler.onNext(PubSubEventHandler.java:98)
>                 at org.apache.reef.wake.time.runtime.RuntimeClock.run(RuntimeClock.java:292)
>                 at
> org.apache.reef.runtime.common.REEFEnvironment.run(REEFEnvironment.java:191)
>                 at org.apache.reef.runtime.common.REEFLauncher.main(REEFLauncher.java:181)
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message