Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: managed upload resolves config repeatedly (#3700)
* fix: managed upload not to resolve config repeatedly Previously the managed upload creates new S3 clients with the constructor parameters of the S3 client used to create the managed upload. That results in that the newly created S3 client needs to resolve every config, including the credentials over and over again. This issue was introduced by #3109 to make sure the internal S3 client inside of managed upload has the same constructor parameters of the S3 client used to create the managed upload. So that the logic relies on the constructor parameters like access point and endpoint discovery works properly. This change supply the resolved client config to create the managed upload internal S3 client so configs don't need to be resolved again, like credentials. Meanwhile, we explicitly set the constructor parameter to be the same as that of S3 client used to create the managed upload. * address feedbacks Co-authored-by: Trivikram Kamat <16024985+trivikr@users.noreply.github.com>
- Loading branch information