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

Julian Hyde commented on CALCITE-687:
-------------------------------------

Still getting this. Another variation is:{noformat}java.lang.AssertionError: 
null
        at org.apache.calcite.avatica.Meta$MetaResultSet.count(Meta.java:388)
        at 
org.apache.calcite.avatica.jdbc.JdbcMeta.prepareAndExecute(JdbcMeta.java:747)
        at 
org.apache.calcite.avatica.remote.LocalService.apply(LocalService.java:140)
        at 
org.apache.calcite.avatica.remote.Service$PrepareAndExecuteRequest.accept(Service.java:264)
        at 
org.apache.calcite.avatica.remote.Service$PrepareAndExecuteRequest.accept(Service.java:245)
        at 
org.apache.calcite.avatica.remote.LocalJsonService.apply(LocalJsonService.java:36)
        at 
org.apache.calcite.avatica.RemoteDriverTest$LoggingLocalJsonService.apply(RemoteDriverTest.java:931)
        at 
org.apache.calcite.avatica.remote.JsonService.apply(JsonService.java:217)
        at 
org.apache.calcite.avatica.remote.RemoteMeta.prepareAndExecute(RemoteMeta.java:177)
        at 
org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:477)
        at 
org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:109)
        at 
org.apache.calcite.avatica.AvaticaStatement.execute(AvaticaStatement.java:121)
        at 
org.apache.calcite.avatica.RemoteDriverTest.checkStatementExecute(RemoteDriverTest.java:364)
        at 
org.apache.calcite.avatica.RemoteDriverTest.checkStatementExecute(RemoteDriverTest.java:344)
        at 
org.apache.calcite.avatica.RemoteDriverTest.testStatementExecuteLocal(RemoteDriverTest.java:285){noformat}

> Make RemoteDriverTest.testStatementLifecycle thread-safe
> --------------------------------------------------------
>
>                 Key: CALCITE-687
>                 URL: https://issues.apache.org/jira/browse/CALCITE-687
>             Project: Calcite
>          Issue Type: Bug
>          Components: avatica
>            Reporter: Julian Hyde
>            Assignee: Nick Dimiduk
>             Fix For: next
>
>
> There is apparently a thread safety issue in 
> RemoteDriverTest.testStatementLifecycle. Here is output from <a 
> href="https://travis-ci.org/julianhyde/incubator-calcite/jobs/58869949";>Travis</a>:{code}ests
>  run: 18, Failures: 1, Errors: 0, Skipped: 4, Time elapsed: 29.008 sec <<< 
> FAILURE! - in org.apache.calcite.avatica.RemoteDriverTest
> testStatementLifecycle(org.apache.calcite.avatica.RemoteDriverTest)  Time 
> elapsed: 1.807 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<1> but was:<9>
>       at org.junit.Assert.fail(Assert.java:88)
>       at org.junit.Assert.failNotEquals(Assert.java:743)
>       at org.junit.Assert.assertEquals(Assert.java:118)
>       at org.junit.Assert.assertEquals(Assert.java:555)
>       at org.junit.Assert.assertEquals(Assert.java:542)
>       at 
> org.apache.calcite.avatica.RemoteDriverTest.testStatementLifecycle(RemoteDriverTest.java:388)
> {code} Presumably this occurs in Travis because several tests are running 
> concurrently.
> I have disabled the test. We must fix this issue and re-enable the test.



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

Reply via email to