youngyjd opened a new pull request, #8968: URL: https://github.com/apache/gravitino/pull/8968
### What changes were proposed in this pull request? Implemented lazy loading for GravitinoClient in Python GVFS (gvfs_base_operations.py): - Added double-checked locking pattern using threading.Lock() for thread-safe lazy initialization - Client parameters are stored in __init__, but client creation is deferred until first access via _get_gravitino_client() - Updated _get_fileset_catalog() to call _get_gravitino_client() instead of direct _client access ### Why are the changes needed? Fot Python GVFS fallbacks. This is a corresponding Python GVFS change based on the java gvfs change https://github.com/apache/gravitino/commit/0e0a19e0266cb0a87a8137bee012602206299756 Fix: #8948 ### Does this PR introduce _any_ user-facing change? Yes, minor behavioral change: Configuration validation and connection errors are now deferred until the first filesystem operation (e.g., exists(), ls()) instead of being thrown during filesystem initialization ### How was this patch tested? Unit tests updated and added -- 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]
