Updated the MetadataValidator to not be static and added the ability to throw validation exceptions immediately on deployment. For the non-embedded case non-preview vdbs that have metadata validation issues will be removed from the repository, since they are not reliably querable. Also simplified the VDB.Status logic, added thread safety to the IndexMetadataStore, and ensured that schemas are validated in order*. Some of the metadata changes may address issues seen with metadata validation, such as https://community.jboss.org/message/742439
*schemas were validated in name order, we want the vdb/deployment order to ensure that the user has a way to control cross schema dependencies - see TestEmbeddedServer.testDeploymentOrder
Updated the MetadataValidator to not be static and added the ability to throw validation exceptions immediately on deployment. For the non-embedded case non-preview vdbs that have metadata validation issues will be removed from the repository, since they are not reliably querable. Also simplified the VDB.Status logic, added thread safety to the IndexMetadataStore, and ensured that schemas are validated in order*. Some of the metadata changes may address issues seen with metadata validation, such as https://community.jboss.org/message/742439
*schemas were validated in name order, we want the vdb/deployment order to ensure that the user has a way to control cross schema dependencies - see TestEmbeddedServer.testDeploymentOrder