google-nomulus/java/google/registry/backup
guyben 2bbde9d9a9 Retry any Datastore reads in EppResource map-reduce input
Datastore has a non-zero chance of failing on reads. A map-reduce with too many
failures will eventually give up. As a result, any map-reduce that goes over a
large number of datastore entities is almost guaranteed to fail.

Since we expect to have a large number of EppResources, we make sure to wrap
all datastore reads with some retrying mechanism to reduce the number of
transient failures that propagate to Map-Reduce.

This feature already existed for CommitLogManifestReader, we refactor the code to use the same retrying mechanism in EppResource readers.

Also removed the transactNew around the reads because looking at the source - it doesn't actually do anything we need (doesn't retry on any failure other than concurrency failure)

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=190633281
2018-04-02 16:44:29 -04:00
..
BackupModule.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
BackupUtils.java Remove unnecessary generic type arguments 2017-11-21 18:17:31 -05:00
BUILD Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
CommitLogCheckpointAction.java Rationalize logging statements across codebase 2018-01-19 14:56:45 -05:00
CommitLogCheckpointStrategy.java Refactor Guava functional methods to use lambdas 2017-12-01 22:14:05 -05:00
DeleteOldCommitLogsAction.java Retry any Datastore reads in EppResource map-reduce input 2018-04-02 16:44:29 -04:00
ExportCommitLogDiffAction.java Run automatic Java 8 conversion over codebase 2017-10-10 12:09:41 -04:00
GcsDiffFileLister.java Rationalize logging statements across codebase 2018-01-19 14:56:45 -05:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RestoreCommitLogsAction.java Replace Stream.concat with Streams.concat 2017-12-27 11:35:47 -05:00