You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Andrew Chung (JIRA)" <ji...@apache.org> on 2016/05/04 22:36:12 UTC

[jira] [Updated] (REEF-1380) HeartbeatManager can trigger a NullReferenceException if Evaluator operation state is [OPERATIONAL] and runtime state is [FAILED]

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

Andrew Chung updated REEF-1380:
-------------------------------
    Description: 
This is caused by the following line of code:
{code}
if (_evaluatorSettings.OperationState == EvaluatorOperationState.OPERATIONAL && EvaluatorRuntime.State == State.RUNNING)
{
  // code
} else {
  // code
  DriverInformation driverInformation = _driverConnection.GetDriverInformation();
  // code
}
{code}

We should not call {{_driverConnection.GetDriverInformation();}} on a failed Evaluator.

  was:
This is caused by the following line of code:
{code}
if (_evaluatorSettings.OperationState == EvaluatorOperationState.OPERATIONAL && EvaluatorRuntime.State == State.RUNNING)
{
  // code
} else {
  // code
  DriverInformation driverInformation = _driverConnection.GetDriverInformation();
}
{code}

We should not call {{_driverConnection.GetDriverInformation();}} on a failed Evaluator.


> HeartbeatManager can trigger a NullReferenceException if Evaluator operation state is [OPERATIONAL] and runtime state is [FAILED]
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: REEF-1380
>                 URL: https://issues.apache.org/jira/browse/REEF-1380
>             Project: REEF
>          Issue Type: Bug
>          Components: REEF.NET, REEF.NET Evaluator
>            Reporter: Andrew Chung
>            Assignee: Andrew Chung
>
> This is caused by the following line of code:
> {code}
> if (_evaluatorSettings.OperationState == EvaluatorOperationState.OPERATIONAL && EvaluatorRuntime.State == State.RUNNING)
> {
>   // code
> } else {
>   // code
>   DriverInformation driverInformation = _driverConnection.GetDriverInformation();
>   // code
> }
> {code}
> We should not call {{_driverConnection.GetDriverInformation();}} on a failed Evaluator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)