jarredhj0214 opened a new issue, #15133:
URL: https://github.com/apache/gravitino/issues/15133

   ### What would you like to be improved?
   
   On the main branch (verified at 7d96ddcfdec014ec040b07ecb555a7e9af3898fd), 
authorization resolves securable objects to metadata IDs when loading role 
policies. When a table ID is absent from the authorization metadata-ID cache, 
including after cache expiration or invalidation, 
`MetadataIdConverter.loadId()` calls `EntityStore.get()` and then extracts the 
entity ID.
   
   For relational tables, this can load a complete `TableEntity`, including its 
column snapshot, even though authorization only needs the table ID. Loading 
roles with many table grants can therefore read and materialize substantial 
unrelated column metadata. Warm caches can hide this cost; cold or invalidated 
caches expose it.
   
   This report concerns the unnecessary metadata reads. It does not claim that 
this path explains every authorization timeout.
   
   ### How should we improve?
   
   Provide a compatible entity-ID lookup operation and optimize relational 
table lookups to read table metadata without its column snapshot. Reuse an 
existing cached entity ID when available, retain identifier normalization and 
missing-object behavior, and avoid caching incomplete table entities or 
introducing a separate name-to-ID cache.
   
   Cover cache hits and misses, authorization cache invalidation, metadata-only 
mapper selection, missing objects, storage failures, and compatibility with 
stores that only support full reads in regression tests.
   


-- 
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