Solr 即使在成功关闭驼峰上下文/路由后,连接仍挂起在关闭等待状态
我有一个关于骆驼路线关闭的问题 下面是路由的代码片段-Solr 即使在成功关闭驼峰上下文/路由后,连接仍挂起在关闭等待状态,solr,apache-camel,Solr,Apache Camel,我有一个关于骆驼路线关闭的问题 下面是路由的代码片段- from("seda:" + this.getDumpIdentifier() + "_insertInSolr?concurrentConsumers=50&pollTimeout=1") // use streaming to increase index throughput .setHeader(SolrConstants.OPERATION, constant(SolrCo
from("seda:" + this.getDumpIdentifier() + "_insertInSolr?concurrentConsumers=50&pollTimeout=1")
// use streaming to increase index throughput
.setHeader(SolrConstants.OPERATION, constant(SolrConstants.OPERATION_INSERT_STREAMING))
.setExchangePattern(ExchangePattern.InOnly)
// define solr endpoint and options
.to("solr://" + this.getSolrEndPoint()
+ "?defaultMaxConnectionsPerHost=50&maxTotalConnections=150&maxRetries=3&allowCompression=true")
//
.log(LoggingLevel.DEBUG, "Successfully indexed document ID=${header.DOCUMENT_ID}.")
// end this route
.end();
我正在使用org.apache.camel.main.main启动camel上下文(此路由)。
在成功处理时,我正在执行-camelMain.stop();camelMain.shutdown()代码>
但在成功关闭路由之后,我仍然看到TCP连接处于关闭等待状态(从这个索引器应用程序到部署在tomcat上的solr服务器)
一些意见-
1.在日志中,我无法看到与solr://“端点相关的任何内容。
2.我在日志中看到路由成功关闭。示例:
消息路由:route6关闭完成,正在从以下地址使用:Endpoint[seda://eventIncr_insertInSolr?concurrentConsumers=100&pollTimeout=1]……”
问题-
知道solr://的底层实现为什么在路由终止(camel上下文关闭)后仍不释放连接吗?这是camel-solr中的一个错误。停止camel-solr组件时,资源没有正确停止。我已经记录了一个票证
您使用的是什么Camel版本?我们使用的是Camel 2.9。2@ClausIbsen我尝试使用camel 2.11.0,但仍然在CLOSE_WAIT中看到连接。我在本地计算机上也做了一个快速测试。只有一个文档要索引,我看到一个连接被创建,并在CLOSE_WAIT中保留,即使在作业完成后。谢谢!我看到问题已解决已解决,能否共享发布版本?修复版本:2.11.1、2.12.0