[JBoss JIRA] (TEIID-5258) TEIID30151 Error building Source for context item
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-5258?page=com.atlassian.jira.plugin... ]
Steven Hawkins resolved TEIID-5258.
-----------------------------------
Resolution: Duplicate Issue
Duplicate of TEIID-5242
> TEIID30151 Error building Source for context item
> -------------------------------------------------
>
> Key: TEIID-5258
> URL: https://issues.jboss.org/browse/TEIID-5258
> Project: Teiid
> Issue Type: Bug
> Components: XML Connector
> Affects Versions: 10.1
> Environment: teiid-10.1.0 on WildFly Full 11.0.0.Final (WildFly Core 3.0.8.Final)
> Reporter: dalex dalex
> Assignee: Steven Hawkins
> Attachments: failed.json
>
>
> When running the following script:
> {code:sql}
> Begin
> with t As (
> Select campaign_id, email_address, activity
> From (
> call files.getFiles(pathAndPattern => 'failed.json')
> ) f
> Cross Join
> XmlTable (
> '/root/emails'
> Passing JsonToXml('root', f.file)
> Columns
> campaign_id string,
> list_id string,
> list_is_active boolean,
> email_id string,
> email_address string,
> activity xml
> ) x
> Where activity Is Not Null
> )
> Select *
> From t Cross Join XmlTable (
> '/root/activity'
> Passing XmlElement(root, t.activity)
> Columns
> action string,
> "timestamp" timestamp,
> url string,
> ip string
> ) a;
> End;
> {code}
> teiid throws out the following error:
> {code:noformat}
> 2018-02-13 17:55:47,054 WARN [org.teiid.PROCESSOR] (Worker2_QueryProcessorQueue7) /okCCfP2/yjh TEIID30020 Processing exception for request /okCCfP2/yjh.0 'TEIID30151 Error building
> Source for context item.'. Originally TeiidProcessingException StaxToEventBridge.java:325.: org.teiid.core.TeiidProcessingException: TEIID30151 Error building Source for context item
> .
> at org.teiid.query.xquery.saxon.XQueryEvaluator.evaluateXQuery(XQueryEvaluator.java:163)
> at org.teiid.query.processor.relational.XMLTableNode$1.run(XMLTableNode.java:265)
> at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:280)
> at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:115)
> at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:206)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: nu.xom.ParsingException
> at nu.xom.Builder.build(Unknown Source)
> at nu.xom.Builder.build(Unknown Source)
> at org.teiid.query.xquery.saxon.XQueryEvaluator.evaluateXQuery(XQueryEvaluator.java:157)
> ... 7 more
> Caused by: java.lang.NullPointerException
> at net.sf.saxon.evpull.StaxToEventBridge.getSystemId(StaxToEventBridge.java:325)
> at net.sf.saxon.evpull.StaxToEventBridge.getSystemId(StaxToEventBridge.java:385)
> at net.sf.saxon.event.ContentHandlerProxyLocator.getSystemId(ContentHandlerProxyLocator.java:72)
> at nu.xom.XOMHandler.startElement(Unknown Source)
> at net.sf.saxon.event.ContentHandlerProxy.startContent(ContentHandlerProxy.java:373)
> at org.teiid.query.xquery.saxon.ContentHandlerProxyReceiver.startContent(StreamingUtils.java:291)
> at net.sf.saxon.event.ProxyReceiver.startContent(ProxyReceiver.java:177)
> at org.teiid.query.xquery.saxon.PathMapFilter.startContent(PathMapFilter.java:226)
> at net.sf.saxon.event.TreeReceiver.startContent(TreeReceiver.java:220)
> at net.sf.saxon.evpull.EventIteratorToReceiver.copy(EventIteratorToReceiver.java:78)
> at net.sf.saxon.event.Sender.sendPullEventSource(Sender.java:559)
> at net.sf.saxon.event.Sender.send(Sender.java:132)
> at net.sf.saxon.Configuration.buildDocument(Configuration.java:3361)
> at net.sf.saxon.Configuration.buildDocument(Configuration.java:3303)
> at org.teiid.query.xquery.saxon.SaxonReader.parse(StreamingUtils.java:175)
> ... 10 more
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (TEIID-5255) Assertion failed in MergeJoinStrategy.setProcessingSortRight
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-5255?page=com.atlassian.jira.plugin... ]
Steven Hawkins resolved TEIID-5255.
-----------------------------------
Fix Version/s: 10.1.1
10.0.4
10.2
Resolution: Done
This could happen more with 10+ due to TEIID-4208. The change is to not allow the sort operation to throw a blockedexception - which results in the source state being marked as open prematurely.
> Assertion failed in MergeJoinStrategy.setProcessingSortRight
> ------------------------------------------------------------
>
> Key: TEIID-5255
> URL: https://issues.jboss.org/browse/TEIID-5255
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 10.1
> Reporter: Bram Gadeyne
> Assignee: Steven Hawkins
> Fix For: 10.1.1, 10.0.4, 10.2
>
>
> 2018-02-12 09:10:44,905 ERROR [org.teiid.PROCESSOR] (Worker35_QueryProcessorQueue538707) Jtb6gbxGtFZG TEIID30019 Unexpected exception for request Jtb6gbxGtFZG.42: java.lang.AssertionError: Assertion failed.
> at org.teiid.core.util.Assertion.failed(Assertion.java:69)
> at org.teiid.core.util.Assertion.assertTrue(Assertion.java:64)
> at org.teiid.core.util.Assertion.assertTrue(Assertion.java:56)
> at org.teiid.query.processor.relational.MergeJoinStrategy.setProcessingSortRight(MergeJoinStrategy.java:381)
> ...
> In the code for this I see this comment:
> //it is possible that a delayed open will be called after the parent open
> //for now we'll just throw an assertion
> The exception occurs while executing this query:
> {code:sql}
> insert into rep38_results(admissionid, vargroup, vartype, vartime, varenttime, varstrvalue, vardoublevalue, vartimevalue,validated)
> select patientid, Labogroep, v.name, sampletime, entertime, stringvalue, varvalue,null,false
> from (
> select lc.patientid, lm.Labogroep, lm.name, lc.sampletime, lc.entertime, lc.stringvalue, lc.varvalue,
> lc.resultid, lc.ResultNo,
> row_number() over(partition by lc.patientid, lc.variableid_nieuw, lc.SampleTime order by lc.ResultID, lc.ResultNo desc) as rang
> from rep38_cohort coh
> join izisprod.P_GeneralData gd on
> gd.PatientID = cast(coh.admissionid as integer) and
> gd.Status >= 4 and gd.status <> 5
> join izisprod.U_PV_LabCorrectValues lc on
> lc.PatientID = gd.patientid and
> BITAND(lc.status, 8) = 8 and
> BITAND(lc.status, 2) <> 2 and
> lc.sampletime > PARSETIMESTAMP('2013-01-01','yyyy-MM-dd') and
> lc.sampletime between coh.studystart and coh.studyend
> join izisprod.U_P_LabMapping lm on
> lm.labogroep in ('WBC-b','INR','crp-s','Thrombocyten','Lactaat-s') and
> lm.VariableID = lc.variableid_oud
> UNION ALL
> select lc.patientid, lm.Labogroep, lm.name, lc.sampletime, lc.entertime, lc.stringvalue, lc.varvalue,
> lc.resultid, lc.ResultNo,
> row_number() over(partition by lc.patientid, lc.variableid_nieuw, lc.SampleTime order by lc.ResultID, lc.ResultNo desc) as rang
> from rep38_cohort coh
> join iziswh.P_GeneralData gd on gd.PatientID = cast(coh.admissionid as integer)
> join iziswh.U_PV_LabCorrectValues lc on
> lc.PatientID = gd.patientid and
> BITAND(lc.status, 8) = 8 and
> BITAND(lc.status, 2) <> 2 and
> lc.sampletime > PARSETIMESTAMP('2013-01-01','yyyy-MM-dd') and
> lc.sampletime between coh.studystart and coh.studyend
> join izisprod.U_P_LabMapping lm on
> lm.labogroep in ('WBC-b','INR','crp-s','Thrombocyten','Lactaat-s') and
> lm.VariableID = lc.variableid_oud
> ) v
> where v.rang = 1
> order by patientid, Labogroep, SampleTime;
> {code}
> While writing down this issue, I restarted our server and the issue is now gone so I can't reproduce it at this time. I was also planning on retrieving the SHOWPLAN contents...
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (TEIID-5255) Assertion failed in MergeJoinStrategy.setProcessingSortRight
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-5255?page=com.atlassian.jira.plugin... ]
Steven Hawkins commented on TEIID-5255:
---------------------------------------
I can induce this issue when a specific exception is thrown during the opening of the dependentaccessnode. That is likely what is occurring here - as it can effectively be a timing issue as to whether it is thrown which would make things seem inconsistent.
> Assertion failed in MergeJoinStrategy.setProcessingSortRight
> ------------------------------------------------------------
>
> Key: TEIID-5255
> URL: https://issues.jboss.org/browse/TEIID-5255
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 10.1
> Reporter: Bram Gadeyne
> Assignee: Steven Hawkins
>
> 2018-02-12 09:10:44,905 ERROR [org.teiid.PROCESSOR] (Worker35_QueryProcessorQueue538707) Jtb6gbxGtFZG TEIID30019 Unexpected exception for request Jtb6gbxGtFZG.42: java.lang.AssertionError: Assertion failed.
> at org.teiid.core.util.Assertion.failed(Assertion.java:69)
> at org.teiid.core.util.Assertion.assertTrue(Assertion.java:64)
> at org.teiid.core.util.Assertion.assertTrue(Assertion.java:56)
> at org.teiid.query.processor.relational.MergeJoinStrategy.setProcessingSortRight(MergeJoinStrategy.java:381)
> ...
> In the code for this I see this comment:
> //it is possible that a delayed open will be called after the parent open
> //for now we'll just throw an assertion
> The exception occurs while executing this query:
> {code:sql}
> insert into rep38_results(admissionid, vargroup, vartype, vartime, varenttime, varstrvalue, vardoublevalue, vartimevalue,validated)
> select patientid, Labogroep, v.name, sampletime, entertime, stringvalue, varvalue,null,false
> from (
> select lc.patientid, lm.Labogroep, lm.name, lc.sampletime, lc.entertime, lc.stringvalue, lc.varvalue,
> lc.resultid, lc.ResultNo,
> row_number() over(partition by lc.patientid, lc.variableid_nieuw, lc.SampleTime order by lc.ResultID, lc.ResultNo desc) as rang
> from rep38_cohort coh
> join izisprod.P_GeneralData gd on
> gd.PatientID = cast(coh.admissionid as integer) and
> gd.Status >= 4 and gd.status <> 5
> join izisprod.U_PV_LabCorrectValues lc on
> lc.PatientID = gd.patientid and
> BITAND(lc.status, 8) = 8 and
> BITAND(lc.status, 2) <> 2 and
> lc.sampletime > PARSETIMESTAMP('2013-01-01','yyyy-MM-dd') and
> lc.sampletime between coh.studystart and coh.studyend
> join izisprod.U_P_LabMapping lm on
> lm.labogroep in ('WBC-b','INR','crp-s','Thrombocyten','Lactaat-s') and
> lm.VariableID = lc.variableid_oud
> UNION ALL
> select lc.patientid, lm.Labogroep, lm.name, lc.sampletime, lc.entertime, lc.stringvalue, lc.varvalue,
> lc.resultid, lc.ResultNo,
> row_number() over(partition by lc.patientid, lc.variableid_nieuw, lc.SampleTime order by lc.ResultID, lc.ResultNo desc) as rang
> from rep38_cohort coh
> join iziswh.P_GeneralData gd on gd.PatientID = cast(coh.admissionid as integer)
> join iziswh.U_PV_LabCorrectValues lc on
> lc.PatientID = gd.patientid and
> BITAND(lc.status, 8) = 8 and
> BITAND(lc.status, 2) <> 2 and
> lc.sampletime > PARSETIMESTAMP('2013-01-01','yyyy-MM-dd') and
> lc.sampletime between coh.studystart and coh.studyend
> join izisprod.U_P_LabMapping lm on
> lm.labogroep in ('WBC-b','INR','crp-s','Thrombocyten','Lactaat-s') and
> lm.VariableID = lc.variableid_oud
> ) v
> where v.rang = 1
> order by patientid, Labogroep, SampleTime;
> {code}
> While writing down this issue, I restarted our server and the issue is now gone so I can't reproduce it at this time. I was also planning on retrieving the SHOWPLAN contents...
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (TEIID-5255) Assertion failed in MergeJoinStrategy.setProcessingSortRight
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-5255?page=com.atlassian.jira.plugin... ]
Work on TEIID-5255 started by Steven Hawkins.
---------------------------------------------
> Assertion failed in MergeJoinStrategy.setProcessingSortRight
> ------------------------------------------------------------
>
> Key: TEIID-5255
> URL: https://issues.jboss.org/browse/TEIID-5255
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 10.1
> Reporter: Bram Gadeyne
> Assignee: Steven Hawkins
>
> 2018-02-12 09:10:44,905 ERROR [org.teiid.PROCESSOR] (Worker35_QueryProcessorQueue538707) Jtb6gbxGtFZG TEIID30019 Unexpected exception for request Jtb6gbxGtFZG.42: java.lang.AssertionError: Assertion failed.
> at org.teiid.core.util.Assertion.failed(Assertion.java:69)
> at org.teiid.core.util.Assertion.assertTrue(Assertion.java:64)
> at org.teiid.core.util.Assertion.assertTrue(Assertion.java:56)
> at org.teiid.query.processor.relational.MergeJoinStrategy.setProcessingSortRight(MergeJoinStrategy.java:381)
> ...
> In the code for this I see this comment:
> //it is possible that a delayed open will be called after the parent open
> //for now we'll just throw an assertion
> The exception occurs while executing this query:
> {code:sql}
> insert into rep38_results(admissionid, vargroup, vartype, vartime, varenttime, varstrvalue, vardoublevalue, vartimevalue,validated)
> select patientid, Labogroep, v.name, sampletime, entertime, stringvalue, varvalue,null,false
> from (
> select lc.patientid, lm.Labogroep, lm.name, lc.sampletime, lc.entertime, lc.stringvalue, lc.varvalue,
> lc.resultid, lc.ResultNo,
> row_number() over(partition by lc.patientid, lc.variableid_nieuw, lc.SampleTime order by lc.ResultID, lc.ResultNo desc) as rang
> from rep38_cohort coh
> join izisprod.P_GeneralData gd on
> gd.PatientID = cast(coh.admissionid as integer) and
> gd.Status >= 4 and gd.status <> 5
> join izisprod.U_PV_LabCorrectValues lc on
> lc.PatientID = gd.patientid and
> BITAND(lc.status, 8) = 8 and
> BITAND(lc.status, 2) <> 2 and
> lc.sampletime > PARSETIMESTAMP('2013-01-01','yyyy-MM-dd') and
> lc.sampletime between coh.studystart and coh.studyend
> join izisprod.U_P_LabMapping lm on
> lm.labogroep in ('WBC-b','INR','crp-s','Thrombocyten','Lactaat-s') and
> lm.VariableID = lc.variableid_oud
> UNION ALL
> select lc.patientid, lm.Labogroep, lm.name, lc.sampletime, lc.entertime, lc.stringvalue, lc.varvalue,
> lc.resultid, lc.ResultNo,
> row_number() over(partition by lc.patientid, lc.variableid_nieuw, lc.SampleTime order by lc.ResultID, lc.ResultNo desc) as rang
> from rep38_cohort coh
> join iziswh.P_GeneralData gd on gd.PatientID = cast(coh.admissionid as integer)
> join iziswh.U_PV_LabCorrectValues lc on
> lc.PatientID = gd.patientid and
> BITAND(lc.status, 8) = 8 and
> BITAND(lc.status, 2) <> 2 and
> lc.sampletime > PARSETIMESTAMP('2013-01-01','yyyy-MM-dd') and
> lc.sampletime between coh.studystart and coh.studyend
> join izisprod.U_P_LabMapping lm on
> lm.labogroep in ('WBC-b','INR','crp-s','Thrombocyten','Lactaat-s') and
> lm.VariableID = lc.variableid_oud
> ) v
> where v.rang = 1
> order by patientid, Labogroep, SampleTime;
> {code}
> While writing down this issue, I restarted our server and the issue is now gone so I can't reproduce it at this time. I was also planning on retrieving the SHOWPLAN contents...
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month