storj/storagenode
paul cannon c489a70e62 storagenode/gracefulexit: omit finished exits from ListPendingExits
From the name of the function and from the way it is used (only called
in one place, from "storj.io/storagenode/gracefulexit".(*Chore).Run()),
it should not return graceful exits that have already completed.

In particular, this causes a problem in the case that a node has already
completed a graceful exit from one satellite, after which the satellite
was decommissioned and no longer in the "trusted" list. This causes an
error message to show up in the node logs every single minute like
"failed to get satellite address ... satellite \"X\" is untrusted".

https://forum.storj.io/t/error-gracefulexit-service-failed-to-get-satellite-address/11372

This change causes ListPendingExits to list pending exits only, not all
exits.

Correspondingly, the check for whether an exit is already completed, in
(*Chore).Run(), becomes unnecessary and is here removed.

Change-Id: Ia3e9bb3e92be4a32ebcbda0321e3fe61d77deaa8
2021-02-01 15:28:50 +00:00
..
apikeys multinode/console: list node infos 2021-01-05 14:49:11 +00:00
bandwidth all: minor cleanups 2020-12-16 10:47:46 +00:00
collector error handling in heldamount cash and collector delete fixed 2020-07-22 12:26:13 +00:00
console storagenode/{payouts,console}: use same time for all calculations 2021-02-01 13:59:50 +02:00
contact all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
gracefulexit storagenode/gracefulexit: omit finished exits from ListPendingExits 2021-02-01 15:28:50 +00:00
inspector all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
internalpb {satellite,storagenode}/internalpb: use specific package name 2020-10-30 17:31:08 +02:00
monitor multinode/console: list node infos 2021-01-05 14:49:11 +00:00
multinode storanode, satellite: payout renamed to payouts, expected estimation payouts added, console api for audits reworked 2021-01-18 10:56:03 +00:00
nodestats web/storagenode: remove uptime columns and references 2021-01-29 15:36:59 -05:00
notifications web/storagenode: remove uptime columns and references 2021-01-29 15:36:59 -05:00
orders satellite/orders: get bucketID from encrypted metadata in order instead of serial_numbers table 2020-12-01 15:29:32 +00:00
payouts storagenode/{payouts,console}: use same time for all calculations 2021-02-01 13:59:50 +02:00
pieces all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
piecestore storgenode/piecestore: Log upload size on Upload 2020-12-28 10:28:09 +00:00
piecetransfer storagenode/gracefulexit: logic moved from worker to service 2020-10-22 23:19:30 +00:00
preflight all: fix dots 2020-07-16 14:58:28 +00:00
pricing all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
reputation web/storagenode: remove uptime columns and references 2021-01-29 15:36:59 -05:00
retain storagenode: fixed logging about piece being moved to trash, and added logging when piece was actually deleted 2020-08-02 20:00:05 +03:00
satellites all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
storagenodedb web/storagenode: remove uptime columns and references 2021-01-29 15:36:59 -05:00
storageusage all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
trust all: add missing dots 2020-08-11 17:50:01 +03:00
version storagenode/suspensions: added offline-suspension notificatio chore + tests 2020-10-29 19:44:22 +02:00
operator.go all: fix dots 2020-07-16 14:58:28 +00:00
peer.go storagenode/payouts: fix CurrentMonthExpectations timezone handling. Estimations based on node's join date. 2021-01-25 19:03:30 +02:00