storj/satellite/metabase
Michal Niewrzal 0a3ee6ff8a satellite/metabase: remove old object segments on overwrite
While adding support for pending_objects table one case was missed.
When we are uploading object to location where old objects exists
we are not removing old object segments at all. Old object is
overwritten with new object metadata but segments remains without
corresponding object. This fix removes all existing committed objects
(with it's segments) before committing new object.

https://github.com/storj/storj/issues/6255

Change-Id: Id657840edf763fd6aec8191788d819191b074fb7
2023-09-11 14:16:47 +00:00
..
metabasetest satellite/zombiedeletion: remove inactive uploads from pending_objects 2023-09-07 18:47:29 +00:00
rangedloop satellite/repair/repairer: fix NumHealthyInExcludedCountries calculation 2023-07-10 12:01:19 +02:00
zombiedeletion satellite/zombiedeletion: remove inactive uploads from pending_objects 2023-09-07 18:47:29 +00:00
alias_test.go ci: fix lint errors 2021-05-17 13:37:31 +00:00
alias.go satellite/metabase,cmd/tools/segment-verify: simplify interface 2022-10-06 13:42:00 +00:00
aliascache_test.go satellite/metabase: expose ConvertNodesToAliases and ConvertAliasesToNodes 2022-09-15 13:56:10 +00:00
aliascache.go satellite/metabase: reuse Pieces while looping segments 2023-07-12 09:29:34 +00:00
aliaspiece_test.go satellite/metabase: move package one level higher 2021-04-21 15:54:22 +03:00
aliaspiece.go satellite/metabase: move package one level higher 2021-04-21 15:54:22 +03:00
bench_expired_test.go all: fix nolint directives 2022-10-11 18:31:20 +00:00
bench_test.go all: fix nolint directives 2022-10-11 18:31:20 +00:00
commit_object_test.go satellite/metabase: define a local ErrObjectNotFound 2023-04-19 12:03:01 +00:00
commit_object.go all: fix golangci failures 2023-08-09 11:44:44 +03:00
commit_test.go satellite/metabase: remove old object segments on overwrite 2023-09-11 14:16:47 +00:00
commit.go satellite/metabase: remove old object segments on overwrite 2023-09-11 14:16:47 +00:00
common_test.go satellite/metabase: add piece size calculation to segment 2023-02-22 11:04:02 +00:00
common.go satellite/metabase: add pending_objects table 2023-07-26 20:00:58 +00:00
consts_test.go satellite/metabase: move package one level higher 2021-04-21 15:54:22 +03:00
copy_object_test.go satellite/metainfo: remove ServerSideCopyDuplicateMetadata 2023-08-08 12:15:10 +00:00
copy_object.go satellite/metainfo: remove ServerSideCopyDuplicateMetadata 2023-08-08 12:15:10 +00:00
db_internal_test.go satellite/metabase/segmentloop: limit max interval 2021-06-10 17:06:33 +00:00
db_test.go satellite/metabase: drop alias migration code 2021-05-07 12:13:28 +03:00
db.go satellite/metabase: add pending_objects table 2023-07-26 20:00:58 +00:00
delete_bucket_test.go satellite/metabase: delete bucket deletes also from pending_objects 2023-08-21 14:05:13 +00:00
delete_bucket.go satellite/metabase: delete bucket deletes also from pending_objects 2023-08-21 14:05:13 +00:00
delete_objects_test.go satellite/zombiedeletion: remove inactive uploads from pending_objects 2023-09-07 18:47:29 +00:00
delete_objects.go satellite/zombiedeletion: remove inactive uploads from pending_objects 2023-09-07 18:47:29 +00:00
delete_test.go satellite/{metainfo,metabase}: delete from pending_objects table 2023-08-21 08:06:23 +00:00
delete.go satellite/{metainfo,metabase}: delete from pending_objects table 2023-08-21 08:06:23 +00:00
encoding.go satellite/metabase: deletion query as explicit transaction 2022-03-31 11:40:36 +00:00
get_test.go satellite/metabase: adjust BucketEmpty to use pending_objects table 2023-08-21 15:01:59 +00:00
get.go satellite/metabase: adjust BucketEmpty to use pending_objects table 2023-08-21 15:01:59 +00:00
iterator_test.go satellite/metabase: make UploadID stable for different options 2022-11-10 17:35:36 +00:00
iterator_util_test.go satellite/metabase: fix listing prefixes with cursor set 2021-07-07 14:30:46 +00:00
iterator.go satellite/metabase: make UploadID stable for different options 2022-11-10 17:35:36 +00:00
list_objects_test.go satellite/metabase: ListObjects 2022-09-20 11:15:44 +00:00
list_objects.go satellite/metabase: convert bucket name to bytes for queries 2023-06-29 10:43:35 +00:00
list_segments_test.go satellite/metainfo: remove ServerSideCopyDuplicateMetadata 2023-08-08 12:15:10 +00:00
list_segments.go satellite/metainfo: remove ServerSideCopyDuplicateMetadata 2023-08-08 12:15:10 +00:00
list_verify_segments_test.go satellite/metabase: add logic for verifying segments in given buckets 2022-12-08 09:45:15 +00:00
list_verify_segments.go satellite/metabase: convert bucket name to bytes for queries 2023-06-29 10:43:35 +00:00
list.go satellite/metabase: add IteratePendingObjectsByKeyNew method 2023-08-21 08:08:03 +00:00
loop_test.go satellite/accounting/tally: save tallies in a batches 2023-06-22 17:02:26 +00:00
loop.go satellite/metabase: reuse Pieces while looping segments 2023-07-12 09:29:34 +00:00
metadata_test.go satellite/metabase: define a local ErrObjectNotFound 2023-04-19 12:03:01 +00:00
metadata.go satellite/metabase: define a local ErrObjectNotFound 2023-04-19 12:03:01 +00:00
migrate_test.go metabase: use predefined snapshot for unit tests avoid migration 2022-06-01 12:07:00 +00:00
move_object_test.go satellite/metabase: define a local ErrObjectNotFound 2023-04-19 12:03:01 +00:00
move_object.go satellite/metabase: define a local ErrObjectNotFound 2023-04-19 12:03:01 +00:00
pending_objects_iterator_test.go satellite/metabase: add IteratePendingObjectsByKeyNew method 2023-08-21 08:08:03 +00:00
pending_objects_iterator.go satellite/metabase: add IteratePendingObjectsByKeyNew method 2023-08-21 08:08:03 +00:00
raw.go satellite/metainfo: remove ServerSideCopyDuplicateMetadata 2023-08-08 12:15:10 +00:00
stats_test.go satellite/metabase: use table stats if are up to date 2023-03-13 14:54:13 +00:00
stats.go satellite/metabase: sort stats by creation time not number of entries 2023-03-30 12:31:45 +00:00
streamstat_test.go satellite/metainfo: remove ServerSideCopyDuplicateMetadata 2023-08-08 12:15:10 +00:00
streamstat.go satellite/metainfo: remove ServerSideCopyDuplicateMetadata 2023-08-08 12:15:10 +00:00
update_test.go storage: move errors to better locations 2023-04-06 17:26:29 +03:00
update.go storage: move errors to better locations 2023-04-06 17:26:29 +03:00
util.go satellite/metabase: add intLimitRange 2021-07-19 07:51:16 +00:00