Skip to content

Conversation

jychen7
Copy link
Collaborator

@jychen7 jychen7 commented Jan 1, 2023

Why

close #235

What

disable http2 and use http1 only for S3 like API

For reviewers

tested locally, but sorry, didn't add an integration test with mock S3/GCS container yet, seems more effort required

rusoto_s3 = { version = "0.47", default-features = false }
rusoto_credential = { version = "0.47" }
rusoto_sts = { version = "0.47", default-features = false }
rusoto_core = { version = "0.48", default-features = false }
Copy link
Collaborator Author

@jychen7 jychen7 Jan 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need upgrade and use same version, Cargo.lock at main contains both versions: 0.48 and 0.47.

roapi/Cargo.lock

Lines 606 to 609 in c0bff95

"rusoto_core 0.47.0",
"rusoto_credential 0.47.0",
"rusoto_s3",
"rusoto_sts 0.47.0",

roapi/Cargo.lock

Lines 1069 to 1072 in c0bff95

"rusoto_core 0.48.0",
"rusoto_credential 0.48.0",
"rusoto_dynamodb",
"rusoto_sts 0.48.0",

ELSE two versions point to different hyper-rustls (0.23.0 vs 0.22.1), Rust compile complains about the type

note: struct `HttpsConnector` and struct `hyper_rustls::connector::HttpsConnector` have similar names, but are actually distinct types
note: struct `HttpsConnector` is defined in crate `hyper_rustls`
   --> /Users/******/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-rustls-0.23.0/src/connector.rs:20:1
    |
20  | pub struct HttpsConnector<T> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: struct `hyper_rustls::connector::HttpsConnector` is defined in crate `hyper_rustls`
   --> /Users/******/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-rustls-0.22.1/src/connector.rs:21:1

@houqp houqp merged commit eed91fd into roapi:main Jan 1, 2023
@houqp
Copy link
Member

houqp commented Jan 1, 2023

Thank you @jychen7 !

@jychen7 jychen7 deleted the 235-rusoto-force-http1 branch January 2, 2023 01:09
@jychen7
Copy link
Collaborator Author

jychen7 commented Jan 2, 2023

welcome :D

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.

GCS as S3 Failed to list bucket when use_memory_table=true
2 participants