7fb86617fc
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 |
||
---|---|---|
.. | ||
certificates | ||
connect-test | ||
crashcollect | ||
identity | ||
inspector | ||
internal | ||
metabase-createdat-migration | ||
metabase-verify | ||
metainfo-loop-benchmark | ||
metric-receiver | ||
multinode | ||
satellite | ||
storagenode | ||
storagenode-updater | ||
storj-admin | ||
storj-sim | ||
uplink | ||
versioncontrol |