storj/satellite/metainfo
Michal Niewrzal 95a5cfe647 satellite/buckets: handle bucket exists better
In some rare cases when two entities are trying to create the same
bucket at the same time it's possible that we will return internal
error instead of `bucket already exists`. It's because we are not
handling correctly DB error about constraint error. This change checks
if while inserting bucket into DB we got constraint error and propagate
correct error to metainfo API.

Change-Id: Ie6fd2c943b864b4ea7d71e4a162e74dc3510e386
2023-08-23 14:40:31 +00:00
..
expireddeletion satellite/{metainfo,metabase}: optimize expired/zombie objects deletion 2023-06-09 11:22:46 +00:00
pointerverification satellite/metabase: add piece size calculation to segment 2023-02-22 11:04:02 +00:00
attribution_test.go satellite/metainfo: set user_agent in bucket_metainfos on bucket recreation 2023-07-12 21:48:05 +00:00
attribution.go satellite/metainfo: set user_agent in bucket_metainfos on bucket recreation 2023-07-12 21:48:05 +00:00
batch_test.go satellite/metainfo: add missing metadata validation 2022-08-23 16:56:45 +02:00
batch.go satellite/metainfo: endpoint cleanup 2021-08-26 09:52:38 +00:00
config_test.go Merge 'master' branch 2020-11-10 11:58:59 +00:00
config.go satellite/metainfo: increase default MaxEncryptedObjectKeyLength 2023-08-21 14:03:16 -06:00
endpoint_bucket_test.go satellite/metainfo: do full bucket validation only on create 2023-07-17 16:15:33 +02:00
endpoint_bucket.go satellite/buckets: handle bucket exists better 2023-08-23 14:40:31 +00:00
endpoint_internal_test.go satellite/metainfo: hardcode the prefix 2023-05-04 17:06:51 +03:00
endpoint_object_test.go satellite/{metainfo,metabase}: delete from pending_objects table 2023-08-21 08:06:23 +00:00
endpoint_object.go satellite/{metainfo,metabase}: delete from pending_objects table 2023-08-21 08:06:23 +00:00
endpoint_segment_test.go satellite/orders: filter nodes based on segment placement 2023-06-05 13:56:22 -04:00
endpoint_segment.go satellite/metabase: adjust segment commit to use pending_objects table 2023-08-02 16:56:25 +00:00
endpoint_test.go satellite/*: changes to stop using storj.ListDirection 2023-04-19 15:30:42 +03:00
endpoint.go satellite/metainfo: stop sending delete requests to SN 2023-06-14 10:46:02 +00:00
signing.go satellite/metainfo: use deterministic signing for satStreamID 2021-01-19 15:56:29 +00:00
validation_test.go satellite: use evenkit instead of evenstat/top endpoint 2022-10-24 11:45:12 +02:00
validation.go satellite/metainfo: do full bucket validation only on create 2023-07-17 16:15:33 +02:00
version_collector_test.go all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
version_collector.go satellite/metainfo: add storj-downloader as a known user agent 2022-11-17 16:03:54 +00:00