diqiu50 opened a new pull request, #13698:
URL: https://github.com/apache/gravitino/pull/13698

   ### What changes were proposed in this pull request?
   
   `CatalogConnectorManager` now reads all catalogs of a metalake with one 
`listCatalogsInfo()` call per refresh, instead of `listCatalogs()` followed by 
`loadCatalog()` for each catalog. If the detailed listing fails, for example 
because one catalog can't be resolved or converted, it falls back to loading 
catalogs one by one so the failure stays with that catalog. The fallback logs a 
WARN when it starts and an INFO when it recovers.
   
   ### Why are the changes needed?
   
   Each refresh sent 1 + N requests per metalake and wrote N + 1 audit records, 
even when no catalog had changed.
   
   Fix: #13697
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Added unit tests in `TestCatalogConnectorManager` for the single-listing 
path and for the per-catalog fallback. Existing tests pass.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to