storj/satellite/metabase
Michal Niewrzal 975d953cb8 satellite/metabase: custom error for commit object
We stoped returning lots of errors as is to avoid leaking our internals
but some errors were meanigful for client. Example of such error is
"exceeded maximum number of parts". With this change we are wrapping
some important commit object errors with new ErrFailedPrecondition
error to be able to return it easily to uplink.

Change-Id: Id834b78362ed1920f0c3f6f1c7d9587bfd27e36a
2023-09-15 09:52:42 +00:00
..
metabasetest satellite/metabase: use constant for pending version 2023-09-12 18:01:12 +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: custom error for commit object 2023-09-15 09:52:42 +00:00
commit.go satellite/metabase: custom error for commit object 2023-09-15 09:52:42 +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: use constant for pending version 2023-09-12 18:01:12 +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: use constant for pending version 2023-09-12 18:01:12 +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/metabase: use constant for pending version 2023-09-12 18:01:12 +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/metabase: use constant for pending version 2023-09-12 18:01:12 +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: use constant for pending version 2023-09-12 18:01:12 +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