google-nomulus/javatests/google/registry
guyben cf94d69a3e Map over Key instead of actual instances when deleting old commit logs
Attempting to run DeleteOldCommitLogs in prod resulted in a lot of DatastoreTimeoutException errors. The assumption is that attempting to load so many CommitLogManifests (over 200 million of them), when each one has a slight possibility of failure, has a very high probability of error.

The shard aborts after 20 of these errors, and by eliminating as many loads as possible and retrying the remaining loads inside a transaction we are effectively eliminating any exceptions "leaking" out to the mapreduce framework, which will hopefully keep us bellow 20. At least, that's our best guess currently as to why the mapreduce fails.

EppResources are loaded in the map stage to get the revisions, and CommitLogManifests are only loaded in the reduce stage for sanity check so we don't accidentally delete resources we need in prod. Both of these are wrapped in transactNew to make sure they retry individually.

The only "load" not done inside a transaction is the EppResourceIndex, but there's no getting around that without rewriting the EppResourceInputs.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=164176764
2017-08-29 15:40:41 -04:00
..
backup Map over Key instead of actual instances when deleting old commit logs 2017-08-29 15:40:41 -04:00
batch Add metrics for async batch operation processing 2017-06-05 18:17:09 -04:00
bigquery Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged 2017-04-26 10:42:43 -04:00
builddefs Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
config Remove unnecessary line to load configs 2017-02-27 11:07:40 -05:00
cron Add response information to TldFanoutAction 2017-04-10 13:32:41 -04:00
dns Allow multiple DNS writers on TLDs 2017-08-01 17:10:33 -04:00
export Remove queueing from Lock 2017-08-01 17:06:20 -04:00
flows Add two tests of hostname validation 2017-08-29 15:36:12 -04:00
groups Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged 2017-04-26 10:47:13 -04:00
keyring/kms Update cloudkms_java with the non-beta version 2017-06-05 18:17:09 -04:00
mapreduce/inputs Map over Key instead of actual instances when deleting old commit logs 2017-08-29 15:40:41 -04:00
model Allow multiple DNS writers on TLDs 2017-08-01 17:10:33 -04:00
module Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
monitoring Add a Fibonacci fitter for metrics bucketing 2017-05-23 17:22:49 -04:00
pricing Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
rdap RDAP: Allow domain and nameserver queries with no initial string under certain circumstances 2017-07-10 11:16:03 -04:00
rde Remove queueing from Lock 2017-08-01 17:06:20 -04:00
reporting Upgrade activity reporting queries to StandardSQL 2017-08-01 16:56:12 -04:00
request Fix Optinal.absent() to Optional.<AuthResult>absent() 2017-08-01 16:34:32 -04:00
security Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged 2017-04-26 10:45:45 -04:00
server Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
storage/drive Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged 2017-04-26 10:45:45 -04:00
testing Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
tldconfig/idn Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
tmch Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
tools Allow multiple DNS writers on TLDs 2017-08-01 17:10:33 -04:00
ui Fix bug which caused exceptions when attempting to redirect to the console login page 2017-08-01 17:11:54 -04:00
util Perform some minor test cleanup 2017-08-01 16:20:49 -04:00
whois Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
xjc Add mapper to import domains from RDE deposits 2017-02-06 16:46:46 -05:00
xml Update copyright year on all license headers 2017-02-02 16:27:22 -05:00