storj/satellite/satellitedb
Jeff Wendling 4aef0e3823 satellite/satellitedb: only reject orders if row not found
any database error doesn't mean the order wasn't found. for example
in cockroach it may say that the transaction is aborted. then what?
maybe we get big old row level deadlocks like we've observed? so
instead explicitly check for ErrNoRows to reject the order and bail
out otherwise. the surrounding logic will give it a retry.

Change-Id: I6e1f8f6e6a6def3e45b44f5088cbdc158e1098e4
2020-01-10 19:05:54 -07:00
..
dbx uplink: move to storj.io/uplink (#3746) 2020-01-08 15:40:19 +02:00
pbold common: separate repository 2019-12-27 14:11:15 +02:00
satellitedbtest satellite: add an expiring lru cache around api keys 2020-01-09 22:13:41 -07:00
testdata satellite/satellitedb: Add nodes_offline_times table for downtime tracking 2019-12-30 15:45:02 -05:00
apikeys.go satellite: add an expiring lru cache around api keys 2020-01-09 22:13:41 -07:00
attribution_test.go common: separate repository 2019-12-27 14:11:15 +02:00
attribution.go satellite/satellitedb: unexport satellitedb.DB 2019-12-16 19:09:30 +00:00
buckets.go common: separate repository 2019-12-27 14:11:15 +02:00
coinpaymentstxs.go satellite/satellitedb: unexport satellitedb.DB 2019-12-16 19:09:30 +00:00
consoledb_test.go satellite/console: use transaction helpers in consoledb 2020-01-07 17:59:10 +00:00
consoledb.go satellite: add an expiring lru cache around api keys 2020-01-09 22:13:41 -07:00
containment.go satellite/satellitedb: use transaction helpers in containment 2020-01-06 23:07:38 +00:00
coupons.go satellite/satellitedb: unexport satellitedb.DB 2019-12-16 19:09:30 +00:00
customers.go satellite/satellitedb: unexport satellitedb.DB 2019-12-16 19:09:30 +00:00
database.go satellite: add an expiring lru cache around api keys 2020-01-09 22:13:41 -07:00
downtime.go satellite/{downtime,contact}: Add CheckNodeAvailability for use within the downtime tracking chores. 2020-01-02 18:24:11 +00:00
gracefulexit.go common: separate repository 2019-12-27 14:11:15 +02:00
invoiceprojectrecords.go satellite/satellitedb: unexport satellitedb.DB 2019-12-16 19:09:30 +00:00
irreparabledb.go satellite/satellitedb: use transaction helpers in irreparabledb 2020-01-07 17:40:09 +00:00
migrate_cockroach_test.go satellite/satellitedb: improve Cockroach migrate test 2019-12-21 10:58:43 +00:00
migrate_postgres_test.go satellite: add an expiring lru cache around api keys 2020-01-09 22:13:41 -07:00
migrate.go satellite/satellitedb: Add nodes_offline_times table for downtime tracking 2019-12-30 15:45:02 -05:00
offers.go satellite/satellitedb: don't use crdb.ExecuteTx with postgres 2020-01-06 23:51:35 +00:00
orders.go satellite/satellitedb: only reject orders if row not found 2020-01-10 19:05:54 -07:00
overlaycache.go satellite: remove UptimeReputation configs from codebase 2020-01-08 18:54:15 +00:00
peeridentities.go satellite/satellitedb: use transaction helpers in peeridentities 2020-01-06 20:42:15 +00:00
projectaccounting.go common: separate repository 2019-12-27 14:11:15 +02:00
projectmembers_test.go web/satellite: project members sorting fixed (#3231) 2019-10-15 15:24:53 +03:00
projectmembers.go satellite/satellitedb: unexport satellitedb.DB 2019-12-16 19:09:30 +00:00
projects_test.go satellite,storage: clean global ctx usage in tests 2020-01-09 10:37:21 +00:00
projects.go storagenode/notifications: db created (#3707) 2019-12-16 19:59:01 +02:00
regtokens.go storagenode/notifications: db created (#3707) 2019-12-16 19:59:01 +02:00
repairqueue.go satellite/satellitedb: don't use crdb.ExecuteTx with postgres 2020-01-06 23:51:35 +00:00
resetpasstokens.go storagenode/notifications: db created (#3707) 2019-12-16 19:59:01 +02:00
storagenodeaccounting.go common: separate repository 2019-12-27 14:11:15 +02:00
stripecoinpaymentsdb.go satellite/satellitedb: unexport satellitedb.DB 2019-12-16 19:09:30 +00:00
usercredits.go satellite/satellitedb: use transaction helpers in usercredits 2020-01-06 20:40:45 +00:00
users_test.go satellite,storage: clean global ctx usage in tests 2020-01-09 10:37:21 +00:00
users.go storagenode/notifications: db created (#3707) 2019-12-16 19:59:01 +02:00
utils_test.go common: separate repository 2019-12-27 14:11:15 +02:00
utils.go common: separate repository 2019-12-27 14:11:15 +02:00