[#412] Store creation epoch in tree service #424

Merged
alexvanin merged 1 commit from mbiryukova/frostfs-s3-gw:feature/epoch_timestamps into feature/lifecycle 2024-07-23 12:21:06 +00:00
Member

Closes #412

Signed-off-by: Marina Biryukova m.biryukova@yadro.com

Closes #412 Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
mbiryukova self-assigned this 2024-07-12 12:22:33 +00:00
mbiryukova added 1 commit 2024-07-12 12:22:37 +00:00
[#412] Store creation epoch in tree service
All checks were successful
/ DCO (pull_request) Successful in 52s
/ Builds (1.20) (pull_request) Successful in 2m38s
/ Builds (1.21) (pull_request) Successful in 2m37s
/ Vulncheck (pull_request) Successful in 2m48s
/ Lint (pull_request) Successful in 4m17s
/ Tests (1.20) (pull_request) Successful in 2m58s
/ Tests (1.21) (pull_request) Successful in 2m45s
5a2a2c2326
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
dkirillov reviewed 2024-07-15 06:37:40 +00:00
@ -241,2 +240,2 @@
// prevented the container from being created.
CreateObject(context.Context, PrmObjectCreate) (oid.ID, error)
// It returns any error encountered which prevented the object from being created.
CreateObject(context.Context, PrmObjectCreate) (oid.ID, uint64, error)
Member

Let's compose returned params into struct

Let's compose returned params into struct
dkirillov marked this conversation as resolved
@ -496,2 +497,2 @@
// Returns object ID and payload sha256 hash.
func (n *Layer) objectPutAndHash(ctx context.Context, prm PrmObjectCreate, bktInfo *data.BucketInfo) (uint64, oid.ID, []byte, []byte, error) {
// Returns object size, ID, payload sha256 and md5 hashes, creation epoch.
func (n *Layer) objectPutAndHash(ctx context.Context, prm PrmObjectCreate, bktInfo *data.BucketInfo) (uint64, oid.ID, []byte, []byte, uint64, error) {
Member

Too many returned params, let's consider compose them into struct

Too many returned params, let's consider compose them into struct
dkirillov marked this conversation as resolved
mbiryukova force-pushed feature/epoch_timestamps from 5a2a2c2326 to 81820de6d4 2024-07-15 09:57:13 +00:00 Compare
mbiryukova force-pushed feature/epoch_timestamps from 81820de6d4 to a6b8656622 2024-07-15 10:08:15 +00:00 Compare
mbiryukova force-pushed feature/epoch_timestamps from a6b8656622 to 4220436d56 2024-07-22 11:21:30 +00:00 Compare
mbiryukova changed title from WIP: [#412] Store creation epoch in tree service to [#412] Store creation epoch in tree service 2024-07-22 11:30:51 +00:00
mbiryukova requested review from storage-services-committers 2024-07-22 11:31:11 +00:00
mbiryukova requested review from storage-services-developers 2024-07-22 11:31:51 +00:00
dkirillov reviewed 2024-07-22 13:19:40 +00:00
@ -94,6 +94,7 @@ const (
etagKV = "ETag"
md5KV = "MD5"
finishedKV = "Finished"
createdEpochKV = "CreatedEpoch"
Member

Maybe it's better to use CreationEpoch name?

Maybe it's better to use `CreationEpoch` name?
dkirillov marked this conversation as resolved
mbiryukova force-pushed feature/epoch_timestamps from 4220436d56 to a4a4573b10 2024-07-22 14:45:20 +00:00 Compare
dkirillov approved these changes 2024-07-23 06:33:31 +00:00
alexvanin approved these changes 2024-07-23 12:15:07 +00:00
alexvanin merged commit a4a4573b10 into feature/lifecycle 2024-07-23 12:21:05 +00:00
alexvanin deleted branch feature/epoch_timestamps 2024-07-23 12:21:07 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-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-s3-gw#424
No description provided.