hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HAMA-833) Add more finish states for vertices
Date Mon, 23 Dec 2013 10:58:51 GMT

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

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

Basically, inactive vertex is doing nothing until activated.  And aggregator is just a global
message among vertices. 

{code}
      if (iterable != null && vertex.isHalted()) {
        vertex.setActive();
      }
      if (!vertex.isHalted()) {
        M lastValue = vertex.getValue();
        if (iterable == null) {
          vertex.compute(Collections.<M> emptyList());
        } else {
          if (combiner != null) {
            M combined = combiner.combine(iterable);
            vertex.compute(Collections.singleton(combined));
          } else {
            vertex.compute(iterable);
          }
          currentMessage = iterable.getOverflowMessage();
        }
        getAggregationRunner().aggregateVertex(lastValue, vertex);
        activeVertices++;
      }
{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)

Mime
View raw message