twitter/flockdb — Issue #70:  @production.scala,get error server: Read an invalid frame size of -2147418111. Are you using TFramedTransport on the client side?
Author: hzlinux
Created: 2011-10-16 06:55:44+00:00
State: open

@development.scala

same program is ok.
my code

@Test
def testSave(){
val sourceId=1L;
val graphId=1;
val isForward=true;
val destinationIds=Some(Seq(2L,5L,6L,7L))

val term = new QueryTerm(sourceId,graphId,isForward);
term.setDestination_ids( pack( destinationIds.get).array() )
println(term)

val op = new ExecuteOperation();
op.setOperation_type( ExecuteOperationType.Add);
op.setTerm( term);

val execs = new ExecuteOperations();
execs.addToOperations(op);
execs.setPriority(Priority.Medium);

val	transport = new TSocket("192.168.0.17", 7915);
transport.open();
val protocol = new TBinaryProtocol(transport);
val client = new FlockDB.Client (protocol);
client.execute( execs);
val e = client.get(sourceId,graphId,2L)
println(e)

//val list = client.select_edges( );
//println(list)
transport.close()
}

if server is production env;

tail production.log

server: Read an invalid frame size of -2147418111. Are you using TFramedTransport on the client side?