-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/11525/#review21161
-----------------------------------------------------------


It's a great start, but you'll need to clean it up a bit before this is ready 
to be shipped.  Can you also run 'mvn clean verify' in the parent directory to 
ensure nothing else broke.  Thanks!


giraph-core/src/main/java/org/apache/giraph/io/EdgeReader.java
<https://reviews.apache.org/r/11525/#comment43969>

    Extra space.



giraph-core/src/main/java/org/apache/giraph/io/EdgeReader.java
<https://reviews.apache.org/r/11525/#comment43954>

    aggreagator -> Aggregator
    for  vertex -> for vertex



giraph-core/src/main/java/org/apache/giraph/io/EdgeReader.java
<https://reviews.apache.org/r/11525/#comment43972>

    Let's do the initialize() approach.  It's cleaner.



giraph-core/src/main/java/org/apache/giraph/io/EdgeReader.java
<https://reviews.apache.org/r/11525/#comment43958>

    I don't think we should silently fail.



giraph-core/src/main/java/org/apache/giraph/io/EdgeReader.java
<https://reviews.apache.org/r/11525/#comment43960>

    Same here.



giraph-core/src/main/java/org/apache/giraph/io/VertexReader.java
<https://reviews.apache.org/r/11525/#comment43973>

    Let's do the initialize() approach.  It's cleaner.



giraph-core/src/main/java/org/apache/giraph/io/VertexReader.java
<https://reviews.apache.org/r/11525/#comment43961>

    same here



giraph-core/src/main/java/org/apache/giraph/io/VertexReader.java
<https://reviews.apache.org/r/11525/#comment43962>

    same here



giraph-core/src/main/java/org/apache/giraph/master/BspServiceMaster.java
<https://reviews.apache.org/r/11525/#comment43986>

    Given that this is checked before calling, we shouldn't silently fail.



giraph-core/src/main/java/org/apache/giraph/master/BspServiceMaster.java
<https://reviews.apache.org/r/11525/#comment43974>

    Commented out lines should be removed.



giraph-core/src/main/java/org/apache/giraph/master/BspServiceMaster.java
<https://reviews.apache.org/r/11525/#comment43988>

    A lot of duplicate code here, can you merge this and provide an argument 
perhaps?



giraph-core/src/main/java/org/apache/giraph/worker/EdgeInputSplitsCallable.java
<https://reviews.apache.org/r/11525/#comment43977>

    You only need the aggregator handler right?



giraph-core/src/main/java/org/apache/giraph/worker/EdgeInputSplitsCallable.java
<https://reviews.apache.org/r/11525/#comment43985>

    Same as VertexInputSplitsCallable



giraph-core/src/test/java/org/apache/giraph/master/TestSwitchClasses.java
<https://reviews.apache.org/r/11525/#comment43979>

    Remove this.



giraph-examples/src/test/java/org/apache/giraph/aggregators/TestAggregatorsHandling.java
<https://reviews.apache.org/r/11525/#comment43963>

    Bad indent.



giraph-examples/src/test/java/org/apache/giraph/aggregators/TestAggregatorsHandling.java
<https://reviews.apache.org/r/11525/#comment43964>

    Bad indent.



giraph-examples/src/test/java/org/apache/giraph/aggregators/TestAggregatorsHandling.java
<https://reviews.apache.org/r/11525/#comment43965>

    Bad indent.



giraph-examples/src/test/java/org/apache/giraph/aggregators/TestAggregatorsHandling.java
<https://reviews.apache.org/r/11525/#comment43966>

    Bad indent.



giraph-examples/src/test/java/org/apache/giraph/aggregators/TestAggregatorsHandling.java
<https://reviews.apache.org/r/11525/#comment43967>

    Bad indent.



giraph-examples/src/test/java/org/apache/giraph/aggregators/TestAggregatorsHandling.java
<https://reviews.apache.org/r/11525/#comment43968>

    Bad indent.


- Avery Ching


On May 29, 2013, 5:41 p.m., Bingjing Zhang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/11525/
> -----------------------------------------------------------
> 
> (Updated May 29, 2013, 5:41 p.m.)
> 
> 
> Review request for giraph.
> 
> 
> Description
> -------
> 
> add aggregator for vertex reader and edge reader at input super step.
> 
> Changes in code:
> add "aggregate" interface to VertexReader and EdgeReader
> initialize "aggregator" in "readInputSplit" in "VertexInputSplitsCallable" 
> and "EdgeInputSplitsCallable"
> initialize master aggregator before data loading in "coordinateSuperStep" in 
> "BspServiceMaster"
> seperate master aggregator initialization and its computation for Super Step 
> 0 (originally they are mixed in one method "runMasterCompute")
> perpare aggregator in "setup" in "BspServiceWorker" before data loading
> 
> Test:
> Add SimpleVertexReader and  SimpleEdgeReader to AggregatorsTestComputation 
> for genreating input data.
> Also add "aggregate" call in "getCurrentVertex" and "getCurrentEdge".
> Register persistent aggregator with name "INPUT_VERTEX_PERSISTENT_AGG" and 
> "INPUT_EDGE_PERSISTENT_AGG"in AggregatorsTestMasterCompute.initialize
> Assert if aggregated values can be retrived in 
> AggregatorsTestMasterCompute.compute when "superstep >= 0"
> 
> 
> This addresses bug GIRAPH-673.
>     https://issues.apache.org/jira/browse/GIRAPH-673
> 
> 
> Diffs
> -----
> 
>   giraph-core/src/main/java/org/apache/giraph/io/EdgeReader.java 363a5e6 
>   giraph-core/src/main/java/org/apache/giraph/io/VertexReader.java 9695169 
>   
> giraph-core/src/main/java/org/apache/giraph/io/internal/WrappedEdgeReader.java
>  aae7a72 
>   
> giraph-core/src/main/java/org/apache/giraph/io/internal/WrappedVertexReader.java
>  54adfec 
>   giraph-core/src/main/java/org/apache/giraph/master/BspServiceMaster.java 
> bd48116 
>   giraph-core/src/main/java/org/apache/giraph/worker/BspServiceWorker.java 
> 8b5e39a 
>   
> giraph-core/src/main/java/org/apache/giraph/worker/EdgeInputSplitsCallable.java
>  78cdd8e 
>   
> giraph-core/src/main/java/org/apache/giraph/worker/VertexInputSplitsCallable.java
>  977e100 
>   giraph-core/src/test/java/org/apache/giraph/master/TestSwitchClasses.java 
> 4069972 
>   
> giraph-examples/src/main/java/org/apache/giraph/examples/AggregatorsTestComputation.java
>  db527f2 
>   
> giraph-examples/src/test/java/org/apache/giraph/aggregators/TestAggregatorsHandling.java
>  6d22800 
> 
> Diff: https://reviews.apache.org/r/11525/diff/
> 
> 
> Testing
> -------
> 
> Unit Test of persistent aggregator at input super step in modified 
> "AggregatorsTestComputation" is done.
> 
> 
> Thanks,
> 
> Bingjing Zhang
> 
>

Reply via email to