Uploaded image for project: 'REEF (Retired)'
  1. REEF (Retired)
  2. REEF-1977

OSUtils.getPID() randomly fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • REEF
    • None

    Description

      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:

       

      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)
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            homezcx Chenxi Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: