storj/cmd
Ivan Fraixedes 7fb86617fc satellite/satellitedb: Use CRDB AS OF SYSTEM & batch for GE
Use the 'AS OF SYSTEM TIME' Cockroach DB clause for the Graceful Exit
(a.k.a GE) queries that count the delete the GE queue items of nodes
which have already exited the network.

Split the subquery used for deleting all the transfer queue items of
nodes which has exited when CRDB is used and batch the queries because
CRDB struggles when executing in a single query unlike Postgres.

The new test which has been added to this commit to verify the CRDB
batch logic for deleting all the transfer queue items of the exited
nodes has raised that the Enqueue method has to run in baches when CRDB
is used otherwise CRDB has return the error "driver: bad connection"
when a big a amount of items are passed to be enqueued. This error
didn't happen with the current test implementation it was with an
initial one that it was creating a big amount of exited nodes and
transfer queue items for those nodes.

Change-Id: I6a099cdbc515a240596bc93141fea3182c2e50a9
2021-05-07 13:09:19 -04:00
..
certificates all: fix error naming 2021-04-29 15:38:21 +03:00
connect-test cmd/connecttest: display more helpful error message and fix tls config 2021-04-23 14:27:34 +00:00
crashcollect crashcollect: process for receiving panics 2021-04-27 18:57:47 +03:00
identity all: fix error naming 2021-04-29 15:38:21 +03:00
inspector all: fix error naming 2021-04-29 15:38:21 +03:00
internal storj/storj: more domain changes 2021-04-14 20:49:12 +00:00
metabase-createdat-migration private/dbutil: use dbutil and tagsql from storj.io/private 2021-04-23 14:36:52 +03:00
metabase-verify satellite/metabase/metaloop: add Monitor 2021-04-23 12:20:22 +03:00
metainfo-loop-benchmark satellite/metabase/metaloop: move loop under metabase 2021-04-22 12:58:09 +03:00
metric-receiver cmd/metric-receiver: restore minimal metrics server 2020-10-14 20:01:29 +03:00
multinode multinode/multinodedb: add sqlite3 support 2021-02-11 16:36:05 +00:00
satellite satellite/satellitedb: Use CRDB AS OF SYSTEM & batch for GE 2021-05-07 13:09:19 -04:00
storagenode pkg/,private/: merge with private package 2021-04-23 16:37:28 +03:00
storagenode-updater go.mod: bump storj.io/common 2021-01-13 14:51:08 +00:00
storj-admin all: fix linter complaints 2020-10-13 15:59:01 +03:00
storj-sim private/dbutil: use dbutil and tagsql from storj.io/private 2021-04-23 14:36:52 +03:00
uplink storj: use multipart API 2021-04-26 13:15:09 +00:00
versioncontrol private/version: minimal fix for tag-release.sh 2020-04-01 13:46:45 +00:00