node: Fix initialization of frostfsid cache #1594

Merged
fyrchik merged 2 commits from achuprov/frostfs-node:bugfix/frostfsid_cache into master 2025-01-13 06:38:47 +00:00
Member

Close #1593
Signed-off-by: Alexander Chuprov a.chuprov@yadro.com

Close #1593 Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
achuprov added 1 commit 2025-01-09 17:40:28 +00:00
[#1593] node: Fix initialization of frostfsid cache
All checks were successful
DCO action / DCO (pull_request) Successful in 34s
Tests and linters / Run gofumpt (pull_request) Successful in 28s
Vulncheck / Vulncheck (pull_request) Successful in 54s
Build / Build Components (pull_request) Successful in 1m28s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m47s
Tests and linters / Staticcheck (pull_request) Successful in 1m59s
Tests and linters / Tests (pull_request) Successful in 2m44s
Tests and linters / Lint (pull_request) Successful in 2m53s
Tests and linters / Tests with -race (pull_request) Successful in 3m22s
Tests and linters / gopls check (pull_request) Successful in 3m25s
4237297543
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
achuprov requested review from storage-core-committers 2025-01-09 17:40:29 +00:00
achuprov requested review from storage-core-developers 2025-01-09 17:40:29 +00:00
fyrchik approved these changes 2025-01-10 07:47:17 +00:00
Dismissed
@ -44,3 +44,3 @@
cacheSize := morphconfig.FrostfsIDCacheSize(c.appCfg)
if cacheSize > 0 {
if cacheSize > 0 && c.cfgMorph.cacheTTL >= 0 {
Owner

What does == 0 mean?

What does `== 0` mean?
Author
Member

You are right, 0 is not allowed. When TTL=0, the default value is set

You are right, 0 is not allowed. When TTL=0, the default value is [set](https://git.frostfs.info/TrueCloudLab/frostfs-node/src/branch/master/cmd/frostfs-node/morph.go#L55)
Owner

cmd/frostfs-node/config/morph.CacheTTL() has a comment Supports negative durations..
I do not see a value in this -- probably another place that needs fix.

`cmd/frostfs-node/config/morph.CacheTTL()` has a comment `Supports negative durations.`. I do not see a value in this -- probably another place that needs fix.
aarifullin approved these changes 2025-01-10 08:32:21 +00:00
Dismissed
achuprov force-pushed bugfix/frostfsid_cache from 4237297543 to 3f419166fb 2025-01-10 12:00:50 +00:00 Compare
achuprov dismissed fyrchik's review 2025-01-10 12:00:51 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

achuprov dismissed aarifullin's review 2025-01-10 12:00:51 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

achuprov force-pushed bugfix/frostfsid_cache from 3f419166fb to 3929c9acd5 2025-01-10 12:01:58 +00:00 Compare
achuprov force-pushed bugfix/frostfsid_cache from 3929c9acd5 to 7cf42a61d5 2025-01-10 12:12:43 +00:00 Compare
achuprov force-pushed bugfix/frostfsid_cache from 7cf42a61d5 to a2485637bb 2025-01-10 12:13:25 +00:00 Compare
acid-ant approved these changes 2025-01-10 14:26:22 +00:00
fyrchik approved these changes 2025-01-13 06:38:16 +00:00
fyrchik merged commit a2485637bb into master 2025-01-13 06:38:47 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 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#1594
No description provided.