storj/satellite/repair/queue
Márton Elek 84ea80c1fd satellite/repair/checker: respect autoExcludeSubnet anntation in checker rangedloop
This patch is a oneliner: rangedloop checker should check the subnets only if it's not turned off with placement annotation.
(see in satellite/repair/checker/observer.go).

But I didn't find any unit test to cover that part, so I had to write one, and I prefered to write it as a unit test not an integration test, which requires a mock repair queue (observer_unit_test.go mock.go).

Because it's small change, I also included a small change: creating a elper method to check if AutoExcludeSubnet annotation is defined

Change-Id: I2666b937074ab57f603b356408ef108cd55bd6fd
2023-08-23 13:45:09 +00:00
..
common.go storage: move errors to better locations 2023-04-06 17:26:29 +03:00
insertbuffer_test.go satellite/repair/queue: buffer batch insert 2022-05-11 09:02:20 +00:00
insertbuffer.go satellite/repair/checker: buffer repair queue 2022-05-12 16:28:05 +00:00
mock.go satellite/repair/checker: respect autoExcludeSubnet anntation in checker rangedloop 2023-08-23 13:45:09 +00:00
queue2_test.go storage: move errors to better locations 2023-04-06 17:26:29 +03:00
queue_test.go storage: move errors to better locations 2023-04-06 17:26:29 +03:00
queue.go satellite/satellitedb: outline for batch insert 2022-05-09 11:39:52 +00:00