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.

b/448570386

Testing details

  1. Manual - Done
  2. Unit tests - Added
  3. Integration tests - Automated

Any backward incompatible change? If so, please explain.