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

Local connection waits for active VDB 1,000,000 times longer than specified in waitForLoad property

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 8.12.5
    • Fix Version/s: 9.1, 9.0.3
    • Component/s: JDBC Driver
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Create VDB which will load metadata for long time (e.g. in my case, postgresql translator loads metadata for ~1.5 minutes)

      URL: jdbc:teiid:test.1;waitForLoad=5000 (you will reproduce this even with waitForLoad=10)

      Show
      Create VDB which will load metadata for long time (e.g. in my case, postgresql translator loads metadata for ~1.5 minutes) URL: jdbc:teiid:test.1;waitForLoad=5000 (you will reproduce this even with waitForLoad=10)
    • Bugzilla Update:
      Perform

      Description

      If user specifies waitForLoad connection property in URL, Teiid waits for longer time than specified in the property.

      I believe it is because you call Object.wait(long) method with wrong parameter [1]. In combination with TEIID-4388, from users point of view, local connection waits for active VDB for ever.

      [1] See this commit. You call method like vdb.wait(timeOutNanos);, but from javadoc: timeout - the maximum time to wait in milliseconds. It means that Teiid waits 1,000,000 times longer than specified in parameter.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  shawkins Steven Hawkins
                  Reporter:
                  jdurani Juraj Duráni
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: