From 7b8e91ff28c6b9256340420517b26c43daf0ca2c Mon Sep 17 00:00:00 2001 From: paul cannon Date: Thu, 11 Jun 2020 20:11:22 -0500 Subject: [PATCH] satellite/satellitedb: no orders for exited nodes We should not be sending any type of orders to nodes that have completed graceful exit with the current satellite. In particular, we should not be trying to audit them, because that would be silly. Change-Id: Ie2153e5739914ab696feefcdef28545ed70f84e4 --- satellite/satellitedb/overlaycache.go | 1 + 1 file changed, 1 insertion(+) diff --git a/satellite/satellitedb/overlaycache.go b/satellite/satellitedb/overlaycache.go index 768235ce7..6a76045a2 100644 --- a/satellite/satellitedb/overlaycache.go +++ b/satellite/satellitedb/overlaycache.go @@ -156,6 +156,7 @@ func (cache *overlaycache) GetOnlineNodesForGetDelete(ctx context.Context, nodeI FROM nodes WHERE id = any($1::bytea[]) AND disqualified IS NULL + AND exit_finished_at IS NULL AND last_contact_success > $2 `), postgresNodeIDList(nodeIDs), time.Now().Add(-onlineWindow)) if err != nil {