]
Johnathon Lee updated TEIID-4335:
---------------------------------
Fix Version/s: 8.7.8.6_2
No buffer when close is called
------------------------------
Key: TEIID-4335
URL:
https://issues.jboss.org/browse/TEIID-4335
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 8.7.7.6_2
Reporter: Johnathon Lee
Assignee: Steven Hawkins
Fix For: 9.1, 8.7.8.6_2, 9.0.2
Subquery that has a plan which can provide a final buffer such that no buffer is there
when close is called.
Stracktrace similar to:
{code:java}
ERROR \[org.teiid.PROCESSOR\] (Worker2_QueryProcessorQueue14) TEIID30019 Unexpected
exception for request PcSx3Ps9Yxeq.7: java.lang.NullPointerException
at
org.teiid.query.processor.relational.SubqueryAwareEvaluator$SubqueryState.close(SubqueryAwareEvaluator.java:200)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at
org.teiid.query.processor.relational.SubqueryAwareEvaluator.reset(SubqueryAwareEvaluator.java:233)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at
org.teiid.query.processor.relational.SubqueryAwareEvaluator.close(SubqueryAwareEvaluator.java:244)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at
org.teiid.query.processor.relational.SubqueryAwareRelationalNode.closeDirect(SubqueryAwareRelationalNode.java:71)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at org.teiid.query.processor.relational.AccessNode.closeDirect(AccessNode.java:517)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at org.teiid.query.processor.relational.RelationalNode.close(RelationalNode.java:332)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at org.teiid.query.processor.relational.RelationalNode.close(RelationalNode.java:335)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:297)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at org.teiid.query.processor.relational.LimitNode.nextBatchDirect(LimitNode.java:102)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:278)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at
org.teiid.query.processor.relational.ProjectNode.nextBatchDirect(ProjectNode.java:146)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:278)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at
org.teiid.query.processor.relational.RelationalPlan.nextBatch(RelationalPlan.java:136)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at org.teiid.query.processor.QueryProcessor.nextBatchDirect(QueryProcessor.java:151)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at org.teiid.query.processor.QueryProcessor.nextBatch(QueryProcessor.java:114)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:159)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:141)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at org.teiid.dqp.internal.process.RequestWorkItem.processMore(RequestWorkItem.java:450)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:332)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:51)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at org.teiid.dqp.internal.process.RequestWorkItem.run(RequestWorkItem.java:260)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:274)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at
org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:119)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at
org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:210)
[teiid-engine-8.7.7.6_2-redhat-1.jar:8.7.7.6_2-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0_65]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0_65]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_65]
{code}