storj/satellite/metabase
Michał Niewrzał 4da3dc8170 satellite/metabase: improve processing of key/nonce while finish copy/move
So far we assumes that metadata key/nonce cannot be empty at all
but at some point we adjusted code to accept empty metadata/key/nonce
to save DB space.

This change is adjusting how we are processing nonce while
FinishMoveObject/FinishCopyObject. We can use storj.Nonce directly
which makes code cleaner. It's also fixing issue in FinishMoveObject
where we didn't convert nonce correctly to []byte.

Part of change is disabling validation for key and nonce until
uplink will be adjusted. We need change uplink to send always
both key and nonce or non of them. Validation will be restored
as soon as change for uplink will be merged.

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

Change-Id: Ia1772bc430ae591f54c6a9ae0308a4968aa30bed
2022-03-28 14:34:21 +00:00
..
metabasetest satellite/metabase: improve processing of key/nonce while finish copy/move 2022-03-28 14:34:21 +00:00
segmentloop satellite/metabase/segmentloop: start immediately on manual trigger 2021-09-28 18:32:03 +00:00
zombiedeletion satellite/metainfo/zombiedeletion: enable chore by default 2021-12-21 13:26:18 +01:00
alias_test.go ci: fix lint errors 2021-05-17 13:37:31 +00:00
alias.go satellite/metabase: drop alias migration code 2021-05-07 12:13:28 +03:00
aliascache_test.go satellite/metabase/metabasetest: move test utils to a separate package 2021-04-26 13:12:58 +03:00
aliascache.go satellite/metabase: adjust ListSegments to return copied segments correctly 2022-03-15 09:52:22 +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 Revert "satellite/metabase: use storj.Nonce instead []byte" 2021-10-12 15:39:54 +02:00
bench_test.go satellite/metabase: drop GetObjectLatestVersion method 2022-02-02 09:40:53 +00:00
commit_object_test.go Revert "satellite/metabase: use storj.Nonce instead []byte" 2021-10-12 15:39:54 +02:00
commit_object.go Revert "satellite/metabase: use storj.Nonce instead []byte" 2021-10-12 15:39:54 +02:00
commit_test.go cmd,private,satellite: add application_name to metabase connections 2022-02-20 22:29:41 +01:00
commit.go satellite/metabase/metabasetest/create: return segments 2022-02-28 13:40:46 +00:00
common_test.go segment/{metabase,repair}: add dedicated methods on metabase.Pieces 2021-08-03 15:12:03 +00:00
common.go satellite/metabase: BeginCopyObject and FinishCopyObject 2022-02-17 13:37:39 +01: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: improve processing of key/nonce while finish copy/move 2022-03-28 14:34:21 +00:00
copy_object.go satellite/metabase: improve processing of key/nonce while finish copy/move 2022-03-28 14:34:21 +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/metainfo: add feature flag for server side copy code 2022-02-24 10:43:49 +00:00
delete_bucket_test.go Revert "satellite/metabase: use storj.Nonce instead []byte" 2021-10-12 15:39:54 +02:00
delete_bucket.go sql: capitalize keywords 2022-03-01 15:19:38 +00:00
delete_objects_test.go satellite/metabase/metabasetest/create: return segments 2022-02-28 13:40:46 +00:00
delete_objects.go satellite/metabase: send metric about zombie segment deletion 2021-10-04 16:25:23 +00:00
delete_test.go satellite/metabase/metabasetest: add EquateEmpty 2022-03-24 11:57:10 +01:00
delete.go satellite: adjust to latest CRDB version 2022-03-23 07:16:38 +00:00
encoding.go satellite/metabase: add intLimitRange 2021-07-19 07:51:16 +00:00
get_test.go satellite/metabase: improve processing of key/nonce while finish copy/move 2022-03-28 14:34:21 +00:00
get.go satellite/metabase: GetLatestObjectLastSegment for copied segments 2022-03-04 15:08:50 +00:00
iterator_test.go satellite/metabase: always include encryption in listed object 2021-11-12 05:08:01 +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: always include encryption in listed object 2021-11-12 05:08:01 +00:00
list_segments_test.go satellite/metabase: flatten copy references when copying 2022-03-20 10:29:37 +00:00
list_segments.go satellite/metabase: adjust ListSegments to return copied segments correctly 2022-03-15 09:52:22 +00:00
list.go satellite: omit system metadata fields if not requested 2021-11-08 09:19:44 +01:00
loop_test.go Revert "satellite/metabase: use storj.Nonce instead []byte" 2021-10-12 15:39:54 +02:00
loop.go satellite/metainfo: propagate geofencing between buckets and stream id 2021-11-24 08:05:05 +00:00
metadata_test.go Revert "satellite/metabase: use storj.Nonce instead []byte" 2021-10-12 15:39:54 +02:00
metadata.go Revert "satellite/metabase: use storj.Nonce instead []byte" 2021-10-12 15:39:54 +02:00
move_object_test.go satellite/metabase: improve processing of key/nonce while finish copy/move 2022-03-28 14:34:21 +00:00
move_object.go satellite/metabase: improve processing of key/nonce while finish copy/move 2022-03-28 14:34:21 +00:00
project_test.go satellite/metabase: add GetProjectSegmentCount method 2021-11-24 13:20:02 +00:00
project.go satellite/metabase: add GetProjectSegmentCount method 2021-11-24 13:20:02 +00:00
raw.go satellite/metabasetest: include copies in raw state. 2022-02-18 12:48:42 +00:00
stats_test.go satellite/metabase: add method to get table statistics 2021-06-16 18:34:55 +03:00
stats.go satellite/metabase: use db methods that pass context correctly 2021-07-29 09:32:31 +00:00
streamstat_test.go Revert "satellite/metabase: use storj.Nonce instead []byte" 2021-10-12 15:39:54 +02:00
streamstat.go satellite/metabase: use db methods that pass context correctly 2021-07-29 09:32:31 +00:00
update_test.go satellite/metainfo: drop GetSegmentByLocation 2021-12-16 16:32:45 +01:00
update.go satellite/metabase: use db methods that pass context correctly 2021-07-29 09:32:31 +00:00
util.go satellite/metabase: add intLimitRange 2021-07-19 07:51:16 +00:00