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

Edward J. Yoon commented on HAMA-833:
-------------------------------------

OKay, I finally understood. The values of inactive vertex should be excluded 
from aggregation. Right?

And, system has a bug.
{code}
      if (this.getSuperstepCount() == 0) {
        this.setValue(new DoubleWritable(1));
        if(this.getVertexID().equals(new Text("2"))) {
          this.setValue(new DoubleWritable(0.5));
        }
      } else if (this.getSuperstepCount() == 1) {
        // do nothing
      } else if (this.getSuperstepCount() == 2) {
        if(this.getVertexID().equals(new Text("2"))) {
          this.voteToHalt();
        }
      } else if (this.getSuperstepCount() == 3) {
        System.out.println("vertexID "+ this.getVertexID() +" : " + 
this.getLastAggregatedValue(0));
      }

Result:
vertexID 0 : 0.95
vertexID 4 : 0.95
vertexID 6 : 0.95
vertexID 8 : 0.95
vertexID 1 : 0.95
vertexID 3 : 0.95
vertexID 5 : 0.95
vertexID 7 : 0.95
vertexID 9 : 0.95
{code}

> Add more finish states for vertices
> -----------------------------------
>
>                 Key: HAMA-833
>                 URL: https://issues.apache.org/jira/browse/HAMA-833
>             Project: Hama
>          Issue Type: Improvement
>          Components: graph
>    Affects Versions: 0.6.3
>            Reporter: Anastasis Andronidis
>            Assignee: Anastasis Andronidis
>            Priority: Minor
>              Labels: features
>             Fix For: 0.7.0
>
>
> We should handle more cases on the vertices, like:
> 1) voteToStop() : Immediately stop the vertex compute and suppress any 
> further calculations on top of that. (e.g. aggregation)
> 2) voteToTerminate(): Immediately stop the vertex compute, suppress any 
> further calculations on top of that and deactivate the vertex so even if any 
> message reaches it, will not come alive.
> Any comments?



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to