summaryrefslogtreecommitdiffstats
path: root/clustercontroller-reindexer
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@gmail.com>2020-11-11 08:15:23 +0100
committerGitHub <noreply@github.com>2020-11-11 08:15:23 +0100
commitfb3813f0b5672e3a709c12b014b7f0c70095a6de (patch)
tree89b20bd8a9833b17517b062181b50e81bdce0c96 /clustercontroller-reindexer
parent0b906318c98687e56fa6c76a8b88507c3365d6d5 (diff)
Revert "Bjorncs/install clustercontroller reindexer"
Diffstat (limited to 'clustercontroller-reindexer')
-rw-r--r--clustercontroller-reindexer/src/main/java/ai/vespa/reindexing/ReindexingMaintainer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/clustercontroller-reindexer/src/main/java/ai/vespa/reindexing/ReindexingMaintainer.java b/clustercontroller-reindexer/src/main/java/ai/vespa/reindexing/ReindexingMaintainer.java
index b9fd0745194..0cf7f9eed9a 100644
--- a/clustercontroller-reindexer/src/main/java/ai/vespa/reindexing/ReindexingMaintainer.java
+++ b/clustercontroller-reindexer/src/main/java/ai/vespa/reindexing/ReindexingMaintainer.java
@@ -16,6 +16,7 @@ import com.yahoo.net.HostName;
import com.yahoo.vespa.config.content.AllClustersBucketSpacesConfig;
import com.yahoo.vespa.config.content.reindexing.ReindexingConfig;
import com.yahoo.vespa.curator.Curator;
+import com.yahoo.vespa.zookeeper.VespaZooKeeperServer;
import java.time.Clock;
import java.time.Duration;
@@ -49,8 +50,9 @@ public class ReindexingMaintainer extends AbstractComponent {
private final Reindexer reindexer;
private final ScheduledExecutorService executor;
+ // VespaZooKeeperServer dependency to ensure the ZK cluster is running.
@Inject
- public ReindexingMaintainer(DocumentAccess access, ZookeepersConfig zookeepersConfig,
+ public ReindexingMaintainer(VespaZooKeeperServer zooKeeperServer, DocumentAccess access, ZookeepersConfig zookeepersConfig,
ClusterListConfig clusterListConfig, AllClustersBucketSpacesConfig allClustersBucketSpacesConfig,
ReindexingConfig reindexingConfig, DocumentmanagerConfig documentmanagerConfig) {
this(Clock.systemUTC(), access, zookeepersConfig, clusterListConfig, allClustersBucketSpacesConfig, reindexingConfig, documentmanagerConfig);