node: Allow tombstone_lifetime config to be loaded on the fly #1405

Merged
fyrchik merged 1 commit from elebedeva/frostfs-node:feat/tombstone-reload-config into master 2024-10-02 07:27:08 +00:00
Member

Close #1306

Tested with dev-env.

Signed-off-by: Ekaterina Lebedeva ekaterina.lebedeva@yadro.com

Close #1306 Tested with `dev-env`. Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
elebedeva added the
enhancement
frostfs-node
labels 2024-10-01 13:44:24 +00:00
elebedeva requested review from storage-core-committers 2024-10-01 13:44:38 +00:00
elebedeva requested review from storage-core-developers 2024-10-01 13:44:42 +00:00
elebedeva force-pushed feat/tombstone-reload-config from 18a8aa75c8 to 2d9ad9792a 2024-10-01 14:31:06 +00:00 Compare
elebedeva force-pushed feat/tombstone-reload-config from 2d9ad9792a to 51b9a31ee3 2024-10-01 14:31:36 +00:00 Compare
acid-ant approved these changes 2024-10-02 06:06:12 +00:00
fyrchik reviewed 2024-10-02 06:21:20 +00:00
@ -106,2 +106,4 @@
}
ObjectCfg struct {
tombstoneLifetime uint64
Owner

We have this uint64 and atomic in some other place.
Could you describe why can't we have a single atomic?

We have this `uint64` and atomic in some other place. Could you describe why can't we have a single atomic?
Author
Member

I wanted to maintain the style of readConfig() and reloadConfig() where parameters firstly stored in applicationConfiguration and then are reloaded.

I wanted to maintain the style of [readConfig()](https://git.frostfs.info/TrueCloudLab/frostfs-node/src/commit/51b9a31ee3c878a8aea440a69bf39a06545192ea/cmd/frostfs-node/config.go#L203) and [reloadConfig()](https://git.frostfs.info/TrueCloudLab/frostfs-node/src/commit/51b9a31ee3c878a8aea440a69bf39a06545192ea/cmd/frostfs-node/config.go#L1281) where parameters firstly stored in `applicationConfiguration` and then are reloaded.
elebedeva force-pushed feat/tombstone-reload-config from 51b9a31ee3 to 57c31e9802 2024-10-02 07:22:09 +00:00 Compare
fyrchik approved these changes 2024-10-02 07:26:56 +00:00
fyrchik merged commit 57c31e9802 into master 2024-10-02 07:27:08 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
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#1405
No description provided.