[ 
https://issues.apache.org/jira/browse/SENTRY-1509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15603520#comment-15603520
 ] 

Anne Yu commented on SENTRY-1509:
---------------------------------

More outputs:
{noformat}
Error Message

No context information for thread: Thread[id=1, name=main, state=RUNNABLE, 
group=main]. Is this thread running under a class 
com.carrotsearch.randomizedtesting.RandomizedRunner runner context? Add 
@RunWith(class com.carrotsearch.randomizedtesting.RandomizedRunner.class) to 
your test class. Make sure your code accesses random contexts within 
@BeforeClass and @AfterClass boundary (for example, static test class 
initializers are not permitted to access random contexts).
Stacktrace

java.lang.IllegalStateException: No context information for thread: 
Thread[id=1, name=main, state=RUNNABLE, group=main]. Is this thread running 
under a class com.carrotsearch.randomizedtesting.RandomizedRunner runner 
context? Add @RunWith(class 
com.carrotsearch.randomizedtesting.RandomizedRunner.class) to your test class. 
Make sure your code accesses random contexts within @BeforeClass and 
@AfterClass boundary (for example, static test class initializers are not 
permitted to access random contexts).
        at 
com.carrotsearch.randomizedtesting.RandomizedContext.context(RandomizedContext.java:206)
        at 
com.carrotsearch.randomizedtesting.RandomizedContext.current(RandomizedContext.java:144)
        at 
org.apache.lucene.util.LuceneTestCase.getBaseTempDirForTestClass(LuceneTestCase.java:2525)
        at 
org.apache.lucene.util.LuceneTestCase.createTempDir(LuceneTestCase.java:2569)
        at 
org.apache.lucene.util.LuceneTestCase.createTempDir(LuceneTestCase.java:2557)
        at 
org.apache.solr.cloud.MiniSolrCloudCluster.<init>(MiniSolrCloudCluster.java:104)
        at 
org.apache.sentry.tests.e2e.solr.AbstractSolrSentryTestBase.beforeTestSimpleSolrEndToEnd(AbstractSolrSentryTestBase.java:148)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
        at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
        at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
        at 
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
        at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
{noformat}

> Disable solr unit tests from e2e runs.are becoming flaky
> --------------------------------------------------------
>
>                 Key: SENTRY-1509
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1509
>             Project: Sentry
>          Issue Type: Bug
>          Components: Sentry, Solr Plugin
>    Affects Versions: 1.8.0, sentry-ha-redesign
>            Reporter: Anne Yu
>            Assignee: Anne Yu
>
> Occasionally solr e2e tests fail without a known root cause. Disable them 
> from mvn test for now. But once root cause is identified, should enable these 
> tests.
> {noformat}
> No context information for thread: Thread[id=1, name=main, state=RUNNABLE, 
> group=main]. Is this thread running under a class 
> com.carrotsearch.randomizedtesting.RandomizedRunner runner context? Add 
> @RunWith(class com.carrotsearch.randomizedtesting.RandomizedRunner.class) to 
> your test class. Make sure your code accesses random contexts within 
> @BeforeClass and @AfterClass boundary (for example, static test class 
> initializers are not permitted to access random contexts).
> {noformat}
> >>> org.apache.sentry.tests.e2e.dbprovider.TestDbCrossOperations.testCrossDbTableOperations
> >>>    3 min 0 sec     2
> >>> org.apache.sentry.tests.e2e.dbprovider.TestDbCrossOperations.org.apache.sentry.tests.e2e.dbprovider.TestDbCrossOperations
> >>>  3 min 14 sec    2
> >>> org.apache.sentry.tests.e2e.solr.TestCollAdminCoreOperations.org.apache.sentry.tests.e2e.solr.TestCollAdminCoreOperations
> >>>  7.1 sec 3
> >>> org.apache.sentry.tests.e2e.solr.TestDocLevelOperations.org.apache.sentry.tests.e2e.solr.TestDocLevelOperations
> >>>    7.7 sec 3
> >>> org.apache.sentry.tests.e2e.solr.TestQueryOperations.org.apache.sentry.tests.e2e.solr.TestQueryOperations
> >>>  7.1 sec 3
> >>> org.apache.sentry.tests.e2e.solr.TestRealTimeGet.org.apache.sentry.tests.e2e.solr.TestRealTimeGet
> >>>  7.2 sec 3
> >>> org.apache.sentry.tests.e2e.solr.TestUpdateOperations.org.apache.sentry.tests.e2e.solr.TestUpdateOperations
> >>>        7.2 sec 3
> >>> org.apache.sentry.tests.e2e.solr.db.integration.TestSolrAdminOperations.org.apache.sentry.tests.e2e.solr.db.integration.TestSolrAdminOperations
> >>>    6.6 sec 3
> >>> org.apache.sentry.tests.e2e.solr.db.integration.TestSolrDocLevelOperations.org.apache.sentry.tests.e2e.solr.db.integration.TestSolrDocLevelOperations
> >>>      6.6 sec 3
> >>> org.apache.sentry.tests.e2e.solr.db.integration.TestSolrQueryOperations.org.apache.sentry.tests.e2e.solr.db.integration.TestSolrQueryOperations
> >>>    6.5 sec 3
> >>> org.apache.sentry.tests.e2e.solr.db.integration.TestSolrUpdateOperations.org.apache.sentry.tests.e2e.solr.db.integration.TestSolrUpdateOperations
> >>>  6.5 sec 3



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to