Improve tree node switching #115

Merged
Member

Log tree method and request id on retry.
Switch on any errors but not found and access denied
Add redial for unhealthy tree clients

close #110
close #114

Log tree method and request id on retry. Switch on any errors but `not found` and `access denied` Add redial for unhealthy tree clients close #110 close #114
dkirillov self-assigned this 2023-05-19 14:12:11 +00:00
dkirillov added 2 commits 2023-05-19 14:12:12 +00:00
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
dkirillov requested review from storage-services-committers 2023-05-19 14:12:28 +00:00
dkirillov requested review from storage-services-developers 2023-05-19 14:12:28 +00:00
dkirillov force-pushed bugfix/110-update_tree_switching_condition from d8d436392d to 7edd827706 2023-05-19 14:24:20 +00:00 Compare
alexvanin approved these changes 2023-05-22 08:08:36 +00:00
alexvanin left a comment
Owner

LGTM

LGTM
@ -183,2 +188,4 @@
}
log := c.log.With(zap.String("request_id", api.GetRequestID(ctx)), zap.String("tree", treeID),
zap.String("method", "GetSubTree"))
Owner

I don't really like an idea of passing log object down to execution stack. I prefer storing required data in the context, like request_id.

Keep it this way in this PR, but let's discuss it further in #111.

I don't really like an idea of passing log object down to execution stack. I prefer storing required data in the context, like `request_id`. Keep it this way in this PR, but let's discuss it further in #111.
pogpp approved these changes 2023-05-22 09:42:38 +00:00
ironbee approved these changes 2023-05-22 09:52:28 +00:00
JuliaKovshova approved these changes 2023-05-22 10:56:38 +00:00
alexvanin merged commit 7edd827706 into support/v0.27 2023-05-22 10:58:35 +00:00
alexvanin deleted branch bugfix/110-update_tree_switching_condition 2023-05-22 10:58:36 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
5 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-s3-gw#115
No description provided.