storj/satellite/overlay
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
..
straynodes satellite/overlay/straynodes: prevent disqualification in tests 2021-11-09 12:29:21 +00:00
benchmark_test.go satellite/satellitedb: simplify select nodes query construction 2021-10-22 07:41:07 +00:00
checkin_test.go mod: bump common to fetch latest placement type changes 2021-11-16 12:42:25 +00:00
config.go satellite/geoip: update node check-in to associate a country code 2021-11-10 16:44:41 +01:00
db_test.go satellite/{audit, reputation}: fix potential nodes reputation status 2022-01-06 21:05:59 +00:00
downloadselection_test.go satellite/overlay: add DownloadSelectionCache 2021-01-29 16:47:06 +02:00
downloadselection.go satellite/overlay: add DownloadSelectionCache 2021-01-29 16:47:06 +02:00
peeridentities_test.go satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
peeridentities.go all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
piececount_test.go ci: test benchmarks 2020-07-10 13:26:49 +00:00
selection_test.go satellite/{audit, reputation}: fix potential nodes reputation status 2022-01-06 21:05:59 +00:00
service_test.go satellite/{audit, reputation}: fix potential nodes reputation status 2022-01-06 21:05:59 +00:00
service.go satellite/{audit, reputation}: fix potential nodes reputation status 2022-01-06 21:05:59 +00:00
statdb_test.go satellite/overlay: remove reputation logic from overlay 2021-07-28 15:15:28 -04:00
uploadselection_test.go satellite/overlay: remove reputation logic from overlay 2021-07-28 15:15:28 -04:00
uploadselection.go satellite/metainfo: propagate geofencing between buckets and stream id 2021-11-24 08:05:05 +00:00