solr
solr copied to clipboard
SOLR-17777: Fix leaked metric registry after core unload
https://issues.apache.org/jira/browse/SOLR-17777
Description
This fixes a minor memory leak. I don't think it can have an actual impact on heap, but the fix is trivial and not risky.
Solution
This makes sure we don't re-create a registry when none exists during core unload.
Tests
Added a new test to validate we don't have the core registry anymore after unload.
@sigram tagging you as a suitable reviewer