google-nomulus/java/google/registry/tools/server
mcilwain c2ee453745 Make the verify OT&E action more performant
As previously written, it loaded up all history entries into memory and then
processed them. This was OOMing for some registrars on sandbox who had performed
a large number of testing actions, most of them long OT&E was passed.

This commit changes the verify OT&E action to stream the history entries in
batches, ordered by when they were made, and then terminates once all tests have
passed. This prevents OOMing because only a single batch of history entries need
reside in memory at once.

This does necessitate the creation of a new composite Datastore index on
HistoryEntry, so we'll need to run the ResaveAllHistoryEntriesAction in sandbox
after this change is deployed before the new verify OT&E code will work.

Note that the "history viewer" is long dead, but that the pre-existing index
on HistoryEntries is still used for many other purposes.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=223163337
2018-12-03 19:07:36 -05:00
..
BUILD Add an action to download encrypted service account credentials 2018-12-03 19:02:50 -05:00
CreateGroupsAction.java Migrate to Flogger (green) 2018-05-30 12:18:54 -04:00
CreateOrUpdatePremiumListAction.java Migrate to flogger (red) 2018-05-30 12:18:54 -04:00
CreatePremiumListAction.java Migrate to flogger (red) 2018-05-30 12:18:54 -04:00
DeleteEntityAction.java Migrate away from VoidWorks 2018-06-27 15:28:52 -04:00
DownloadServiceAccountCredentialAction.java Add an action to download encrypted service account credentials 2018-12-03 19:02:50 -05:00
GenerateZoneFilesAction.java Migrate Guava Predicates.notNull to Objects.nonNull 2017-12-27 11:19:53 -05:00
KillAllCommitLogsAction.java Replace Stream.concat with Streams.concat 2017-12-27 11:35:47 -05:00
KillAllEntitiesReducer.java Replace many Work and VoidWork usages with lambdas 2017-11-21 18:45:12 -05:00
KillAllEppResourcesAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
ListDomainsAction.java Allow nomulus list_domains to query any number of TLDs 2018-06-18 17:48:44 -04:00
ListHostsAction.java Run automatic Java 8 conversion over codebase 2017-10-10 12:09:41 -04:00
ListObjectsAction.java Migrate to Flogger (green) 2018-05-30 12:18:54 -04:00
ListPremiumListsAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
ListRegistrarsAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
ListReservedListsAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
ListTldsAction.java Run automatic Java 8 conversion over codebase 2017-10-10 12:09:41 -04:00
PollMapreduceAction.java Add PollMapreduceAction 2017-09-12 15:51:44 -04:00
RefreshDnsForAllDomainsAction.java Consolidate all Set parameter parsing 2018-06-06 15:04:02 -04:00
ResaveAllHistoryEntriesAction.java Replace many Work and VoidWork usages with lambdas 2017-11-21 18:45:12 -05:00
ToolsServerModule.java Remove transition code for set of parameter refactoring 2018-07-14 01:37:03 -04:00
UpdatePremiumListAction.java Migrate to flogger (red) 2018-05-30 12:18:54 -04:00
VerifyOteAction.java Make the verify OT&E action more performant 2018-12-03 19:07:36 -05:00