reef-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chenxi Zhao <Chenxi.Z...@microsoft.com.INVALID>
Subject RE: Reef OSUtils.getPID() randomly fails
Date Thu, 01 Feb 2018 19:55:55 GMT
Adding the exception in text:

Feb 01, 2018 5:29:33 AM 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)

Chenxi

From: Chenxi Zhao [mailto:Chenxi.Zhao@microsoft.com.INVALID]
Sent: Thursday, February 1, 2018 11:51 AM
To: dev@reef.apache.org
Subject: Reef OSUtils.getPID() randomly fails

Hi,

I want to bring up an issue here that OSUtils.getPID() is randomly failing.

The problem is:
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:


        [Feb 01, 2018 5:29:33 AM 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)]























Shall I proceed to create a ticket on this?

Thanks,
Chenxi





Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message