avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Porter <George.Por...@Sun.COM>
Subject Re: [VOTE] Avro release 1.0.0 (candidate 0)
Date Thu, 02 Jul 2009 23:12:07 GMT
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);
      }

Mime
View raw message