-
Couldn't load subscription status.
- Fork 89
SDK | SDKv3Client region missing error #9228
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
Conversation
WalkthroughReplace direct AWS SDK v3 S3 client instantiation with calls to Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Caller
participant CloudUtils as cloud_utils.createSTSS3SDKv3Client
participant NooBaa as noobaa_s3_client
participant S3 as S3 API
Caller->>CloudUtils: request STS-backed S3 client params
CloudUtils->>NooBaa: get_s3_client_v3_params(creds, region, endpoint, requestHandler)
NooBaa-->>CloudUtils: SDKv3-compatible client params
CloudUtils-->>Caller: return client params
Caller->>S3: perform S3 operations using returned params
Note over CloudUtils,NooBaa: Replaces direct `new S3(...)` construction
sequenceDiagram
autonumber
participant BlockStore as block_store_s3
participant NooBaa as noobaa_s3_client
participant S3 as S3 API
BlockStore->>NooBaa: get_s3_client_v3_params(conn details, region, endpoint, reqHandler)
NooBaa-->>BlockStore: client params (with region/requestHandler)
BlockStore->>S3: execute S3 calls using returned params
Note over BlockStore: non-AWS endpoints select unsecured HTTP agent via requestHandler
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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 does not seem (per this fix) as a replication issue.
It seems like a general issue that will effect anything that use createSTSS3SDKv3Client, the replication logic is not relevent here.
Update the PR subject and description
c4fe752 to
ac12f65
Compare
afe9286 to
208193a
Compare
208193a to
78498c6
Compare
Signed-off-by: Naveen Paul <[email protected]>
78498c6 to
28c8b80
Compare
Review changes are added to code
dismissing the review to merge it.
Describe the Problem
Noobaa core throwing lots of Region is missing error and its filling log file fast.
Explain the Changes
Issues: Fixed #xxx / Gap #xxx
Testing Instructions:
Summary by CodeRabbit
Refactor
Bug Fixes