Context
LocalFSBackend._execute_lookup() calls read_bytes() with no upper bound on file size, which can OOM the server on very large binary files.
Proposed Approach
Add a max_file_size config field to BlobStorageBackendConfig (e.g., default 100 MB) and check file size before reading content.
References
Context
LocalFSBackend._execute_lookup()callsread_bytes()with no upper bound on file size, which can OOM the server on very large binary files.Proposed Approach
Add a
max_file_sizeconfig field toBlobStorageBackendConfig(e.g., default 100 MB) and check file size before reading content.References