diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-03-18 09:53:03 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2024-03-18 22:18:40 +0100 |
commit | ca46966d409aa2f07e3ca98cc20a7b356c76e06e (patch) | |
tree | 0de626cee983cb284e70251997f65aa1a7c1598a /config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java | |
parent | f30d81b16dd11fd68e1be04ab1685df26193735e (diff) |
GC confusing and void ClusterConfig.clusterId
Diffstat (limited to 'config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java b/config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java index ebb556a2ba2..fbac9e9d710 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java @@ -39,8 +39,6 @@ import java.util.function.Predicate; */ public class ContentSearchCluster extends TreeConfigProducer<AnyConfigProducer> implements ProtonConfig.Producer, - DispatchNodesConfig.Producer, - DispatchConfig.Producer, Redundancy.Provider { @@ -131,7 +129,7 @@ public class ContentSearchCluster extends TreeConfigProducer<AnyConfigProducer> search.setVisibilityDelay(visibilityDelay); } - var isc = new IndexedSearchCluster(search, clusterName, 0, search, deployState.featureFlags()); + var isc = new IndexedSearchCluster(search, clusterName, search, deployState.featureFlags()); search.addSearchCluster(deployState, isc, getQueryTimeout(clusterElem), docElem.subElements("document")); } } @@ -328,15 +326,16 @@ public class ContentSearchCluster extends TreeConfigProducer<AnyConfigProducer> ddbB.inputdoctypename(docTypeName) .configid(getConfigId()) .visibilitydelay(visibilityDelay) - .global(globalDocType); - ddbB.allocation.max_compact_buffers(defaultMaxCompactBuffers); + .global(globalDocType) + .allocation.max_compact_buffers(defaultMaxCompactBuffers); if (hasIndexingModeStreaming(type)) { hasAnyNonIndexedSchema = true; - searchCluster.fillDocumentDBConfig(type.getFullName().getName(), ddbB); + ddbB.configid(searchCluster.getDocumentDBConfigId(type.getFullName().getName())); ddbB.mode(ProtonConfig.Documentdb.Mode.Enum.STREAMING); } else if (hasIndexingModeIndexed(type)) { - searchCluster.fillDocumentDBConfig(type.getFullName().getName(), ddbB); + ddbB.configid(searchCluster.getDocumentDBConfigId(type.getFullName().getName())); + ddbB.mode(ProtonConfig.Documentdb.Mode.Enum.INDEX); } else { hasAnyNonIndexedSchema = true; ddbB.mode(ProtonConfig.Documentdb.Mode.Enum.STORE_ONLY); @@ -388,14 +387,12 @@ public class ContentSearchCluster extends TreeConfigProducer<AnyConfigProducer> return globallyDistributedDocuments.contains(docType); } - @Override public void getConfig(DispatchNodesConfig.Builder builder) { if (searchCluster != null) { searchCluster.getConfig(builder); } } - @Override public void getConfig(DispatchConfig.Builder builder) { if (searchCluster != null) { searchCluster.getConfig(builder); |