google-nomulus/javatests/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
..
testdata Delete all Limited Release Program (LRP) code 2018-08-20 14:28:16 -04:00
BUILD Clean up internal imports in BUILD files 2018-07-14 01:37:03 -04:00
CreateGroupsActionTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
CreatePremiumListActionTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
DeleteEntityActionTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
DownloadServiceAccountCredentialActionTest.java Add an action to download encrypted service account credentials 2018-12-03 19:02:50 -05:00
GenerateZoneFilesActionTest.java Move tests to use TestDataHelper for reading resources 2018-04-10 16:43:17 -04:00
KillAllCommitLogsActionTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
KillAllEppResourcesActionTest.java Refactor Guava functional methods to use lambdas 2017-12-01 22:14:05 -05:00
ListActionTestCase.java Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
ListDomainsActionTest.java Fix passing of null to some parameters expecting Optional 2018-06-18 18:09:21 -04:00
ListHostsActionTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
ListPremiumListsActionTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
ListRegistrarsActionTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
ListReservedListsActionTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
ListTldsActionTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
PollMapreduceActionTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
RefreshDnsForAllDomainsActionTest.java Add TLDs parameter to refresh DNS action 2017-07-10 11:23:57 -04:00
ResaveAllHistoryEntriesActionTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
ToolsTestData.java Rename all testdata loading files to conform to a single naming scheme 2017-12-01 22:14:06 -05:00
UpdatePremiumListActionTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
VerifyOteActionTest.java Make the verify OT&E action more performant 2018-12-03 19:07:36 -05:00