]
Juraj Duráni commented on TEIID-4388:
-------------------------------------
I do not think so. 'waitForLoad' is connection URL property - it defines amount of
time user is willing to wait until VDB is active. However, this should be VDB/system
property. Image this scenario:
# user wants to get some data from VDB, but VDB is still loading
# after 10 seconds waiting for connection to VDB, application returns error message, that
data is not available and suggest user to try again later.
# user tries again after 5 minutes and VDB is active
If model fails to load native metadata, VDB has still status LOADING
--------------------------------------------------------------------
Key: TEIID-4388
URL:
https://issues.jboss.org/browse/TEIID-4388
Project: Teiid
Issue Type: Bug
Affects Versions: 8.12.5
Reporter: Juraj Duráni
Assignee: Steven Hawkins
If one model fails to load native metadata, VDB's status is still LOADING.
{code:plain|title=CLI status}
[standalone@localhost:9999 /] /subsystem=teiid:get-vdb(vdb-name=test,vdb-version=1)
{
"outcome" => "success",
"result" => {
"vdb-name" => "test",
"status" => "LOADING",
"vdb-version" => 1,
...
"models" => [
{
"model-name" => "Source1",
...
"metadata-status" => "LOADED"
},
{
"model-name" => "Source2",
...
"validity-errors" => [
{
"severity" => "INFO",
"message" => "TEIID50029 VDB test.1 model
\"Source2\" metadata is currently being loaded. Start Time: 8/17/16 7:41
AM"
},
{
"severity" => "ERROR",
"message" => "TEIID31178 Could not obtain
connection for schema Source2, but one is required for metadata load. "
}
],
...
"metadata-status" => "FAILED"
},
{
"model-name" => "Source3",
...
"metadata-status" => "LOADED"
}
]
}
}
{code}