Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-13171

Ajax issue picker leaks searchers in threadlocal variable which results in index exceptions on windows when re-indexing

    XMLWordPrintable

Details

    Description

      Currently the searchers are closed via the JIRAProfilingFilter. The problem is that this filter is not mapped to /dwr/*, which gets invoked by the ajax issue picker. This results in searchers being leaked, which end up holding references to index files on the disk, which causes indexing exceptions when re-indexing all issues (particularly when it comes to deleting index files).

      This issue only affects JIRA 3.10, in which the issue picker was first implemented.

      For a quick fix for JIRA 3.10.1, we should call ThreadLocalQueryProfiler.resetSearchers from teh RequestCleanupFitler, to ensure searchers will be closed for all requests. In the long run (JIRA 3.11) we should move the searchers from teh ThreadLocalQueryProfiler to another class.

      The workaround for this problem at the moment is to restart JIRA and re-index your JIRA instance.

      Attachments

        Issue Links

          Activity

            People

              andreask@atlassian.com Andreas Knecht (Inactive)
              dushan@atlassian.com Dushan Hanuska [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: