avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Evans <eev...@rackspace.com>
Subject Python SocketTransceiver
Date Fri, 19 Nov 2010 01:10:42 GMT

I put together a SocketTransceiver for Python so that I could compare
performance against the HTTP one, but I'm having some trouble getting it
to work.  I'm suspect it's something really dumb, that I'm just too
close to spot it, and that someone else might.

The patch against 1.4 is attached.  It causes the Java server to produce
the following exception:

java.io.EOFException
	at
org.apache.avro.ipc.ByteBufferInputStream.getBuffer(ByteBufferInputStream.java:84)
	at
org.apache.avro.ipc.ByteBufferInputStream.read(ByteBufferInputStream.java:46)
	at org.apache.avro.io.BinaryDecoder
$InputStreamByteSource.readRaw(BinaryDecoder.java:815)
	at org.apache.avro.io.BinaryDecoder.doReadBytes(BinaryDecoder.java:340)
	at org.apache.avro.io.BinaryDecoder.readString(BinaryDecoder.java:265)
	at
org.apache.avro.io.ValidatingDecoder.readString(ValidatingDecoder.java:99)
	at
org.apache.avro.generic.GenericDatumReader.readString(GenericDatumReader.java:318)
	at
org.apache.avro.generic.GenericDatumReader.readMap(GenericDatumReader.java:229)
	at
org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:117)
	at
org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:105)
	at org.apache.avro.ipc.Responder.respond(Responder.java:112)
	at org.apache.avro.ipc.SocketServer
$Connection.run(SocketServer.java:91)
	at java.lang.Thread.run(Thread.java:636)

Anyone?

-- 
Eric Evans
eevans@rackspace.com

Mime
View raw message