lucene-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (Jira)" <>
Subject [jira] [Commented] (SOLR-14000) clean up more static field leaks in tests
Date Tue, 03 Dec 2019 23:52:00 GMT


ASF subversion and git services commented on SOLR-14000:

Commit 165529767b1fc8a5e22f8bf38ecba3f0d202660b in lucene-solr's branch refs/heads/master
from Robert Muir
[;h=1655297 ]

SOLR-14000: clean up more static field leaks in tests

On windows, these objects can't be inspected due to security restrictions. So the test runner
fails the tests since it does not know how big the leak is.

> clean up more static field leaks in tests
> -----------------------------------------
>                 Key: SOLR-14000
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Robert Muir
>            Priority: Major
>         Attachments: SOLR-14000.patch
> See build for example, stuff
like this:
> {noformat}
> Stack Trace:
> junit.framework.AssertionFailedError: Clean up static fields (in @AfterClass?) and null
them, your test still has references to classes of which the sizes cannot be measured due
to security restrictions or Java 9 module encapsulation:
>   - private static org.apache.solr.prometheus.scraper.SolrStandaloneScraper org.apache.solr.prometheus.scraper.SolrStandaloneScraperTest.solrScraper
>   - private static org.apache.solr.client.solrj.impl.HttpSolrClient org.apache.solr.prometheus.scraper.SolrStandaloneScraperTest.solrClient
> {noformat}
> Looks like security manager issue, but its not, its just static leaks in tests. Its just
that the thing they leak can't be inspected to see how "big" the leak is (apparently the objects
were below some threshold before).
> We should just plug the leaks, null them out in AfterClass.

This message was sent by Atlassian Jira

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

View raw message