storj/storagenode/gracefulexit
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
..
blobscleaner.go all: fix error checking 2020-07-16 19:13:14 +03:00
chore_test.go satellite/metainfo: use metabase.SegmentKey with metainfo.Service 2020-09-03 15:11:32 +00:00
chore.go storagenode/gracefulexit: omit finished exits from ListPendingExits 2021-02-01 15:28:50 +00:00
common.go storagenode/gracefulexit: retry workers faster 2020-08-24 12:27:27 +03:00
db_test.go all: fix dots 2020-07-16 14:58:28 +00:00
endpoint_test.go storagenode/internalpb: move gracefulexit.proto 2020-10-30 15:24:56 +02:00
endpoint.go storagenode/internalpb: move gracefulexit.proto 2020-10-30 15:24:56 +02:00
service.go storagenode/gracefulexit: omit finished exits from ListPendingExits 2021-02-01 15:28:50 +00:00
worker_test.go satellite/metainfo: Update metainfo RS config to more easily support multiple RS schemes. 2020-11-09 22:16:13 +00:00
worker.go {satellite,storagenode}/gracefulexit: ensure client is closed 2020-10-27 23:27:07 +02:00