storj/satellite/audit
Yingrong Zhao 1f8f7ebf06 satellite/{audit, reputation}: fix potential nodes reputation status
inconsistency

The original design had a flaw which can potentially cause discrepancy
for nodes reputation status between reputations table and nodes table.
In the event of a failure(network issue, db failure, satellite failure, etc.)
happens between update to reputations table and update to nodes table, data
can be out of sync.
This PR tries to fix above issue by passing through node's reputation from
the beginning of an audit/repair(this data is from nodes table) to the next
update in reputation service. If the updated reputation status from the service
is different from the existing node status, the service will try to update nodes
table. In the case of a failure, the service will be able to try update nodes
table again since it can see the discrepancy of the data. This will allow
both tables to be in-sync eventually.

Change-Id: Ic22130b4503a594b7177237b18f7e68305c2f122
2022-01-06 21:05:59 +00:00
..
audit_test.go satellite/audit: move to segmentloop 2021-06-28 11:32:00 +00:00
chore.go satellite/audit: move to segmentloop 2021-06-28 11:32:00 +00:00
collector_test.go private/testplanet: move Metabase outside Metainfo for satellite 2021-09-09 07:15:51 +00:00
collector.go satellite/audit: move to segmentloop 2021-06-28 11:32:00 +00:00
containment_test.go satellite/{audit, reputation}: fix potential nodes reputation status 2022-01-06 21:05:59 +00:00
containment.go satellite/audit: migrate to new segment_pending_audit table 2021-06-28 13:19:49 +02:00
cryptosource.go all: fix dots 2020-07-16 14:58:28 +00:00
disqualification_test.go satellite/{audit, reputation}: fix potential nodes reputation status 2022-01-06 21:05:59 +00:00
getshare_test.go private/testplanet: move Metabase outside Metainfo for satellite 2021-09-09 07:15:51 +00:00
integration_test.go satellite/audits: migrate to metabase 2020-12-17 14:38:48 +02:00
pieces_test.go satellite/repair: update audit records during repair 2021-09-24 00:48:13 +00:00
pieces.go satellite/repair: update audit records during repair 2021-09-24 00:48:13 +00:00
queue_test.go satellite/audit: move to segmentloop 2021-06-28 11:32:00 +00:00
queue.go satellite/audits: migrate to metabase 2020-12-17 14:38:48 +02:00
reporter_test.go satellite/{reputation/satellitedb}: remove references to contained column in reputations table 2021-10-14 19:59:03 +00:00
reporter.go satellite/{audit, reputation}: fix potential nodes reputation status 2022-01-06 21:05:59 +00:00
reservoir_test.go satellite/audit: account for piece size during audit reservoir sampling 2021-12-01 18:17:52 +00:00
reservoir.go satellite/audit: account for piece size during audit reservoir sampling 2021-12-01 18:17:52 +00:00
reverify_test.go satellite/{audit, reputation}: fix potential nodes reputation status 2022-01-06 21:05:59 +00:00
verifier_test.go satellite/{audit, reputation}: fix potential nodes reputation status 2022-01-06 21:05:59 +00:00
verifier_unit_test.go satellite/audit: move to segmentloop 2021-06-28 11:32:00 +00:00
verifier.go satellite/{audit, reputation}: fix potential nodes reputation status 2022-01-06 21:05:59 +00:00
worker.go satellite/audit: change wording of audit worker error log 2021-08-20 13:27:16 +00:00