You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2015/04/22 11:06:59 UTC

[jira] [Created] (OAK-2797) Closeable aspect of Analyzer should be accounted for

Chetan Mehrotra created OAK-2797:
------------------------------------

             Summary: Closeable aspect of Analyzer should be accounted for
                 Key: OAK-2797
                 URL: https://issues.apache.org/jira/browse/OAK-2797
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: lucene
            Reporter: Chetan Mehrotra
             Fix For: 1.3.0


Lucene {{Analyzer}} implements {{Closeable}} [1] interface and internally it has a ThreadLocal storage of some persistent resource

So far in oak-lucene we do not take care of closing any analyzer. In fact we use a singleton Analyzer in all cases. Opening this bug to think about this aspect and see if our usage of Analyzer follows the best practices

[1] http://lucene.apache.org/core/4_7_0/core/org/apache/lucene/analysis/Analyzer.html#close%28%29

/cc [~teofili] [~alex.parvulescu]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)