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 2016/11/03 14:30:59 UTC

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

     [ https://issues.apache.org/jira/browse/OAK-2797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chetan Mehrotra resolved OAK-2797.
----------------------------------
       Resolution: Later
    Fix Version/s:     (was: 1.6)

> 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
>              Labels: technical_debt
>
> 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)