-
Notifications
You must be signed in to change notification settings - Fork 869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle S3 virtual host request type #2782
Conversation
This could be my mistake, but running the integration tests with this change I get an error
The bucket called raphael-test-bucket-e27e29e3 does exist in eu-west-2 so I'm not sure what is going on here? |
The error message says |
I'm just running the standard integration tests, with the new environment variable set to "true"... Is it possible that the request URI is still including the bucket when it doesn't need to? |
Yes. It looks like I have to update the code in multiple places. I'll revise this PR. |
@tustvold when an endpoint is given, should we assume it to comply with arrow-rs/object_store/src/aws/mod.rs Lines 420 to 428 in 7639f28
Edit: I am updating the PR assuming if the input |
I would expect the following behaviour:
|
@tustvold I updated the code. Can you please take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, just some minor nits
object_store/src/aws/mod.rs
Outdated
let bucket_endpoint: String; | ||
|
||
//If `endpoint` is provided then its assumed to be consistent with | ||
// `virutal_hosted_style_request`. i.e. if `virtual_hosted_request_style` is true then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// `virutal_hosted_style_request`. i.e. if `virtual_hosted_request_style` is true then | |
// `virtual_hosted_request_style`. i.e. if `virtual_hosted_request_style` is true then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
virtual_hosted_style_request
directly comes form AWS page defining it. See https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html. I am not inclined to make this change.
Edit: I see the problem now. I think I have to change the field name. I think it should be virtual_hosted_style_request
in all places. Will make that change.
Benchmark runs are scheduled for baseline = 3999c77 and contender = 0052d25. 0052d25 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
Which issue does this PR close?
Closes #2777
Are there any user-facing changes?
Additional input parameter to determine if the virtual host request type should be use for aws S3.