Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-4466

Inconsistent synchronization around odbc sync handling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 9.1, 9.0.5, 8.12.11.6_4
    • 7.7
    • ODBC
    • None

    Description

      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.

      Attachments

        Activity

          People

            rhn-engineering-shawkins Steven Hawkins
            rhn-engineering-shawkins Steven Hawkins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: