feat(bufferedread): Limit channel size in buffered reader by number of workers. by vipnydav · Pull Request #3857 · GoogleCloudPlatform/gcsfuse (original) (raw)
Description
This PR limits the channel size in static worker pool by the number of workers available as at a time the max tasks that be executed equals the number of workers and also when --read-global-max-blocks is set to -1 it tries to create a very large channel which takes upto 52s during mount and is not needed.
Link to the issue in case of a bug fix.
b/448570386
Testing details
- Manual - Done
- Unit tests - Added
- Integration tests - Automated