Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
When using NullWritable as VertexData, EdgeData or MessageData, an error occurs. This happens because the constructor of NullWritable is private, so ReflectionUtils.newInstance() fails. The solution is checking for NullWritable separately, and then returning NullWritable.get() instead of a new class. This can save very large amounts of memory, since NullWritable is a singleton.
This was reported on the mailing list, but never fixed: http://mail-archives.apache.org/mod_mbox/incubator-giraph-user/201112.mbox/%3C4EDED788.4020904@apache.org%3E