1de8a695e8
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 |
||
---|---|---|
.. | ||
straynodes | ||
benchmark_test.go | ||
checkin_test.go | ||
config.go | ||
db_test.go | ||
downloadselection_test.go | ||
downloadselection.go | ||
peeridentities_test.go | ||
peeridentities.go | ||
piececount_test.go | ||
selection_test.go | ||
service_test.go | ||
service.go | ||
statdb_test.go | ||
uploadselection_test.go | ||
uploadselection.go |