Skip to content

SDK-Update and new options - #8

Open
giraone wants to merge 11 commits into
jenshadlich:masterfrom
giraone:master
Open

SDK-Update and new options#8
giraone wants to merge 11 commits into
jenshadlich:masterfrom
giraone:master

Conversation

@giraone

@giraone giraone commented Oct 15, 2019

Copy link
Copy Markdown

This pull request contains

  1. two new options (--region and --prefix)
  2. two new operations (RANDOM_GET, RANDOM_READ_FIRST_BYTE)
  3. an update to the latest AWS SDK including some refactoring to replace deprecated methods

I have tested the change with AWS S3, minio and RedHat Ceph.

Option --region was needed get the test running against minio. The option --prefix is intended to place the test objects in "folders". I found it useful in my tests.

With the new SDK the existing RANDOM_READ has created warnings in each request, because the object was not read to the end. So I decided to offer 3 methods:

  • RANDOM_GET is more or less like the existing RANDOM_READ
  • RANDOM_READ does now a full read of the S3ObjectInputStream
  • RANDOM_READ_FIRST_BYTE reads only the first 4K bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant