Clone Vertex on loading
-----------------------

                 Key: GIRAPH-149
                 URL: https://issues.apache.org/jira/browse/GIRAPH-149
             Project: Giraph
          Issue Type: Bug
          Components: bsp
    Affects Versions: 0.1.0, 0.2.0
            Reporter: Zechao Shang
            Priority: Minor


AFAIK, it's a documented behavior that Hadoop io reuses instance on loading 
data. 
Check BspServiceWorker#readVerticesFromInputSplit, readerVertex maybe reused by 
RecordReader(at least our SequenceFileVertexReader do), and must be cloned 
somewhere.
In my opinion, our inherited RecordReaders should follow the behavior of 
Hadoop's RecordReader, and the vertex should be cloned in 
BspServiceWorker#readVerticesFromInputSplit. Just calling 
org.apache.hadoop.io.WritableUtils.clone will be fine.

--
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