You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@giraph.apache.org by "Jan van der Lugt (JIRA)" <ji...@apache.org> on 2012/07/06 20:07:34 UTC

[jira] [Commented] (GIRAPH-240) Our vertices shouldn't accept null ids or values

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

Jan van der Lugt commented on GIRAPH-240:
-----------------------------------------

I agree that NullWritable should be used for vertices without a value. The vertex id, however, should never be null or nullwritable, right? I think Giraph would crash in that case, since it uses those ids internally.
                
> Our vertices shouldn't accept null ids or values
> ------------------------------------------------
>
>                 Key: GIRAPH-240
>                 URL: https://issues.apache.org/jira/browse/GIRAPH-240
>             Project: Giraph
>          Issue Type: Bug
>          Components: graph
>            Reporter: Alessandro Presta
>
> I may be missing something, but I don't understand why HashMapVertex and EdgeListVertex (and possibly others) check for null vertexId and vertexValue instead of complaining.
> Shouldn't each vertex be forced to have an id and a value? It's a source of potential bugs (see the serialization code that has to check for null and read/write a boolean flag) and I don't see the logic.
> If one doesn't want vertex/edge values at all there's always NullWritable.

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