nwangtw commented on a change in pull request #2905: log the object when it cannot be serialized when emitting tuples URL: https://github.com/apache/incubator-heron/pull/2905#discussion_r189724900
########## File path: heron/api/src/java/org/apache/heron/api/serializer/JavaSerializer.java ########## @@ -40,7 +40,7 @@ public void initialize(Map<String, Object> config) { oos.writeObject(object); oos.flush(); } catch (IOException e) { - throw new RuntimeException(e); + throw new RuntimeException("NotSerializable object is: " + object.toString(), e); Review comment: Suggest: "Failed to serialize object: " + object.toString() ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services