1
0
mirror of https://github.com/google/nomulus synced 2026-01-03 11:45:39 +00:00

Don't verify existence of autorenew poll messages

There are several situations in which it is a valid system state for
Keys to PollMessages on Domains to point to entities that don't exist,
chief amongst them when a domain has been soft-deleted.  We also can't
simply null this out when soft-deleting domains, because there may be
an un-acked recurrence meaning it can't be deleted.

Given this, it doesn't make sense to check for entity existence here,
as it is not a system invariant and cannot easily be made to be so.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=122300368
This commit is contained in:
mcilwain
2016-05-13 15:12:00 -07:00
committed by Justine Tunney
parent 030d6b92ab
commit 56c8bb0f2a

View File

@@ -274,7 +274,6 @@ public class VerifyEntityIntegrityAction implements Runnable {
DomainResource domain = (DomainResource) domainBase;
verifyExistence(key, domain.getApplication());
verifyExistence(key, domain.getAutorenewBillingEvent());
verifyExistence(key, domain.getAutorenewPollMessage());
for (GracePeriod gracePeriod : domain.getGracePeriods()) {
verifyExistence(key, gracePeriod.getOneTimeBillingEvent());
verifyExistence(key, gracePeriod.getRecurringBillingEvent());