google-nomulus/java/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 Add logging statement to export commit log diffs action 2018-04-23 14:28:27 -04:00
batch Make async flow logic handle missing client transaction IDs 2018-05-05 23:21:55 -04:00
beam Refactor ICANN reporting and billing into common package 2018-02-01 21:56:06 -05:00
bigquery Rationalize logging statements across codebase 2018-01-19 14:56:45 -05:00
braintree Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
builddefs Fix registry_ear_file 2018-05-17 21:52:35 -04:00
config Redirect Registrar.referralUrl UI actions to url field 2018-05-17 21:52:35 -04:00
cron Use Predicates.not for one-liner functionals when appropriate 2018-04-23 14:50:02 -04:00
dns Make lock index parameters non-optional 2018-04-23 14:19:10 -04:00
env Reduce prod/sandbox frontend manual instance count from 100 to 30 2018-05-17 21:52:35 -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
gcs Add publish functionality to billing pipeline 2018-01-04 17:17:59 -05:00
groups Clean up some code quality issues 2017-12-01 22:14:06 -05:00
idn Update IDN tables to comply with https://www.iana.org/help/idn-repository-procedure 2018-02-01 21:59:14 -05:00
keyring Wrap exception properly in PgpHelper 2018-03-08 14:49:17 -05:00
loadtest Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
mapreduce Retry any Datastore reads in EppResource map-reduce input 2018-04-02 16:44:29 -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 Replace registrar-premium-price-ack with registrar-settings 2018-04-23 14:22:18 -04:00
monitoring/whitebox Rationalize logging statements across codebase 2018-01-19 14:56:45 -05:00
pricing Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
proxy Remove no quota leased warning from quota handler inactive callback 2018-05-17 21:52:35 -04:00
rdap RDAP: Add clarification about formatting of embedded vCard addresses 2018-05-17 21:52:35 -04:00
rde Add better RDE logging for when contact resources don't exist 2018-04-23 14:32:59 -04:00
reporting Enable ability to generate invoices without publishing 2018-04-23 15:10:09 -04:00
request Change UserPolicy to PUBLIC on WHOIS and EPP endpoints 2018-04-23 14:59:24 -04:00
security Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
storage/drive Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
tldconfig/idn Replace occurrences of Wrapped.valueOf(...) with Wrapped.parseWrapped(...) 2018-04-02 16:14:12 -04:00
tmch Don't add all claims data to NORDN verify task 2018-05-17 21:52:35 -04:00
tools Revert error message escaping to hand written version 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 Replace uses of X.to(Upper|Lower)Case() with Ascii.to(Upper|Lower)Case(X) 2018-04-23 15:02:31 -04:00
whois Do not escape WHOIS output 2018-05-17 21:52:35 -04:00
xjc Add //third_party/java/jaxb dependency to targets using javax.xml.bind 2018-01-23 16:18:35 -05:00
xml Replace http://errorprone.info with https://errorprone.info since that site 2018-05-05 23:52:20 -04:00
BUILD Add nocron ear and deployer rules for the crash environment 2017-10-04 16:16:45 -04:00
repositories.bzl Add Flogger to GCP proxy 2018-05-17 21:52:35 -04:00