Issue with Thrift

2009-09-16 Thread Atif Haider

Hello,
I am trying to use lazyboy which eventually uses thrift but i am 
interrupted with this error http://pastebin.ca/1568089. Can anyone 
please look into it?


Any sort of help will be appreciated. Thanks in advance.

--
Regards
Atif


Re: Issue with Thrift

2009-09-16 Thread Michael Greene
That is a Cassandra message and means this is either a Cassandra or lazyboy
problem, and should be followed up in either of those communities.
Michael

On Wed, Sep 16, 2009 at 11:42 AM, David Reiss dre...@facebook.com wrote:

 Sorry, the message internal error doesn't give us much to go on.
 Maybe the server had a problem?

 Atif Haider wrote:
  Hello,
  I am trying to use lazyboy which eventually uses thrift but i am
  interrupted with this error http://pastebin.ca/1568089. Can anyone
  please look into it?
 
  Any sort of help will be appreciated. Thanks in advance.
 



Thrift / Scala concurrency issue

2009-09-16 Thread Sebastian Latza

Hi everybody,

while Scala isn''t natively supported by Thrift, maybe someone has  
seen the same problem I'm facing.
I have got a very simple Thrift service which is doing some processing  
(100 to 1000ms) and then returns the result back to the client. When  
benchmarking I noticed that when adding more concurrent clients the  
performance degraded: while one client was getting 10 req/sec, two  
were getting 5 req/sec, and so on. So the server is handling the  
requests sequential for some reason. I have tried all implementations  
(TThreadPoolServer, TNonblockingServer, THsHaServer) with the same  
results. The implementation is quite vanilla:


// Includes here...

class ServiceHandler() extends service.Iface {
override def call_function(String: foo) : String = {
Thread.sleep(100)
return result
}
}

object server {
 def main(args: Array[String]) {
   val processor = new service.Processor(new ServiceHandler())
   val socket = new TNonblockingServerSocket(9090)
   val server = new TNonblockingServer(processor, socket)
   server.serve()
}

Java 1.6.0_16, Scala 2.7.5, same results on Mac and Linux.

Any hints what I might be running into here?

Regards
Sebastian