From 642b34dfb277c9a82a5439dd82d32491e8b515b1 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Tue, 20 Aug 2024 13:54:51 +0200 Subject: [PATCH] Drop unintended change from PR. --- .../java/com/yahoo/concurrent/maintenance/Maintainer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java b/vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java index 842fbf7795ff..8dbca0bfccde 100644 --- a/vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java +++ b/vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java @@ -164,9 +164,7 @@ Duration staggeredDelay(Duration interval, String hostname, List cluster Instant now = clock.instant(); long nodeOffset = clusterHostnames.indexOf(hostname) * interval.toMillis() / clusterHostnames.size(); - String c = getClass().getName(); - System.out.println("class=" + c); - long maintainerOffset = c.hashCode() % interval.toMillis(); + long maintainerOffset = getClass().getName().hashCode() % interval.toMillis(); long totalOffset = nodeOffset + maintainerOffset; return Duration.ofMillis(Math.floorMod(totalOffset - now.toEpochMilli(), interval.toMillis())); }