[
https://issues.apache.org/jira/browse/SOLR-17777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SOLR-17777:
----------------------------------
Labels: pull-request-available (was: )
> After core deletion, we keep an empty metric registry for this core
> -------------------------------------------------------------------
>
> Key: SOLR-17777
> URL: https://issues.apache.org/jira/browse/SOLR-17777
> Project: Solr
> Issue Type: Bug
> Components: metrics
> Affects Versions: 9.8
> Reporter: Pierre Salagnac
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> I accidentally spotted a memory leak in metric registries. When a core is
> unloaded/deleted, we keep an empty metric registry for this core.
> This might have some very minor memory impacts if there is a very large
> number of collection creations and deletions, or core splits and moves during
> the server lifespan.
>
> This happens in {{SolrMetricManager.unregisterGauges()}} which is invoked
> after the registry was already dropped. As a side effect, this method
> recreates an empty registry.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]