We are using Cassandra 1.2 Embedded in a production environment.
We are some issues with these lines:

   SocketAddress remoteSocket.get = socket ();
     assert socket! = null;
  ThriftClientState cState = activeSocketSessions.get (socket);

The connection is maintained by remoteSocket thread. However, we have several threads that use this connection. Therefore, only the main thread has socket != Null, because this thread initiate the connection. The worker threads have socket ==null.

Anyone have any suggestions on how to solve this problem?

Thanks!

--
Atenciosamente,
Sávio S. Teles de Oliveira
voice: +55 62 9136 6996
http://br.linkedin.com/in/savioteles
Mestrando em Ciências da Computação - UFG
Arquiteto de Software
Laboratory for Ubiquitous and Pervasive Applications (LUPA) - UFG