google-nomulus/javatests/google/registry/util
larryruili fa989e754b Add sharded DNS publishing capability
This enables sharded DNS publishing on a per-TLD basis. Instead of a TLD-wide lock, the sharded scheme locks each update on the shard number, allowing parallel writes to DNS.

We allow N (the number of shards) to be 0 or 1 for no sharding, and N > 1 for an N-way sharding scheme. Unless explicitly set, all TLDs default to a numShards of 0, so we don't have to reload all registry objects explicitly.

WARNING: This will change the lock name upon deployment for the PublishDnsAction from "<TLD> Dns Updates" to "<TLD> Dns Updates shard 0". This may cause concurrency issues if the underlying DNSWriter is not parallel-write tolerant (currently all production usages are ZonemanWriter, which is parallel-tolerant, so no issues are expected).

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=187525655
2018-03-06 19:14:26 -05:00
..
BUILD Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
CidrAddressBlockTest.java Refactor Guava functional methods to use lambdas 2017-12-01 22:14:05 -05:00
CollectionUtilsTest.java Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
ComparingInvocationHandlerTest.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
ConcurrentTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
DateTimeUtilsTest.java Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
DiffUtilsTest.java Remove unnecessary explicit generic type declarations 2017-11-07 17:11:29 -05:00
DomainNameUtilsTest.java Add sharded DNS publishing capability 2018-03-06 19:14:26 -05:00
HexDumperTest.java Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
PosixTarHeaderSystemTest.java Remove implicit uses of platform default charset 2017-11-07 16:59:51 -05:00
PosixTarHeaderTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
RequestStatusCheckerImplTest.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
RetrierTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
SerializeUtilsTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
SqlTemplateTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
TaskEnqueuerTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
TeeOutputStreamTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
TypeUtilsTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
UrlFetchUtilsTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00