OpenSearch/plugins/repository-gcs
Yannick Welsch ba39c261e8 Use streaming reads for GCS (#55506)
To read from GCS repositories we're currently using Google SDK's official BlobReadChannel,
which issues a new request every 2MB (default chunk size for BlobReadChannel) using range
requests, and fully downloads the chunk before exposing it to the returned InputStream. This
means that the SDK issues an awfully high number of requests to download large blobs.
Increasing the chunk size is not an option, as that will mean that an awfully high amount of
heap memory will be consumed by the download process.

The Google SDK does not provide the right abstractions for a streaming download. This PR
uses the lower-level primitives of the SDK to implement a streaming download, similar to what
S3's SDK does.

Also closes #55505
2020-04-21 13:22:26 +02:00
..
licenses Remove Unused Apache Http Dependency from GCS Repo Plugin (#54331) (#54342) 2020-03-27 15:10:19 +01:00
qa Add GCS support for searchable snapshots (#55403) 2020-04-20 13:02:59 +02:00
src Use streaming reads for GCS (#55506) 2020-04-21 13:22:26 +02:00
build.gradle Remove guava from transitive compile classpath (#54309) (#54695) 2020-04-07 23:20:17 -07:00