Doug,

I came across a small bug related to passing per-call metadata. On runtime exceptions in the Responder, we don't pass back empty per-call metadata.

It is a small patch--should I create a new JIRA for it? Here is the patch:

Index: src/java/org/apache/avro/ipc/Responder.java
===================================================================
--- src/java/org/apache/avro/ipc/Responder.java (revision 790757)
+++ src/java/org/apache/avro/ipc/Responder.java (working copy)
@@ -113,6 +113,8 @@
       error = new AvroRemoteException(e);
       bbo = new ByteBufferOutputStream();
       out = new BinaryEncoder(bbo);
+ Map<Utf8,ByteBuffer> responseMeta = new HashMap<Utf8,ByteBuffer>();
+     META_WRITER.write(responseMeta, out);
       out.writeBoolean(true);
       writeError(Protocol.SYSTEM_ERRORS, error, out);
     }

Reply via email to