storj/satellite/overlay
paul cannon c856d45cc0 satellite/overlay: fix GetNodesNetworkInOrder
We were using the UploadSelectionCache previously, which does _not_ have
all nodes, or even all online nodes, in it. So all nodes with less than
MinimumVersion, or with less than MinimumDiskSpace, or nodes suspended
for unknown audit errors, or nodes that have started graceful exit, were
all missing, and ended up having empty last_nets. Even with all that,
I'm kind of surprised how many nodes this involved, but using the upload
selection cache was definitely wrong.

This change uses the download selection cache instead, which excludes
nodes only when they are disqualified, gracefully exited (completely),
or offline.

Change-Id: Iaa07c988aa29c1eb05796ac48a6f19d69f5826c1
2023-05-19 08:08:08 +00:00
..
offlinenodes satellite/overlay/offlinenodes: insert offline nodes into node events 2022-11-18 12:10:06 -05:00
straynodes satellite/overlay: insert DQ node events for stray nodes 2022-11-04 15:48:17 +00:00
benchmark_test.go satellite/overlay: remove unused mail service from overlay 2023-03-09 12:17:35 +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/overlay: configurable meaning of last_net 2023-03-09 02:20:12 +00:00
db_test.go storj: upgrade to use latest storj/common NodeAddress 2023-01-25 01:37:26 +00:00
downloadselection_test.go satellite/overlay: insert DQ event into node events in overlay.DisqualifyNode 2022-11-04 15:18:31 +00:00
downloadselection.go satellite/*: use typed lrucache and ReadCache 2023-04-21 10:49:08 +00: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 storj: upgrade to use latest storj/common NodeAddress 2023-01-25 01:37:26 +00:00
selection_test.go satellite/repair/checker: remove segments loop parts 2023-05-08 12:19:13 +00:00
service_test.go satellite/repair/checker: remove segments loop parts 2023-05-08 12:19:13 +00:00
service.go satellite/overlay: fix GetNodesNetworkInOrder 2023-05-19 08:08:08 +00:00
statdb_test.go storj: upgrade to use latest storj/common NodeAddress 2023-01-25 01:37:26 +00:00
uploadselection_test.go satellite/overlay: configurable meaning of last_net 2023-03-09 02:20:12 +00:00
uploadselection.go satellite/overlay: fix GetNodesNetworkInOrder 2023-05-19 08:08:08 +00:00