Egon Elbre
267506bb20
satellite/metabase: move package one level higher
...
metabase has become a central concept and it's more suitable for it to
be directly nested under satellite rather than being part of metainfo.
metainfo is going to be the "endpoint" logic for handling requests.
Change-Id: I53770d6761ac1e9a1283b5aa68f471b21e784198
2021-04-21 15:54:22 +03:00
Michal Niewrzal
8649a00557
satellite/gracefulexit: replace Path []byte
to `Key
...
metabaseSegmentKey` TransferQueueItem
We are unifying which name (and type) we are using for value we are
using to point to segment. We want to use `key` instead of `path`.
Dedicated type `metabase.SegmentKey` was created for this purposes also.
This change is doing refactoring around gracefulexit.
Change-Id: I90d51ff087b206179e61d5f1bc95f4709d76f917
2020-09-04 11:09:48 +00:00
Bill Thorp
94c11c5212
satellite: remove some unnecessary UTC() calls
...
Fixes some easy cases of extraneous UTC() calls
Change-Id: I3f4c287ae622a455b9a492a8892a699e0710ca9a
2020-03-13 13:49:44 +00:00
Egon Elbre
0c0b47823d
satellite: use require.WithinDuration
...
Noticed that assert/require has WithinDuration for comparing
time.Time-s.
Change-Id: Ia340896443f610d38799b7ef245b5775eecfc92b
2020-01-21 19:43:53 +02:00
Egon Elbre
f3b4bf2b7c
satellite/satellitedb/satellitedbtest: pass ctx as an argument
...
ctx is created in most tests, instead pass in as argument
to reduce code duplication.
Change-Id: I466c51c008392001129c8b007c9d6b3619935ac4
2020-01-20 16:35:42 +02:00
Egon Elbre
a4026f97b8
satellite: fix test time comparisons
...
Correct way to compare time that may have an error is to use InDelta.
Change-Id: I0140892119c44c63fa042bbc7292ab91bb33a350
2020-01-20 10:17:20 +00:00
Egon Elbre
6615ecc9b6
common: separate repository
...
Change-Id: Ibb89c42060450e3839481a7e495bbe3ad940610a
2019-12-27 14:11:15 +02:00
Egon Elbre
7a36507a0a
private/testcontext: ensure we call cleanup everywhere
...
Change-Id: Icb921144b651611d78f3736629430d05c3b8a7d3
2019-12-17 14:16:09 +00:00
Egon Elbre
ee6c1cac8a
private: rename internal to private ( #3573 )
2019-11-14 21:46:15 +02:00
Natalie Villasana
1a9757a7f2
satellite/gracefulexit: add count for order limits sent from satellite to exiting node ( #3544 )
2019-11-13 09:54:50 -05:00
Ethan Adams
f3dccb56b1
satellite/gracefulexit: Check if pointer has been overwritten or deleted before sending transfer message. ( #3481 )
2019-11-07 11:13:05 -05:00
Ethan Adams
9905f2c61e
add piece num to transfer queue PK ( #3390 )
2019-10-28 11:08:33 -04:00
Ethan Adams
a1275746b4
satellite/gracefulexit: Implement the 'process' endpoint on the satellite ( #3223 )
2019-10-11 17:18:05 -04:00
Ethan Adams
9edfb6efe0
satellite/satellitedb: Initial GE Satellite DB Implementation ( #3049 )
...
Initial GE Satellite DB impl
Add basic CRUD operations for graceful_exit_progress and graceful_exit_transfer_queue tables.
2019-09-25 11:12:44 -06:00