storj/satellite/metabase
Michal Niewrzal f40805763e satellite/metabase: adjust segment commit to use pending_objects table
Change is adjusting CommitSegment to check pending object existence in
`pending_objects` or `objects` table.

Satellite stream id is used to determine if we need to use
`pending_objects` or `objects` table.

General goal is to support both tables until `objects` table will be
free from pending objects. Whenever it will be needed code will be
supporting both tables at once.

Part of https://github.com/storj/storj/issues/6046

Change-Id: I954444a53b4733ae6fc909420573242b02746787
2023-08-02 16:56:25 +00:00
..
metabasetest satellite/metabase: adjust BeginSegment to use pending_objects table 2023-08-02 15:30:23 +00:00
rangedloop satellite/repair/repairer: fix NumHealthyInExcludedCountries calculation 2023-07-10 12:01:19 +02:00
zombiedeletion satellite/metabase: remove AOST from deleteInactiveObjectsAndSegments 2023-06-28 13:24:14 +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 satellite/metabase: define a local ErrObjectNotFound 2023-04-19 12:03:01 +00:00
commit_test.go satellite/metabase: adjust segment commit to use pending_objects table 2023-08-02 16:56:25 +00:00
commit.go satellite/metabase: adjust segment commit to use pending_objects table 2023-08-02 16:56:25 +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/metabase: server-side copy copies metadata 2023-07-06 14:40:59 +00:00
copy_object.go satellite/metabase: server-side copy copies metadata 2023-07-06 14:40:59 +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: server-side copy copies metadata 2023-07-06 14:40:59 +00:00
delete_bucket.go satellite/metainfo: stop sending delete requests to SN 2023-06-14 10:46:02 +00:00
delete_objects_test.go satellite/metabase: remove AOST from deleteInactiveObjectsAndSegments 2023-06-28 13:24:14 +00:00
delete_objects.go satellite/metabase: remove AOST from deleteInactiveObjectsAndSegments 2023-06-28 13:24:14 +00:00
delete_test.go satellite/metainfo: remove unused method 2023-07-18 08:45:29 +00:00
delete.go satellite/metainfo: remove unused method 2023-07-18 08:45:29 +00:00
encoding.go satellite/metabase: deletion query as explicit transaction 2022-03-31 11:40:36 +00:00
get_test.go satellite/metabase: server-side copy copies metadata 2023-07-06 14:40:59 +00:00
get.go satellite/metabase: define a local ErrObjectNotFound 2023-04-19 12:03:01 +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/metabase: server-side copy copies metadata 2023-07-06 14:40:59 +00:00
list_segments.go satellite/orders: filter nodes based on segment placement 2023-06-05 13:56:22 -04: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: drop IterateObjectsAllVersions 2022-05-26 14:12:20 +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
raw.go satellite/metabase: use better label for ignoring FTS queries 2023-07-26 20:01:38 +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/metabase: server-side copy copies metadata 2023-07-06 14:40:59 +00:00
streamstat.go satellite/metabase: fix GetStreamPieceCountByNodeID full table scan 2023-01-10 23:35:22 +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