Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-2804

Resource adapter is not refreshed after I hit execute VDB

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 10.0
    • None
    • None
    • Hide
      • Import from different flat files (that are in different folders on disk) and do not change model name during the import (You have to do this in separate projects)
      • Create a VDB in each project and execute those VDBs.
      • Submit query to each of the VDBs
      • One of the queries fails with error message that server can not find the file
      Show
      Import from different flat files (that are in different folders on disk) and do not change model name during the import (You have to do this in separate projects) Create a VDB in each project and execute those VDBs. Submit query to each of the VDBs One of the queries fails with error message that server can not find the file

      I have a VDB with source model that references a data source (resource adapter - flat file) with name that already exists on server. Let's say the name is "adapter1".

      After I hit execute on VDB, it is deployed and I can submit a query. Submitting query reports an error that a flat file is not found. When I look to standalone.xml, the resource adapter "adapter1" is not changed and there is still the old one with wrong path to file. (both RA are of the same type - file)

      It looks like when I execute a VDB, TD checks if there is data source (resource adapter) with name specified in VDB. If there is such data source it doesn't check other properties of the data source (RA) (at least it looks like that, maybe it checks the type of RA).
      Or is this a server issue ?

      This may seem like a crazy use case, but when you go through the "import from flat file" wizard twice (with different projects) and don't change the model names you end up with two projects with same source model names. Default source model name in the wizard is "SourceModel" and I think TD uses source model name as data source name for VDB.

              Unassigned Unassigned
              mmakovy@redhat.com Matus Makovy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: