You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Andrzej Bialecki (Jira)" <ji...@apache.org> on 2020/05/04 13:03:00 UTC

[jira] [Resolved] (SOLR-14431) SegmentsInfoRequestHandler.java does not release IndexWriter

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

Andrzej Bialecki resolved SOLR-14431.
-------------------------------------
    Resolution: Fixed

I applied your fix and modified a unit test to ensure the fix works as intended. Thanks Tiziano!

> SegmentsInfoRequestHandler.java does not release IndexWriter
> ------------------------------------------------------------
>
>                 Key: SOLR-14431
>                 URL: https://issues.apache.org/jira/browse/SOLR-14431
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Admin UI
>    Affects Versions: 8.1.1, 8.5.1
>            Reporter: Tiziano Degaetano
>            Assignee: Andrzej Bialecki
>            Priority: Minor
>             Fix For: 8.6
>
>
> If withCoreInfo is false iwRef.decref() will not
> be called to release the reader lock, preventing any further writer locks.
> https://github.com/apache/lucene-solr/blob/3a743ea953f0ecfc35fc7b198f68d142ce99d789/solr/core/src/java/org/apache/solr/handler/admin/SegmentsInfoRequestHandler.java#L144
> Line 130 should be moved inside the if statement L144.
> [~ab] FYI



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org