[#159] Add handle __SYSTEM__ sys attributes #159

Merged
fyrchik merged 1 commit from dkirillov/frostfs-node:feature/add_frostfs_system_attribute into master 2023-03-23 08:10:22 +00:00
Member
Related to https://git.frostfs.info/TrueCloudLab/frostfs-http-gw/pulls/22
dkirillov changed title from WIP: [#XX] Add handle __SYSTEM__ sys attributes to WIP: [#159] Add handle __SYSTEM__ sys attributes 2023-03-22 06:45:38 +00:00
dkirillov force-pushed feature/add_frostfs_system_attribute from d8f5a139bc to b198584b73 2023-03-22 06:46:17 +00:00 Compare
dkirillov force-pushed feature/add_frostfs_system_attribute from b198584b73 to 567d8475e9 2023-03-22 06:46:30 +00:00 Compare
dkirillov changed title from WIP: [#159] Add handle __SYSTEM__ sys attributes to [#159] Add handle __SYSTEM__ sys attributes 2023-03-22 07:44:48 +00:00
dkirillov requested review from storage-core-developers 2023-03-22 07:44:54 +00:00
dkirillov requested review from storage-core-committers 2023-03-22 07:44:54 +00:00
dkirillov requested review from alexvanin 2023-03-22 07:46:04 +00:00
fyrchik reviewed 2023-03-22 08:26:54 +00:00
CHANGELOG.md Outdated
@ -69,6 +70,8 @@ You need to change configuration environment variables to `FROSTFS_*` if you use
New config field `object.delete.tombstone_lifetime` allows to set tombstone lifetime
more appropriate for a specific deployment.
Use `__SYSTEM__` prefix for system attributes instead of `__NEOFS__`.
Owner

Not obvious whether __NEOFS__ is still supported.

Not obvious whether `__NEOFS__` is still supported.
@ -111,3 +111,3 @@
// expired previously for less than the one epoch duration
var expired bool
expired := isExpiredWithAttribute(tx, objectV2.SysAttributeExpEpoch, addr, currEpoch)
Owner

Can we do this only if the bucket does not exist? If it exists, we should not bother checking the second.
Also, we should validate in service that only 1 of the prefixes is used.

Can we do this only if _the bucket_ does not exist? If it exists, we should not bother checking the second. Also, we should validate in service that only 1 of the prefixes is used.
@ -60,7 +60,10 @@ func (db *DB) iterateExpired(tx *bbolt.Tx, epoch uint64, h ExpiredObjectHandler)
err := tx.ForEach(func(name []byte, b *bbolt.Bucket) error {
cidBytes := cidFromAttributeBucket(name, objectV2.SysAttributeExpEpoch)
Owner

Can we try having 1 bucket on the metabase level? I think translation could be done on an upper level.

Can we try having 1 bucket on the metabase level? I think translation could be done on an upper level.
Owner

Okay, it can make our code more complex without many benefits. Let's postpone this discussion.

Okay, it can make our code more complex without many benefits. Let's postpone this discussion.
fyrchik marked this conversation as resolved
dkirillov force-pushed feature/add_frostfs_system_attribute from 567d8475e9 to 841d5a8add 2023-03-22 11:55:49 +00:00 Compare
dkirillov force-pushed feature/add_frostfs_system_attribute from 841d5a8add to 342e571d89 2023-03-22 14:35:43 +00:00 Compare
fyrchik approved these changes 2023-03-23 06:04:46 +00:00
acid-ant approved these changes 2023-03-23 08:04:03 +00:00
fyrchik merged commit 342e571d89 into master 2023-03-23 08:10:22 +00:00
dkirillov deleted branch feature/add_frostfs_system_attribute 2023-03-23 12:23:32 +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#159
No description provided.