Yes,

I think because the error message is very confusing, maybe RamUsageEstimator 
should catch this exception and then complain with "Class leaks a static 
instance of XXXX with unknown size."
This would make it easier for developers to figure out what's wrong.

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de


> -----Original Message-----
> From: Dawid Weiss [mailto:dawid.we...@gmail.com]
> Sent: Thursday, September 10, 2015 12:00 PM
> To: dev@lucene.apache.org
> Subject: Re: [JENKINS] Lucene-Solr-NightlyTests-5.x - Build # 953 - Still 
> Failing
> 
> RamUsageEstimator tries to measure something that is doesn't have access
> to, huh?
> 
> java.security.AccessControlException: access denied
> ("java.lang.RuntimePermission" "accessClassInPackage.sun.nio.ch")
>         at __randomizedtesting.SeedInfo.seed([4146977D8265D175]:0)
>         at
> java.security.AccessControlContext.checkPermission(AccessControlContext.j
> ava:372)
>         at
> java.security.AccessController.checkPermission(AccessController.java:559)
>         at
> java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
>         at
> java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1525)
>         at java.lang.Class.checkPackageAccess(Class.java:2309)
>         at java.lang.Class.checkMemberAccess(Class.java:2289)
>         at java.lang.Class.getDeclaredFields(Class.java:1810)
>         at
> com.carrotsearch.randomizedtesting.rules.RamUsageEstimator.createCache
> Entry(RamUsageEstimator.java:573)
> 
> On Thu, Sep 10, 2015 at 11:49 AM, Apache Jenkins Server
> <jenk...@builds.apache.org> wrote:
> > Build: https://builds.apache.org/job/Lucene-Solr-NightlyTests-5.x/953/
> >
> > 1 tests failed.
> > FAILED:
> > junit.framework.TestSuite.org.apache.lucene.index.IndexSortingTest
> >
> > Error Message:
> > access denied ("java.lang.RuntimePermission"
> > "accessClassInPackage.sun.nio.ch")
> >
> > Stack Trace:
> > java.security.AccessControlException: access denied
> ("java.lang.RuntimePermission" "accessClassInPackage.sun.nio.ch")
> >         at __randomizedtesting.SeedInfo.seed([4146977D8265D175]:0)
> >         at
> java.security.AccessControlContext.checkPermission(AccessControlContext.j
> ava:372)
> >         at
> java.security.AccessController.checkPermission(AccessController.java:559)
> >         at
> java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
> >         at
> java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1525)
> >         at java.lang.Class.checkPackageAccess(Class.java:2309)
> >         at java.lang.Class.checkMemberAccess(Class.java:2289)
> >         at java.lang.Class.getDeclaredFields(Class.java:1810)
> >         at
> com.carrotsearch.randomizedtesting.rules.RamUsageEstimator.createCache
> Entry(RamUsageEstimator.java:573)
> >         at
> com.carrotsearch.randomizedtesting.rules.RamUsageEstimator.measureSize
> Of(RamUsageEstimator.java:537)
> >         at
> com.carrotsearch.randomizedtesting.rules.RamUsageEstimator.sizeOfAll(Ra
> mUsageEstimator.java:385)
> >         at
> com.carrotsearch.randomizedtesting.rules.StaticFieldsInvariantRule$1.afterA
> lways(StaticFieldsInvariantRule.java:108)
> >         at
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat
> ementAdapter.java:43)
> >         at
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat
> ementAdapter.java:36)
> >         at
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat
> ementAdapter.java:36)
> >         at
> org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAss
> ertionsRequired.java:54)
> >         at
> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure
> .java:48)
> >         at
> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRule
> IgnoreAfterMaxFailures.java:65)
> >         at
> org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnore
> TestSuites.java:55)
> >         at
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat
> ementAdapter.java:36)
> >         at
> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.
> run(ThreadLeakControl.java:365)
> >         at java.lang.Thread.run(Thread.java:745)
> >
> >
> >
> >
> > Build Log:
> > [...truncated 8052 lines...]
> >    [junit4] Suite: org.apache.lucene.index.IndexSortingTest
> >    [junit4]   2> NOTE: test params are: codec=Asserting(Lucene53):
> {term_vectors=PostingsFormat(name=LuceneVarGapDocFreqInterval),
> id=PostingsFormat(name=MockRandom), positions=FSTOrd50,
> docs=PostingsFormat(name=MockRandom),
> norm=PostingsFormat(name=Memory doPackFST= true)},
> docValues:{sorted_set=DocValuesFormat(name=Memory),
> numeric=DocValuesFormat(name=Lucene50),
> binary=DocValuesFormat(name=Lucene50),
> sorted_numeric=DocValuesFormat(name=Asserting),
> sorted=DocValuesFormat(name=Lucene50)}, sim=DefaultSimilarity,
> locale=be_BY, timezone=America/Los_Angeles
> >    [junit4]   2> NOTE: Linux 3.13.0-52-generic amd64/Oracle Corporation
> 1.7.0_72 (64-bit)/cpus=4,threads=1,free=188195696,total=326107136
> >    [junit4]   2> NOTE: All tests run in this JVM: [TestFieldCacheReopen,
> TestFieldCacheWithThreads, TestFieldCacheSortRandom,
> TestNumericTerms32, TestIndexSplitter, TestPKIndexSplitter,
> TestMultiPassIndexSplitter, TestHighFreqTerms, SweetSpotSimilarityTest,
> TestLazyDocument, IndexSortingTest]
> >    [junit4]   2> NOTE: download the large Jenkins line-docs file by running
> 'ant get-jenkins-line-docs' in the lucene directory.
> >    [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=IndexSortingTest
> -Dtests.seed=4146977D8265D175 -Dtests.multiplier=2 -Dtests.nightly=true -
> Dtests.slow=true -Dtests.linedocsfile=/x1/jenkins/lucene-
> data/enwiki.random.lines.txt -Dtests.locale=be_BY -
> Dtests.timezone=America/Los_Angeles -Dtests.asserts=true -
> Dtests.file.encoding=ISO-8859-1
> >    [junit4] ERROR   0.00s J1 | IndexSortingTest (suite) <<<
> >    [junit4]    > Throwable #1: java.security.AccessControlException: access
> denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.nio.ch")
> >    [junit4]    >        at
> __randomizedtesting.SeedInfo.seed([4146977D8265D175]:0)
> >    [junit4]    >        at
> java.security.AccessControlContext.checkPermission(AccessControlContext.j
> ava:372)
> >    [junit4]    >        at
> java.security.AccessController.checkPermission(AccessController.java:559)
> >    [junit4]    >        at
> java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
> >    [junit4]    >        at
> java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1525)
> >    [junit4]    >        at 
> > java.lang.Class.checkPackageAccess(Class.java:2309)
> >    [junit4]    >        at 
> > java.lang.Class.checkMemberAccess(Class.java:2289)
> >    [junit4]    >        at 
> > java.lang.Class.getDeclaredFields(Class.java:1810)
> >    [junit4]    >        at java.lang.Thread.run(Thread.java:745)
> >    [junit4] Completed [14/25] on J1 in 1.09s, 9 tests, 1 error <<< FAILURES!
> >
> > [...truncated 47 lines...]
> > BUILD FAILED
> > /x1/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-
> 5.x/build.xml:792: The following error occurred while executing this line:
> > /x1/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-
> 5.x/build.xml:729: The following error occurred while executing this line:
> > /x1/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-
> 5.x/build.xml:59: The following error occurred while executing this line:
> > /x1/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-
> 5.x/lucene/build.xml:471: The following error occurred while executing this
> line:
> > /x1/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-
> 5.x/lucene/common-build.xml:2248: The following error occurred while
> executing this line:
> > /x1/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-
> 5.x/lucene/module-build.xml:58: The following error occurred while
> executing this line:
> > /x1/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-
> 5.x/lucene/common-build.xml:1452: The following error occurred while
> executing this line:
> > /x1/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-5.x/lucen
> > e/common-build.xml:1006: There were test failures: 25 suites, 184
> > tests, 1 suite-level error, 1 ignored (1 assumption)
> >
> > Total time: 249 minutes 13 seconds
> > Build step 'Invoke Ant' marked build as failure Archiving artifacts
> > Sending artifact delta relative to Lucene-Solr-NightlyTests-5.x #911
> > Archived 4 artifacts Archive block size is 32768 Received 0 blocks and
> > 232124 bytes Compression is 0.0% Took 0.17 sec Recording test results
> > Email was triggered for: Failure Sending email for trigger: Failure
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For
> > additional commands, e-mail: dev-h...@lucene.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional
> commands, e-mail: dev-h...@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to