storj/satellite/audit
paul cannon 7652a598d8 satellite/audit: add GetAllContainedNodes method to ReverifyQueue
We will be needing an infrequent chore to check which nodes are in the
reverify queue and synchronize that set with the 'contained' field in
the nodes db, since it is easily possible for them to get out of sync.
(We can't require that the reverification queue table be in the same
database as the nodes table, so maintaining consistency with SQL
transactions is out. Plus, even if they were in the same database, using
such SQL transactions to maintain consistency would be slow and
unwieldy.)

This commit adds a method to the class representing the reverify queue
in the database, allowing us to get the list of every node that has at
least one record in the reverification queue.

Refs: https://github.com/storj/storj/issues/5431
Change-Id: Idce2633b3d63f2645170365e5cdeb2ea749fa9cb
2023-02-02 00:39:29 +00:00
..
audit_test.go satellite/audit: implement rangedloop observer 2023-01-03 08:52:01 -07:00
chore.go satellite/audit: prevent accessing unset reservoir segments 2022-12-14 17:43:17 -07:00
collector_test.go satellite/audit: prevent accessing unset reservoir segments 2022-12-14 17:43:17 -07:00
collector.go satellite/audit: implement rangedloop observer 2023-01-03 08:52:01 -07:00
common_test.go satellite/audit: implement rangedloop observer 2023-01-03 08:52:01 -07:00
containment_test.go satellite/audit: newContainment->containment 2022-12-16 17:59:52 +00:00
containment.go satellite/audit: add GetAllContainedNodes method to ReverifyQueue 2023-02-02 00:39:29 +00:00
cryptosource.go all: fix dots 2020-07-16 14:58:28 +00:00
disqualification_test.go satellite/audit: split out auditor process 2022-12-16 12:44:32 -06:00
getshare_test.go satellite/audit: implement rangedloop observer 2023-01-03 08:52:01 -07:00
integration_test.go satellite/audit: implement rangedloop observer 2023-01-03 08:52:01 -07:00
observer.go satellite/audit: implement rangedloop observer 2023-01-03 08:52:01 -07:00
pieces_test.go satellite/repair: update audit records during repair 2021-09-24 00:48:13 +00:00
pieces.go satellite/repair: move over audit.Pieces 2022-09-22 16:43:03 +00:00
queue.go satellite/audit: add GetAllContainedNodes method to ReverifyQueue 2023-02-02 00:39:29 +00:00
reporter_test.go satellite/audit: split out auditor process 2022-12-16 12:44:32 -06:00
reporter.go satellite/audit: newContainment->containment 2022-12-16 17:59:52 +00:00
reservoir_test.go satellite/audit: merge support for reservoirs 2022-12-16 15:27:55 +00:00
reservoir.go satellite/audit: merge support for reservoirs 2022-12-16 15:27:55 +00:00
reverifier_test.go satellite/audit: change signature of ReverifyPiece 2022-12-07 18:32:42 +00:00
reverifier.go satellite/audit: Begin using piecewise reverifications 2022-12-16 14:21:13 +00:00
reverify_test.go satellite/audit: implement rangedloop observer 2023-01-03 08:52:01 -07:00
reverifyworker.go satellite/audit: add audit.ReverifyWorker 2022-12-12 11:57:08 +00:00
verifier_test.go satellite/audit: implement rangedloop observer 2023-01-03 08:52:01 -07:00
verifier_unit_test.go satellite/audit: Begin using piecewise reverifications 2022-12-16 14:21:13 +00:00
verifier.go satellite/audit: newContainment->containment 2022-12-16 17:59:52 +00:00
worker.go satellite/audit: implement rangedloop observer 2023-01-03 08:52:01 -07:00