google-nomulus/java/google/registry/mapreduce
mcilwain ded40851d3 Use locking on async mapreduces
This ensures that only one will run at a time, which should help fix the
clogged up mapreduces we've seen on sandbox.

In order to do this, the UnlockerOutput is introduced. This unlocks the
given Lock after all reducer shards have finished.

Also increases the lease duration of the DNS refresh action from 20 to
240 minutes. 20 minutes isn't long enough; when there's a lot of domains
and decent system load the mapreduce could take longer than that in the
ordinary case.

TESTED=Deployed to alpha and verified that more than one copy of the
mapreduce wouldn't run simultaneously, and also that the lock is
released when the mapreduce is finished.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=205887554
2018-08-10 13:44:25 -04:00
..
inputs Clean up third_party imports in BUILD files 2018-07-14 01:11:51 -04:00
BUILD Use locking on async mapreduces 2018-08-10 13:44:25 -04:00
MapreduceModule.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
MapreduceRunner.java Migrate to Flogger (green) 2018-05-30 12:18:54 -04:00
UnlockerOutput.java Use locking on async mapreduces 2018-08-10 13:44:25 -04:00