Removing hard coded argument for heartbeat() method
---------------------------------------------------

                 Key: HAMA-284
                 URL: https://issues.apache.org/jira/browse/HAMA-284
             Project: Hama
          Issue Type: Sub-task
          Components: bsp
    Affects Versions: 0.2.0
            Reporter: Edward J. Yoon
             Fix For: 0.2.0


The 'acceptNewTasks' argument is hard coded as a true.

{code}
  boolean acceptNewTasks = true;
  ....

    // TODO - Later, acceptNewTask is to be set by the status of groom server.
    HeartbeatResponse heartbeatResponse = jobClient.heartbeat(status,
        justStarted, justInited, true, heartbeatResponseId);
{code}

It should be changed to acceptNewTasks. And if slaves (GroomServer) are unable 
to accept tasks, the acceptNewTasks should be changed to false.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to