Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2723

NPE using cache loader preload with Lucene directory

    XMLWordPrintable

Details

    • Hide

      1. Start a Hibernate Search/Lucene/Infinispan/JTA Spring application with an empty index.
      2. Infinispan/Lucene will create and persist an index.
      3. Shut down Tomcat cleanly with shutdown.sh
      4. Restart the application and observe exceptions in log.

      Show
      1. Start a Hibernate Search/Lucene/Infinispan/JTA Spring application with an empty index. 2. Infinispan/Lucene will create and persist an index. 3. Shut down Tomcat cleanly with shutdown.sh 4. Restart the application and observe exceptions in log.

    Description

      I am seeing an NPE that looks a lot like ISPN-1470, except this is happening in version 5.2.0.CR1 of Infinispan. I have configured Infinispan's Lucene directory provider for use in Hibernate Search. The Hibernate SessionFactory is configured with a JTA transaction manager. Starting with no index works fine, but if I shut down Tomcat (with shutdown.sh) and restart, a huge pile of exceptions occur, starting with an NPE. The cache configuration in infinispan.cfg.xml looks like the following. I will attach a log file excerpt with a sampling of the exceptions being logged. This only happens with distributed mode. Replicated mode is fine. I have seen this happen with both the Jdbm and file cache store.

      <namedCache
      name="LuceneIndexesData">
      <clustering
      mode="dist">
      <stateTransfer fetchInMemoryState="true"/>
      <sync
      replTimeout="50000" />
      <l1 enabled="false" />
      </clustering>
      <loaders shared="true" preload="true">
      <loader class="org.infinispan.loaders.file.FileCacheStore" fetchPersistentState="false" ignoreModifications="false" purgeOnStartup="false">
      <properties>
      <property name="location" value="/some/path/.index/data" />
      </properties>
      </loader>
      </loaders>
      </namedCache>

      Attachments

        Issue Links

          Activity

            People

              rh-ee-galder Galder ZamarreƱo
              cwong15_jira Christopher Wong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: