OData 4 query hangs in test run
-------------------------------
Key: TEIID-4049
URL:
https://issues.jboss.org/browse/TEIID-4049
Project: Teiid
Issue Type: Bug
Components: Query Engine
Reporter: Steven Hawkins
Assignee: Steven Hawkins
During the run of:
org.teiid.olingo.TestODataIntegration.testExpandSimple(TestODataIntegration.java:988)
The server seems to be in an indefinite wait state:
"qtp1207140081-380" #380 prio=5 os_prio=0 tid=0x00007f7c94bbb800 nid=0x3642 in
Object.wait() [0x00007f7c6a6cc000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:502)
at org.teiid.dqp.internal.process.RequestWorkItem.run(RequestWorkItem.java:287)
- locked <0x0000000770e1c130> (a org.teiid.dqp.internal.process.RequestWorkItem)
at org.teiid.dqp.internal.process.DQPCore.executeRequest(DQPCore.java:313)
at org.teiid.dqp.internal.process.DQPCore.executeRequest(DQPCore.java:245)
at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.teiid.transport.LocalServerConnection$1$1.call(LocalServerConnection.java:190)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:276)
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:260)
at org.teiid.transport.LocalServerConnection$1.invoke(LocalServerConnection.java:188)
at com.sun.proxy.$Proxy15.executeRequest(Unknown Source)
at org.teiid.jdbc.StatementImpl.execute(StatementImpl.java:673)
at org.teiid.jdbc.StatementImpl.executeSql(StatementImpl.java:539)
at org.teiid.jdbc.PreparedStatementImpl.executeQuery(PreparedStatementImpl.java:260)
at org.teiid.jdbc.PreparedStatementImpl.executeQuery(PreparedStatementImpl.java:73)
at org.teiid.olingo.service.LocalClient.executeSQL(LocalClient.java:228)
at
org.teiid.olingo.service.TeiidServiceHandler.executeQuery(TeiidServiceHandler.java:347)
at org.teiid.olingo.service.TeiidServiceHandler.read(TeiidServiceHandler.java:167)
at
org.apache.olingo.server.core.requests.DataRequest$EntityRequest.execute(DataRequest.java:302)
at org.apache.olingo.server.core.requests.DataRequest.execute(DataRequest.java:245)
at org.apache.olingo.server.core.ServiceDispatcher.execute(ServiceDispatcher.java:117)
at org.apache.olingo.server.core.OData4HttpHandler.process(OData4HttpHandler.java:65)
at org.teiid.olingo.web.ODataServlet.service(ODataServlet.java:50)
Just trying to run the test or the whole test class in isolation through many iterations
has not reproduced this, so I'm logging this for now in hopes that if others see this
we may get more details as to when it occurs.