我在Tomcat6上运行了一个Web应用程序。在30或60分钟不活动后,如果我刷新页面,我会收到Broken Pipe问题(下面报告的例外情况)。
我试图在其他线程中查找问题并看到更新可以修复它所以我更新到最新版本(Hector 1.1,Thrift 1.1.0和Cassandra版本1.1.4)但问题仍然存在。我正在使用默认的Cassandra配置,就像它来自Ubuntu上的apt-get
一样,我现在只有一个节点。
任何帮助都会非常感激。感谢。
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)
答案 0 :(得分:0)
如果您长时间不活动,很可能您的连接超时。如果您捕获该异常并重新连接,如果您得到它,我确定错误将消失。我想知道你是否需要Cassandra,如果你有那么多时间没有活动。