This is an automated email from the ASF dual-hosted git repository.

huijun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git


The following commit(s) were added to refs/heads/master by this push:
     new 069100f  log the object when it cannot be serialized when emitting 
tuples (#2905)
069100f is described below

commit 069100faf382b0a01751606179f395506fce826e
Author: bed debug <[email protected]>
AuthorDate: Tue May 22 16:56:36 2018 -0700

    log the object when it cannot be serialized when emitting tuples (#2905)
    
    * log the object when it cannot be serialized when emitting tuples
    
    * fix ning comment
---
 heron/api/src/java/org/apache/heron/api/serializer/JavaSerializer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/heron/api/src/java/org/apache/heron/api/serializer/JavaSerializer.java 
b/heron/api/src/java/org/apache/heron/api/serializer/JavaSerializer.java
index 79a5d61..75a1fba 100644
--- a/heron/api/src/java/org/apache/heron/api/serializer/JavaSerializer.java
+++ b/heron/api/src/java/org/apache/heron/api/serializer/JavaSerializer.java
@@ -40,7 +40,7 @@ public class JavaSerializer implements IPluggableSerializer {
       oos.writeObject(object);
       oos.flush();
     } catch (IOException e) {
-      throw new RuntimeException(e);
+      throw new RuntimeException("Failed to serialize object: " + 
object.toString(), e);
     }
     return bos.toByteArray();
   }

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to