storj/scripts
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
..
testdata satellite/satellitedb: Use CRDB AS OF SYSTEM & batch for GE 2021-05-07 13:09:19 -04:00
tests cmd: remove metainfo-migrator and metainfo-verifier 2021-04-08 14:50:29 +00:00
waitlist Waitlist script (#573) 2018-11-06 18:43:20 +01:00
build-wasm.sh build: added brotli compression for wasm bits 2020-12-17 19:23:53 +00:00
cert-gating.sh Delete Bootstrap and Kademlia (#2974) 2019-10-04 16:48:41 -04:00
deploy-storagenode.sh Makefile,scripts: move from aarch64 to arm64v8 (#4008) 2020-12-21 14:50:57 +01:00
deploy-watchtower.sh Script for deploying the Docker manifest for watchtower (#3015) 2019-09-12 17:38:48 +03:00
gerrit-cla.py gerrit: add cla 2019-06-19 18:28:53 +00:00
install-awscli.sh Travis with go1.11 and modules (#479) 2018-10-16 20:02:00 +03:00
pg-to-crdb.go all: fix comments 2020-07-16 19:13:14 +03:00
postgres-dev.sh satellite/testing: Change testing to use PG 12.3 (#3913) 2020-06-25 20:17:39 +03:00
redis-server.sh scripts: Do not use Docker for test-sim Redis test 2021-03-22 08:43:53 +00:00
release.sh release: remove binary stripping 2020-10-14 10:06:20 +03:00
tag-release.sh private/version: minimal fix for tag-release.sh 2020-04-01 13:46:45 +00:00
test-backwards.sh test-sim: improve integration test scripts 2021-03-31 16:48:53 +00:00
test-billing.sh tests: fix calculation of previous month for billing integration test 2021-03-29 10:38:59 +02:00
test-certificates.sh fix certificates auth export command (#3110) 2019-09-24 10:38:18 -06:00
test-network-stalls.go all: fix dots 2020-07-16 14:58:28 +00:00
test-sim-backwards-dev.sh metainfo-migration: basic pointerdb->metabase migrator 2021-01-12 12:59:53 +00:00
test-sim-backwards.sh cmd: remove metainfo-migrator and metainfo-verifier 2021-04-08 14:50:29 +00:00
test-sim-dev.sh scripts: use postgres script with all tests (#3404) 2019-10-31 07:03:54 -07:00
test-sim-redis-up-and-down-dev.sh scripts: Do not use Docker for test-sim Redis test 2021-03-22 08:43:53 +00:00
test-sim-redis-up-and-down.sh scripts: Do not use Docker for test-sim Redis test 2021-03-22 08:43:53 +00:00
test-sim.sh satellite/metainfo: fix for getting real RS values 2021-02-16 17:26:09 +01:00
test-uplink-redis-up-and-down.sh test-sim: improve integration test scripts 2021-03-31 16:48:53 +00:00
test-uplink-rs-download.sh satellite/metainfo: fix for getting real RS values 2021-02-16 17:26:09 +01:00
test-uplink-rs-upload.sh satellite/metainfo: fix for getting real RS values 2021-02-16 17:26:09 +01:00
test-uplink-share.sh test-sim: improve integration test scripts 2021-03-31 16:48:53 +00:00
test-uplink.sh test-sim: improve integration test scripts 2021-03-31 16:48:53 +00:00
test-wasm-size.sh satellite/console/wasm: add test to confirm wasm size isnt growing 2021-01-21 15:48:49 +00:00
update-access.go scripts: remove lib/uplink from update-access 2020-05-29 13:35:10 +03:00
utils.sh test-sim: improve integration test scripts 2021-03-31 16:48:53 +00:00