[teiid-issues] [JBoss JIRA] (TEIID-2432) Dynamic VDB isLoading state doesnt change on fail

Ramesh Reddy (JIRA) jira-events at lists.jboss.org
Wed Mar 13 15:16:42 EDT 2013


    [ https://issues.jboss.org/browse/TEIID-2432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12760999#comment-12760999 ] 

Ramesh Reddy commented on TEIID-2432:
-------------------------------------

Mutually exclusive states are

LOADING
ACTIVE 
FAILED

Which can be queried through "vdb.getStatus", Now as Steve says, every one of these states can have Errors and/or Warnings, you ask "hasErrors" to check if there are any. If you find that there are then you can call "getValidityErrors" for list of them. You can only connect using JDBC when the VDB is ACTIVE.


Now depending upon the metadata load requirements (Dynamic vdb vs Designer VDB) a data source may be required at deployment time or not, based on that a VDB may be marked as ACTIVE or LOADING is the data source is not available. Which Steve is saying it is a recoverable error, than can be fixed by supplying the data source.

So, if your application after deployment, is saying vdb is LOADING, then keep looking for "getValidityErrors", if you find it fix them, if there are no validity errors and status LOADING wait for status to change or until your next poll.

                
> Dynamic VDB isLoading state doesnt change on fail
> -------------------------------------------------
>
>                 Key: TEIID-2432
>                 URL: https://issues.jboss.org/browse/TEIID-2432
>             Project: Teiid
>          Issue Type: Feature Request
>          Components: AdminApi
>    Affects Versions: 8.2
>            Reporter: Mark Drilling
>            Assignee: Ramesh Reddy
>
> I am deploying a dynamic VDB and polling the isLoading state to determine when the VDB deployment is finished.  
> In my case the VDB dataSource is not available.  I can see in the server log that the deployment fails immediately, but the isLoading state remains true.
> Is this in error, or what status should we be checking? 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the teiid-issues mailing list