[teiid-issues] [JBoss JIRA] (TEIID-4466) Inconsistent synchronization around odbc sync handling

Steven Hawkins (JIRA) issues at jboss.org
Mon Nov 20 18:00:00 EST 2017


     [ https://issues.jboss.org/browse/TEIID-4466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Hawkins updated TEIID-4466:
----------------------------------
    Fix Version/s: 8.12.x-6.4


> Inconsistent synchronization around odbc sync handling
> ------------------------------------------------------
>
>                 Key: TEIID-4466
>                 URL: https://issues.jboss.org/browse/TEIID-4466
>             Project: Teiid
>          Issue Type: Bug
>          Components: ODBC
>    Affects Versions: 7.7
>            Reporter: Steven Hawkins
>            Assignee: Steven Hawkins
>             Fix For: 9.1, 9.0.5, 8.12.x-6.4
>
>
> There is a narrow race condition when an odbc message is followed by sync - the isExecuting check is supposed to prevent the sync until the execution is complete, but is not synchronized.
> The result can be an exception in the pg client:
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> 	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
> 	at java.util.ArrayList.get(ArrayList.java:429)
> 	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1825)
> 	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
> As the pendingExecuteQueue will have been cleared by the early response to sync.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the teiid-issues mailing list