apache / gravitino

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
https://gravitino.apache.org
Apache License 2.0
1.1k stars 348 forks source link

[Improvement] [trino-connector] Gravitino's dynamic catalogs should be loaded before server is ready #2627

Closed xiacongling closed 6 months ago

xiacongling commented 8 months ago

What would you like to be improved?

Now, catalogs managed by Gravitino are loaded in another thread when Trino starting up. These catalogs may not be loaded before server is ready for serving and queries will fail.

How should we improve?

load catalog in metalake immediately when gravitino connector is created in current thread

jerryshao commented 7 months ago

@diqiu50 @yuqi1129 please take a look.