google-nomulus/java/google/registry/model
mcilwain b8d7d9da29 Don't delete the old premium list yet after updating to a new one
The issue is that the premium list cache is configured to persist for 60
minutes. So after updating the list, checks/creates for up to the next 60
minutes could still be referring to the old list. That's fine and dandy, unless
you delete the old premium list immediately (*bad*), which makes all domains
appear to now be non-premium for as long as the cache lasts. The reason deleting
the premium list entries makes names appear as non-premium is that a load-by-key
existence check with the domain label itself is used to determine if a name is
premium.

I also removed a misleading cache update statement, which doesn't do what it
appears to be doing (it appears to fix this issue) because cache is
instance-level, and so even if the premium list were updated from the frontend
instance only one of 100 instances would have its cache updated. But it's
updated from the tools service anyway, so it's guaranteed to not be a shared
cache with any instance serving EPP traffic.

On a sidenote, I introduced this bug on 2014-10-27 in [] The domain
label list refactor was my Noogler project.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=197033604
2018-05-17 21:52:35 -04:00
..
annotations Clean up some code quality issues 2017-12-01 22:14:06 -05:00
billing Change RESTORE BillingEvents to have 1-year periods 2018-03-06 19:25:05 -05:00
common Replace FluentIterable with streams 2017-12-27 11:40:50 -05:00
contact Migrate Guava Predicates.notNull to Objects.nonNull 2017-12-27 11:19:53 -05:00
domain Improve the error when trying to delete the registrant contact 2018-05-17 21:52:35 -04:00
eppcommon Make async flow logic handle missing client transaction IDs 2018-05-05 23:21:55 -04:00
eppinput Make EppInput.getSingleExtension() return Optional, not @Nullable 2018-01-19 14:40:10 -05:00
eppoutput Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
host Format some imports using fix_imports.py 2017-10-24 16:53:47 -04:00
index Cache domains, contacts, and hosts in WHOIS queries 2018-04-10 16:24:03 -04:00
mark Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ofy Use Predicates.not for one-liner functionals when appropriate 2018-04-23 14:50:02 -04:00
poll Remove leniency on poll message ID format without years in them 2018-02-20 15:12:43 -05:00
pricing Clean up some code quality issues 2017-12-01 22:14:06 -05:00
rde Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
registrar Redirect Registrar.referralUrl UI actions to url field 2018-05-17 21:52:35 -04:00
registry Don't delete the old premium list yet after updating to a new one 2018-05-17 21:52:35 -04:00
reporting Fix NPE in GetHistoryEntriesCommand 2017-10-24 16:53:47 -04:00
server Move metrics dependencies to artifacts under Maven groupId com.google.monitoring-client 2018-01-04 17:12:35 -05:00
smd Replace FluentIterable with streams 2017-12-27 11:40:50 -05:00
tmch Make return value of ClaimsListShard.getClaimKey() Optional 2018-03-06 19:15:52 -05:00
transfer Clean up some code quality issues 2017-12-01 22:14:06 -05:00
translators Clarify diff display of MutatingCommand 2017-10-04 16:16:45 -04:00
BackupGroupRoot.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
BUILD Add //third_party/java/jaxb dependency to targets using javax.xml.bind 2018-01-23 16:18:35 -05:00
Buildable.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
CacheUtils.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
CreateAutoTimestamp.java Add create timestamp as field on AllocationToken entity 2018-01-19 14:25:28 -05:00
EntityClasses.java Add basic AllocationToken entity and tests 2018-01-19 14:22:30 -05:00
EppResource.java Add limit to list_domains command 2018-05-17 21:52:35 -04:00
EppResourceUtils.java Cache domains, contacts, and hosts in WHOIS queries 2018-04-10 16:24:03 -04:00
ImmutableObject.java Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
Jsonifiable.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
JsonMapBuilder.java Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
ModelUtils.java Replace FluentIterable with streams 2017-12-27 11:40:50 -05:00
package-info.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
SchemaVersion.java Run automatic Java 8 conversion over codebase 2017-10-10 12:09:41 -04:00
UpdateAutoTimestamp.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00