lasdf1234 commented on PR #11156: URL: https://github.com/apache/gravitino/pull/11156#issuecomment-4505354284
> How to handle the consistency issue? For example, > We have two IRC servers, > Two IRC servers cached Table A. > We modify the table A in the server 1. > Server 2 stills used the legacy data, doesn't it? The BaseTableMetadataCache.getTableMetadata() method first checks the latest metadata location of the catalog before returning the cache. If the result is inconsistent with the metadataFileLocation() in the cache, it will invalidate the cache and return an empty value (triggering a reload): <img width="1674" height="1304" alt="image" src="https://github.com/user-attachments/assets/ea331452-76f0-4ecf-ba7b-294a9cc74b73" /> <img width="1880" height="738" alt="image" src="https://github.com/user-attachments/assets/83369bff-8b28-4dc2-b2e2-c1aa5610e19d" /> -- 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]
