google-nomulus/java/google/registry/dns/writer
guyben 633eb3179a Skip RRS update if existing records are equal to desired records
This is done first and formost to stop "empty" commits that cause errors in
publishDnsUpdates. The reason being that the Cloud DNS api fails when there are
no updates at all in a change.

Allowing this is a requirement for the writer to be idempotent - if we delete a
domain, then run the writer to delete it again - we'll get 0 additions and 0
deletions which fails.

This isn't theoretical either - we've seen it happen, causing a
publishDnsUpdates to fail over and over again.

While fixing this, we also remove all RRS that are common between additions and
deletions. This is just an optimization and shouldn't affect behavior.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=179525218
2017-12-27 11:18:21 -05:00
..
clouddns Skip RRS update if existing records are equal to desired records 2017-12-27 11:18:21 -05:00
dnsupdate Remove unnecessary generic type arguments 2017-11-21 18:17:31 -05:00
BaseDnsWriter.java Extract multiple commit prevention in DNS writers into a base class 2017-09-20 10:27:17 -04:00
BUILD Add MOE equivalence for sync on 2016-12-19 2017-01-09 11:59:04 -05:00
DnsWriter.java Make DnsWriter truly atomic 2017-08-29 16:40:07 -04:00
DnsWriterZone.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
VoidDnsWriter.java Extract multiple commit prevention in DNS writers into a base class 2017-09-20 10:27:17 -04:00
VoidDnsWriterModule.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00