diff options
Diffstat (limited to 'routing-generator/src')
-rw-r--r-- | routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/RoutingTable.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/RoutingTable.java b/routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/RoutingTable.java index 90a246ad424..8db2387bf66 100644 --- a/routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/RoutingTable.java +++ b/routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/RoutingTable.java @@ -255,6 +255,7 @@ public class RoutingTable { Optional<InstanceName> instance, ClusterSpec.Id cluster, ZoneId zone) { if (instance.isEmpty()) { // Application-scoped endpoint if (dnsName.isEmpty()) throw new IllegalArgumentException("dnsName must given for application-scoped endpoint"); + @SuppressWarnings("deprecation") String endpointHash = Hashing.sha1().hashString(dnsName, StandardCharsets.UTF_8).toString(); return "application-" + endpointHash + "." +application.value() + "." + tenant.value(); } else { |