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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 9.1, 9.0.3
    • 8.12.5
    • JDBC Driver
    • None
    • 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)

    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.

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-shawkins Steven Hawkins
              jdurani Juraj DurĂ¡ni (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: