我有一个在 Tomcat6 上运行的 Web 应用程序。在 30 或 60 分钟不活动后,如果我刷新页面,我会遇到 Broken Pipe 问题(下面报告的例外情况)。
我试图在其他线程中查找问题并看到更新可以解决它所以我更新到最新版本(Hector 1.1、Thrift 1.1.0 和 Cassandra 版本 1.1.4)但问题仍然存在。我正在使用默认的 Cassandra 配置,就像它来自apt-get
Ubuntu 一样,我目前只有一个节点。
任何帮助将非常感激。谢谢。
2012-09-04 11:03:02,809 ERROR client.HThriftClient [http-8080-3,close:100] Could not flush transport (to be expected if the pool is shutting down) in close for client: CassandraClient<node1.p.cassandra.research-infrastructures.eu:9160-5>
org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe
at org.apache.thrift.transport.TIOStreamTransport.write(TIOStreamTransport.java:147)
at org.apache.thrift.transport.TFramedTransport.flush(TFramedTransport.java:156)
at me.prettyprint.cassandra.connection.client.HThriftClient.close(HThriftClient.java:98)
at me.prettyprint.cassandra.connection.client.HThriftClient.close(HThriftClient.java:26)
2012-09-04 11:03:48,544 ERROR client.HThriftClient [http-8080-9,close:100] Could not flush transport (to be expected if the pool is shutting down) in close for client: CassandraClient<node1.p.cassandra.research-infrastructures.eu:9160-6>
org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe
at org.apache.thrift.transport.TIOStreamTransport.write(TIOStreamTransport.java:147)
at org.apache.thrift.transport.TFramedTransport.flush(TFramedTransport.java:156)