0

実装が必要ないくつかの管理ユースケースのために、プロジェクト内で spring-data-solr の使用を開始しました。

設定

spring-data-solr のセットアップは非常に簡単です。

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:solr="http://www.springframework.org/schema/data/solr"
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
          http://www.springframework.org/schema/data/solr http://www.springframework.org/schema/data/solr/spring-solr.xsd">

   <solr:repositories base-package="com.any.package" solr-template-ref="solrTemplate"/>

   <solr:solr-server id="solrServer" url="http://${solr.host}:${solr.port}${solr.contextPath}" />

   <bean id="solrTemplate" class="org.springframework.data.solr.core.SolrTemplate">
          <constructor-arg ref="solrServer" />
          <constructor-arg value="${solr.storeCore.name}" />
   </bean>

現在、 and をRepository拡張したものを使用しておりSolrCrudRepository、これは に autowired されていControllerます。

問題

Tomcat をシャットダウンすると、 で 10 分間ハングしDestroying the ProtocolHandlerます。

-Thread がパークされていることを除いて、searcherExecutorThreaddump はそれ以上の情報を提供しません。

何か案は?

バージョン

  • ソーラー: 4.7.2
  • Spring-Data-Solr: 1.5.4.RELEASE
  • 春: 4.2.5.RELEASE
  • トムキャット 7.0.53
  • Java 1.8.0u65
  • Win 7 および CentOS 6.6
4

1 に答える 1