Improve tree node switching #115

Merged
Collaborator

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
8b41fbeed0 [#110] tree: Update errors to switch endpoint
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
efdde64c23 [#110] tree: Add more logs for switching tree endpoints
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"))

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.
There is no content yet.