-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
dumpling/gcs: fix http client credential problem #29414
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
maxIdleConnsPerHost := http.DefaultMaxIdleConnsPerHost | ||
if conf.Threads > maxIdleConnsPerHost { | ||
maxIdleConnsPerHost = conf.Threads | ||
} |
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.
this conf.Threads
no longer affects the HTTP client though
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.
We don't support certification well now when we specify our own httpClient
. I add a TODO maybe we can do this better in the future.
/merge (check_dev_2 error is caused by #29412) |
This pull request has been accepted and is ready to merge. Commit hash: a4fa34b
|
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.3 in PR #29458 |
What problem does this PR solve?
Dumpling will fail to export data to GCS because of a lack of privileges when we set our own HTTP client without specifying transport tls.
Issue Number: close #xxx
Problem Summary:
What is changed and how it works?
Check List
Tests
Test dump data with dumpling before/after this commit. Before this commit GCS will return a gcs error "google api: Error 401: anonymous caller does not have storage.object.create access to the Google Cloud Storage object.". After this commit dumpling can successfully dump data to GCS.
Release note