lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jessica Cheng Mallet (JIRA)" <>
Subject [jira] [Updated] (SOLR-9117) Leaking the first SolrCore after reload
Date Mon, 16 May 2016 17:04:12 GMT


Jessica Cheng Mallet updated SOLR-9117:
    Attachment: SOLR-9117.patch

> Leaking the first SolrCore after reload
> ---------------------------------------
>                 Key: SOLR-9117
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Jessica Cheng Mallet
>              Labels: core, leak
>         Attachments: SOLR-9117.patch
> When a SolrCore for a particular index is created for the first time, it's added to the
SolrCores#createdCores map. However, this map doesn't get updated when this core is reloaded,
leading to the first SolrCore being leaked.
> Taking a look at how createdCores is used, it seems like it doesn't serve any purpose
(its only read is in SolrCores#getAllCoreNames, which includes entries from SolrCores.cores
anyway), so I'm proposing a patch to remove the createdCores map completely. However, if someone
else knows that createdCores exist for a reason, I'll be happy to change the fix to updating
the createdCores map when reload is called.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message