Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-2748

Freshly imported data can error out in org.apache.lucene.store.AlreadyClosedException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Timed out
    • Low
    • None
    • 5.3 (JIRA 4.2 Compatible), 5.4
    • None

    Description

      I'm finding that if you freshly import data from an external system such as Bugzilla, and then turn on Ranking in Greenhopper, you start getting these errors randomly when viewing the Planning Board. To reproduce it, you have to click through the Projects while in the planning board.

      2010-12-21 11:24:46,413 http-8080-4 ERROR admin 684x435x1 lbp4ko 0:0:0:0:0:0:0:1 /secure/VersionBoard.jspa [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
      org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
              at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:209)
              at org.apache.lucene.index.IndexReader.document(IndexReader.java:946)
              at org.apache.lucene.search.IndexSearcher.doc(IndexSearcher.java:152)
              at com.atlassian.jira.index.DelegateSearcher.doc(DelegateSearcher.java:76)
              at com.atlassian.jira.issue.statistics.util.DocumentHitCollector.collect(DocumentHitCollector.java:22)
              at org.apache.lucene.search.HitCollectorWrapper.collect(HitCollectorWrapper.java:46)
              at org.apache.lucene.search.IndexSearcher.searchWithFilter(IndexSearcher.java:294)
              at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:254)
              at org.apache.lucene.search.Searcher.search(Searcher.java:150)
              at com.atlassian.jira.index.DelegateSearcher.search(DelegateSearcher.java:136)
              at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:241)
              at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:100)
              at sun.reflect.GeneratedMethodAccessor392.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
              at $Proxy138.search(Unknown Source)
              at sun.reflect.GeneratedMethodAccessor392.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:147)
              at $Proxy138.search(Unknown Source)
              at com.atlassian.greenhopper.service.DefaultStatService.loadStatsAndIssues(DefaultStatService.java:221)
              at com.atlassian.greenhopper.service.DefaultStatService.getSummariesForVersionIds(DefaultStatService.java:91)
              at com.pyxis.greenhopper.jira.actions.CardBoardAction.getSummaryForBoard(CardBoardAction.java:352)
              at sun.reflect.GeneratedMethodAccessor787.invoke(Unknown Source)
      

      Reindexing does not fix it.

      To fix it, I had to go through every project and click "Optimize/Repair" on the rank field. This problem ought to go away if one turns on the Greenhopper nightly rank repair service I imagine.

      Attachments

        Activity

          People

            Unassigned Unassigned
            a38518e05741 David Yu
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: