diff --git a/core/src/main/java/google/registry/dns/PublishDnsUpdatesAction.java b/core/src/main/java/google/registry/dns/PublishDnsUpdatesAction.java index 73d0a8366..2721494bf 100644 --- a/core/src/main/java/google/registry/dns/PublishDnsUpdatesAction.java +++ b/core/src/main/java/google/registry/dns/PublishDnsUpdatesAction.java @@ -206,9 +206,8 @@ public final class PublishDnsUpdatesAction implements Runnable, Callable { // Enqueue the single domain and single host separately enqueue(ImmutableList.copyOf(domains), ImmutableList.of()); enqueue(ImmutableList.of(), ImmutableList.copyOf(hosts)); - } - // If the batch only contains 1 name, allow it more retries - else if (retryCount < RETRIES_BEFORE_PERMANENT_FAILURE) { + } else if (retryCount < RETRIES_BEFORE_PERMANENT_FAILURE) { + // If the batch only contains 1 name, allow it more retries throw e; } // If we get here, we should terminate this task as it is likely a perpetually failing task.