WIP: Use DeadlineExceeded error when creating stream failed by timeout support #335

Draft
dstepanov-yadro wants to merge 1 commit from dstepanov-yadro/frostfs-sdk-go:fix/api_client_timeout_error_support into support/v1.0.0-rc.6

Clone #334

Clone https://git.frostfs.info/TrueCloudLab/frostfs-sdk-go/pulls/334
dstepanov-yadro added 1 commit 2025-02-18 06:51:08 +00:00
[#334] rpc: Use DeadlineExceeded error when creating stream failed by timeout
All checks were successful
DCO / DCO (pull_request) Successful in 31s
Tests and linters / Tests (pull_request) Successful in 47s
Tests and linters / Lint (pull_request) Successful in 2m7s
d1ef291c64
According to https://pkg.go.dev/context#pkg-variables, ContextCancelled
should be returned when the context is canceled for some reason other
than its deadline passing. So creating gRPC stream with dial timeout fits
better for context.DeadlineExceeded.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
dstepanov-yadro changed title from WIP: Use DeadlineExceeded error when creating stream failed by timeout to WIP: Use DeadlineExceeded error when creating stream failed by timeout support 2025-02-18 07:09:24 +00:00
All checks were successful
DCO / DCO (pull_request) Successful in 31s
Tests and linters / Tests (pull_request) Successful in 47s
Tests and linters / Lint (pull_request) Successful in 2m7s
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u fix/api_client_timeout_error_support:dstepanov-yadro-fix/api_client_timeout_error_support
git checkout dstepanov-yadro-fix/api_client_timeout_error_support
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-sdk-go#335
No description provided.