Always setup cluster-controller reindexing components
@@ -124,7 +124,6 @@ public class ClusterControllerContainer extends Container implements
}
private void configureReindexing() {
- if (reindexingContext().reindexing().enabled()) {
addFileBundle(REINDEXING_CONTROLLER_BUNDLE.getName());
addComponent(new SimpleComponent(DocumentAccessProvider.class.getName()));
addComponent("reindexing-maintainer",
@@ -135,7 +134,6 @@ public class ClusterControllerContainer extends Container implements
"/reindexing/v1/*",
REINDEXING_CONTROLLER_BUNDLE);
}
- }
@Override
@@ -151,7 +149,10 @@ public class ClusterControllerContainer extends Container implements
@Override
public void getConfig(ReindexingConfig.Builder builder) {
ReindexingContext ctx = reindexingContext();
- if (!ctx.reindexing().enabled()) return;
+ if (!ctx.reindexing().enabled()) {
+ builder.enabled(false);
+ return;
+ }
builder.enabled(ctx.reindexing().enabled());
for (String clusterId : ctx.clusterIds()) {
