storj/satellite/overlay
Cameron Ayer 1de8a695e8 satellite/{overlay,satellitedb}: fix stray nodes DQ bug
We had a bug in the stray nodes chore where nodes who had not been seen
in several months were not being DQd. We figured out that this was
happening because we were using two queries: The first to grab
nodes where last_contact_success < some cutoff, the second to DQ them
unless last_contact_success == '0001-01-01 00:00:00+00'. The problem
is that if all of the nodes returned from the first query had
last_contact_success of '0001-01-01 00:00:00+00', we would pass them to
the second query which would not DQ them. This would result in the stray
nodes DQ loop ending since we found a number of nodes to DQ less than the
limit.

The fix: add the "WHERE last_contact_success != '0001-01-01
00:00:00+00'::timestamptz" to the selection query.

Change-Id: I4e60de90b68d8745d641b4467c2b23e0e56f7dff
2021-11-02 17:05:00 +00:00
..
straynodes satellite/{overlay,satellitedb}: fix stray nodes DQ bug 2021-11-02 17:05:00 +00:00
benchmark_test.go satellite/satellitedb: simplify select nodes query construction 2021-10-22 07:41:07 +00:00
checkin_test.go satellite/overlay: Ignore unnecessary check-ins 2021-06-22 09:00:41 +00:00
config.go satellite/overlay: remove reputation logic from overlay 2021-07-28 15:15:28 -04:00
db_test.go satellite/overlay: remove reputation logic from overlay 2021-07-28 15:15:28 -04: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/satellitedb: fix selection query with AOST 2021-10-19 16:59:40 +03:00
service_test.go satellite/satellitedb: remove references to contained column in nodes table 2021-10-14 19:17:46 +00:00
service.go satellite/overlay: fix UpdateCheckIn comment 2021-08-06 05:54:00 +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 testplanet/satellite: reduce the number of places default values need to be configured 2021-06-01 22:14:17 +00:00