network/cache: Add node address to error multiClient #1562

Merged
fyrchik merged 1 commit from achuprov/frostfs-node:feat/multinet_err2 into master 2024-12-19 06:45:33 +00:00
Member

#1342
context canceled is also an error that requires to add the node address.
Signed-off-by: Alexander Chuprov a.chuprov@yadro.com

#1342 `context canceled` is also an error that requires to add the node address. Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
achuprov added 1 commit 2024-12-13 16:16:37 +00:00
[#1342] network/cache: Add node address to error multiClient
All checks were successful
Vulncheck / Vulncheck (pull_request) Successful in 2m51s
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m17s
Tests and linters / gopls check (pull_request) Successful in 3m44s
Tests and linters / Run gofumpt (pull_request) Successful in 4m52s
DCO action / DCO (pull_request) Successful in 5m4s
Build / Build Components (pull_request) Successful in 6m15s
Tests and linters / Tests (pull_request) Successful in 6m30s
Tests and linters / Tests with -race (pull_request) Successful in 6m30s
Tests and linters / Staticcheck (pull_request) Successful in 6m31s
Tests and linters / Lint (pull_request) Successful in 7m14s
7320396c5f
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
achuprov requested review from storage-core-committers 2024-12-13 16:16:37 +00:00
achuprov requested review from storage-core-developers 2024-12-13 16:16:37 +00:00
aarifullin reviewed 2024-12-16 07:43:26 +00:00
@ -156,3 +156,3 @@
select {
case <-ctx.Done():
firstErr = context.Canceled
firstErr = fmt.Errorf("client connection error at %v: %w", addr, context.Canceled)
Member

This error doesn't seem to be client connection error as you're not establishing any connection yet at this moment - this is performed below.

So, how about?

firstErr = fmt.Errorf("unable to proceed with client iteration at %v: %w", addr, context.Canceled)
This error doesn't seem to be `client connection` error as you're not establishing any connection yet at this moment - this is performed below. So, how about? ```go firstErr = fmt.Errorf("unable to proceed with client iteration at %v: %w", addr, context.Canceled) ```
Owner

How about just try %v: %w?

How about just `try %v: %w`?
Author
Member

@fyrchik fixed

@fyrchik fixed
achuprov marked this conversation as resolved
achuprov force-pushed feat/multinet_err2 from 7320396c5f to b0ccf592be 2024-12-18 16:27:25 +00:00 Compare
achuprov force-pushed feat/multinet_err2 from b0ccf592be to 51ee132ea3 2024-12-18 16:27:48 +00:00 Compare
fyrchik approved these changes 2024-12-19 06:45:27 +00:00
fyrchik merged commit 51ee132ea3 into master 2024-12-19 06:45:33 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
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-node#1562
No description provided.