google-nomulus/javatests/google/registry
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
..
backup Allow number of commit log buckets to be increased 2018-04-10 16:16:08 -04:00
batch Make async flow logic handle missing client transaction IDs 2018-05-05 23:21:55 -04:00
beam Move invoice generation to billing bucket and improve emailing 2018-01-19 14:34:14 -05:00
bigquery Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
builddefs Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
config Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
cron Remove empty TLD parameter when fanning out without TLDs 2018-04-02 16:24:27 -04:00
dns Migrate away fully from MockitoJUnitRunner 2018-04-10 17:01:04 -04:00
export Redirect Registrar.referralUrl UI actions to url field 2018-05-17 21:52:35 -04:00
flows Improve the error when trying to delete the registrant contact 2018-05-17 21:52:35 -04:00
groups Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
keyring Migrate away fully from MockitoJUnitRunner 2018-04-10 17:01:04 -04:00
mapreduce/inputs Remove the JVM flags -XX:PermSize and -XX:MaxPermSize 2018-03-19 18:25:04 -04:00
model Don't delete the old premium list yet after updating to a new one 2018-05-17 21:52:35 -04:00
module Change UserPolicy to PUBLIC on WHOIS and EPP endpoints 2018-04-23 14:59:24 -04:00
monitoring/whitebox Migrate away fully from MockitoJUnitRunner 2018-04-10 17:01:04 -04:00
pricing Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
proxy Use self signed certificate when running the proxy locally 2018-04-10 16:36:56 -04:00
rdap Move RDAP boilerplate from remarks to notices 2018-05-05 23:47:47 -04:00
rde Redirect Registrar.referralUrl UI actions to url field 2018-05-17 21:52:35 -04:00
reporting Enable ability to generate invoices without publishing 2018-04-23 15:10:09 -04:00
request Add MOE equivalency for 2018-04-23 sync 2018-05-17 21:52:35 -04:00
security Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
server Fix "one version" error 2018-05-17 21:52:35 -04:00
storage/drive Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
testing Add limit to list_domains command 2018-05-17 21:52:35 -04:00
tldconfig/idn Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
tmch Don't add all claims data to NORDN verify task 2018-05-17 21:52:35 -04:00
tools Add limit to list_domains command 2018-05-17 21:52:35 -04:00
ui Redirect Registrar.referralUrl UI actions to url field 2018-05-17 21:52:35 -04:00
util Remove the reduntant 'afterFinalFailure' from Retrier 2018-04-02 16:26:19 -04:00
whois Do not escape WHOIS output 2018-05-17 21:52:35 -04:00
xjc Move tests to use TestDataHelper for reading resources 2018-04-10 16:43:17 -04:00
xml Add basic AllocationToken validation/redemption for domain creates 2018-01-19 14:28:26 -05:00