giraph-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claudio Martella (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GIRAPH-735) DiskBackedPartitionStore throws NPE due to uninitialized OutEdges
Date Thu, 15 Aug 2013 15:09:48 GMT

     [ https://issues.apache.org/jira/browse/GIRAPH-735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claudio Martella updated GIRAPH-735:
------------------------------------

    Attachment: GIRAPH-735.diff
    
> DiskBackedPartitionStore throws NPE due to uninitialized OutEdges
> -----------------------------------------------------------------
>
>                 Key: GIRAPH-735
>                 URL: https://issues.apache.org/jira/browse/GIRAPH-735
>             Project: Giraph
>          Issue Type: Bug
>          Components: graph
>    Affects Versions: 1.1.0
>            Reporter: Craig Muchinsky
>             Fix For: 1.1.0
>
>         Attachments: GIRAPH-735.diff
>
>
> The DiskBackedPartitionStore is throwing an NPE when trying to load a partition from
disk. It seems to be related to the call to ImmutableClassesGiraphConfiguration.createOutEdges()
which doesn't initialize the OutEdges before it attempts to populate them via Vertex.initialize().
Simply switching to ImmutableClassesGiraphConfiguration.createAndInitializeOutEdges() seems
to correct the following stack trace:
> Caused by: java.lang.NullPointerException
> 	at org.apache.giraph.edge.HashMapEdges.write(HashMapEdges.java:130)
> 	at org.apache.giraph.utils.WritableUtils.writeVertexToDataOutput(WritableUtils.java:578)
> 	at org.apache.giraph.utils.WritableUtils.writeVertexToByteArray(WritableUtils.java:409)
> 	at org.apache.giraph.utils.WritableUtils.writeVertexToByteArray(WritableUtils.java:436)
> 	at org.apache.giraph.partition.ByteArrayPartition.putVertex(ByteArrayPartition.java:92)
> 	at org.apache.giraph.partition.DiskBackedPartitionStore.loadPartition(DiskBackedPartitionStore.java:457)
> 	at org.apache.giraph.partition.DiskBackedPartitionStore.access$1000(DiskBackedPartitionStore.java:74)
> 	at org.apache.giraph.partition.DiskBackedPartitionStore$GetPartition.call(DiskBackedPartitionStore.java:695)
> 	at org.apache.giraph.partition.DiskBackedPartitionStore$GetPartition.call(DiskBackedPartitionStore.java:631)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:149)
> 	at org.apache.giraph.partition.DiskBackedPartitionStore$DirectExecutorService.execute(DiskBackedPartitionStore.java:943)
> 	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:103)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message