WIP: Cache head results in the request context #974

Closed
fyrchik wants to merge 6 commits from fyrchik/frostfs-node:head-cache into master
Owner
No description provided.
fyrchik added 6 commits 2024-02-09 14:14:55 +00:00
There is only 1 option, which is provided on every callsite.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
1. Disallow storing wrongly typed value by this key.
2. This is the way described in context.Value() documentation.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
Remove context.TODO() and allow passing RequestContext struct later.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
m
Some checks failed
DCO action / DCO (pull_request) Failing after 2m5s
Vulncheck / Vulncheck (pull_request) Successful in 2m3s
Build / Build Components (1.21) (pull_request) Successful in 4m38s
Build / Build Components (1.20) (pull_request) Successful in 4m52s
Tests and linters / Staticcheck (pull_request) Successful in 6m17s
Tests and linters / Lint (pull_request) Successful in 7m26s
Tests and linters / Tests (1.20) (pull_request) Successful in 8m10s
Tests and linters / Tests (1.21) (pull_request) Successful in 8m19s
Tests and linters / Tests with -race (pull_request) Successful in 8m41s
f3bd92aeda
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
Author
Owner

I was convinced this is not the best way to do it.
We will revisit this if we need perfomance improvements in v0.38
If not, a better implementation will follow.

I was convinced this is not the best way to do it. We will revisit this if we need perfomance improvements in v0.38 If not, a better implementation will follow.
fyrchik closed this pull request 2024-02-28 19:09:14 +00:00
fyrchik reopened this pull request 2024-03-26 13:02:25 +00:00
fyrchik closed this pull request 2024-04-16 11:04:31 +00:00
Some checks failed
DCO action / DCO (pull_request) Failing after 2m13s
Required
Details
Build / Build Components (1.21) (pull_request) Successful in 3m37s
Required
Details
Build / Build Components (1.20) (pull_request) Successful in 3m52s
Required
Details
Vulncheck / Vulncheck (pull_request) Successful in 3m35s
Required
Details
Tests and linters / gopls check (pull_request) Successful in 8m12s
Required
Details
Tests and linters / Tests (1.20) (pull_request) Successful in 8m54s
Required
Details
Tests and linters / Staticcheck (pull_request) Successful in 9m3s
Required
Details
Tests and linters / Lint (pull_request) Successful in 9m32s
Required
Details
Tests and linters / Tests (1.21) (pull_request) Successful in 9m23s
Required
Details
Tests and linters / Tests with -race (pull_request) Successful in 10m48s
Required
Details

Pull request closed

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-node#974
No description provided.