[ 
https://issues.apache.org/jira/browse/HAMA-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294908#comment-13294908
 ] 

Apurv Verma commented on HAMA-588:
----------------------------------

I am sorry Edward, I understand what you are trying to do here. The code here 
does everything on a single node. Each node just takes care of the vertices it 
is incharge of.
So if a vertex halts there is no need to propagate this information back to the 
master. 

@Edward, your comment made it clear to me.
{quote}
'vertex.getValue()' returns fresh value?
{quote}

Yes this is the fresh value because it is the local value, same is the case 
with vertex.isHalted(). I was wrong there, apologies for that.


                
> Add voteToHalt() mechanism in Graph API
> ---------------------------------------
>
>                 Key: HAMA-588
>                 URL: https://issues.apache.org/jira/browse/HAMA-588
>             Project: Hama
>          Issue Type: Improvement
>          Components: graph
>    Affects Versions: 0.5.0
>            Reporter: Apurv Verma
>            Assignee: Apurv Verma
>             Fix For: 0.5.0
>
>         Attachments: patch.txt
>
>
> Currently Graph API is such that when a vertex doesn't receive any messages, 
> compute() is not called upon it.
> One way to change it is let the user decide when the algorithm has to stop.
> For this we need to add a voteToHalt() function with each vertex.
> And maintain a state variable with each vertex. A vertex which has 
> votedToHalt() doesn't send messages in the next superstep. However if it 
> receives any message, its voteToHalt() ends and it is again eligible to send 
> messages.
> When all vertices have votedToHalt() algorithm should end.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to