storj/storagenode
Jessica Grebenschikov 89bdb20a62 storagenodedb/orders: select unsent satellite with expiration
In production we are seeing ~115 storage nodes (out of ~6,500) are not using the new SettlementWithWindow endpoint (but they are upgraded to > v1.12).

We analyzed data being reported by monkit for the nodes who were above version 1.11 but were not successfully submitting orders to the new endpoint.
The nodes fell into a few categories:
1. Always fail to list orders from the db; never get to try sending orders from the filestore
2. Successfully list/send orders from the db; never get to calling satellite endpoint for submitting filestore orders
3. Successfully list/send orders from the db; successfully list filestore orders, but satellite endpoint fails (with "unauthenticated" drpc error)

The code change here add the following to address these issues:
- modify the query for ordersDB.listUnsentBySatellite so that we no longer select expired orders from the unsent_orders table
- always process any orders that are in the ordersDB and also any orders stored in the filestore
- add monkit monitoring to filestore.ListUnsentBySatellite so that we can see the failures/successes

Change-Id: I0b473e5d75252e7ab5fa6b5c204ed260ab5094ec
2020-10-21 15:02:23 +00:00
..
bandwidth all: fix dots 2020-07-16 14:58:28 +00:00
collector error handling in heldamount cash and collector delete fixed 2020-07-22 12:26:13 +00:00
console storagenode/console: Add current storage used per satellite to storagenode api 2020-10-14 21:30:28 +00:00
contact all: fix linter complaints 2020-10-13 15:59:01 +03:00
gracefulexit all: use keyed special comment 2020-10-13 15:13:41 +03:00
inspector negative space calculations fix removed 2020-09-30 14:08:24 +00:00
monitor storagenode/{monitor,pieces}, storage/filestore: add loop to check storage directory writability 2020-08-31 21:20:49 +00:00
nodestats storagenode: heldamount renamed to payouts, renamed some methods and structs to more meaningful names. grouped estimated payout with pathouts 2020-09-16 14:57:35 +00:00
notifications all: add missing dots 2020-08-11 17:50:01 +03:00
orders storagenodedb/orders: select unsent satellite with expiration 2020-10-21 15:02:23 +00:00
payout storagenode: secret db and service added 2020-10-16 13:24:33 +00:00
pieces all: fix linter complaints 2020-10-13 15:59:01 +03:00
piecestore all: fix linter complaints 2020-10-13 15:59:01 +03:00
preflight all: fix dots 2020-07-16 14:58:28 +00:00
pricing storagenode/nodestats: add pricing model, storagenode/cache: add paystub history storing 2020-04-14 19:04:00 +03:00
reputation storagenode/reputation: offline_under_review_at added 2020-09-02 18:48:28 +03: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: fix linter complaints 2020-10-13 15:59:01 +03:00
secret storagenode: secret db and service added 2020-10-16 13:24:33 +00:00
storagenodedb storagenodedb/orders: select unsent satellite with expiration 2020-10-21 15:02:23 +00:00
storageusage storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
trust all: add missing dots 2020-08-11 17:50:01 +03:00
version storagenode/version: version chore test fix 2020-07-24 20:17:35 +03:00
operator.go all: fix dots 2020-07-16 14:58:28 +00:00
peer.go storagenode: secret db and service added 2020-10-16 13:24:33 +00:00