storj/storagenode/storagenodedb
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
..
storagenodedbtest all: fix linter complaints 2020-10-13 15:59:01 +03:00
testdata storagenode: secret db and service added 2020-10-16 13:24:33 +00:00
bandwidthdb.go storagenode/bandwidthdb: Use existing indexes (#3949) 2020-10-20 22:48:40 +02:00
database.go storagenode: secret db and service added 2020-10-16 13:24:33 +00:00
db_container.go private/dbutil/txutil: create new transactions for retries 2020-02-01 18:34:28 +00:00
deprecatedinfo.go storagenodedb: reenable utccheck in tests 2019-12-10 23:17:14 +00:00
migrations_test.go private/migrate: add ablity to create dbs during migration 2020-10-15 15:28:04 +03:00
notifications.go all: simplify uuid usage 2020-04-02 05:48:58 +00:00
orders.go storagenodedb/orders: select unsent satellite with expiration 2020-10-21 15:02:23 +00:00
payout.go 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
pieceexpiration.go all: fix dots 2020-07-16 14:58:28 +00:00
pieceinfo.go all: fix dots 2020-07-16 14:58:28 +00:00
piecespaceused.go all: fix dots 2020-07-16 14:58:28 +00:00
pricing.go all: replace == comparison with errors.Is 2020-07-14 15:50:25 +00:00
reputation.go storagenode/reputation: offline_under_review_at added 2020-09-02 18:48:28 +03:00
satellites.go all: fix dots 2020-07-16 14:58:28 +00:00
schema.go storagenode: secret db and service added 2020-10-16 13:24:33 +00:00
schemagen.go all: rename CreateTables to MigrateToLatest 2020-04-30 07:21:17 +00:00
secret.go storagenode: secret db and service added 2020-10-16 13:24:33 +00:00
storageusage.go all: fix dots 2020-07-16 14:58:28 +00:00
usedserials.go storagenode/piecestore: switch usedserials db for in-memory usedserials store 2020-05-28 12:52:52 -04:00