Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-12 Thread via GitHub
pjmcarthur commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1450781121 ## solr/core/src/java/org/apache/solr/core/NodeConfig.java: ## @@ -211,6 +215,17 @@ private NodeConfig( if (null == this.solrHome) throw new NullPointerException("

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-12 Thread via GitHub
pjmcarthur commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1450776885 ## solr/core/src/test/org/apache/solr/cluster/placement/impl/PlacementPluginIntegrationTest.java: ## @@ -124,25 +124,6 @@ public void testConfigurationInSystemProps() {

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-12 Thread via GitHub
pjmcarthur commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1450773853 ## solr/core/src/java/org/apache/solr/api/NodeConfigClusterPluginsSource.java: ## @@ -0,0 +1,106 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one o

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-12 Thread via GitHub
pvcnt commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1450387463 ## solr/core/src/java/org/apache/solr/core/NodeConfig.java: ## @@ -211,6 +215,17 @@ private NodeConfig( if (null == this.solrHome) throw new NullPointerException("solrH

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-12 Thread via GitHub
pvcnt commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1450386197 ## solr/core/src/java/org/apache/solr/core/NodeConfig.java: ## @@ -211,6 +215,17 @@ private NodeConfig( if (null == this.solrHome) throw new NullPointerException("solrH

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-11 Thread via GitHub
pjmcarthur commented on PR #2126: URL: https://github.com/apache/solr/pull/2126#issuecomment-1887907029 @pvcnt FYI - This PR has been updated to handle the replicaPlacementFactory declared in solr.xml in the same way as cluster singleton plugins. -- This is an automated message from the A

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-11 Thread via GitHub
pjmcarthur commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1449148959 ## solr/core/src/java/org/apache/solr/core/SolrXmlConfig.java: ## @@ -651,6 +651,27 @@ private static PluginInfo[] getBackupRepositoryPluginInfos(List cfg) return

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-10 Thread via GitHub
dsmiley commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1448196037 ## solr/core/src/java/org/apache/solr/api/ClusterPluginsSourceConfigurator.java: ## @@ -0,0 +1,51 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-08 Thread via GitHub
dsmiley commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1445581541 ## solr/core/src/java/org/apache/solr/core/NodeConfig.java: ## @@ -223,17 +221,23 @@ private NodeConfig( if (this.clusterSingletonPlugins != null && this.c

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-07 Thread via GitHub
dsmiley commented on PR #2126: URL: https://github.com/apache/solr/pull/2126#issuecomment-1880208066 Let's imagine someone out there has set `disable.configEdit` and is also posting to `/api/cluster/plugin`. After the proposed change here, a call to that API is going to get an error (or _s

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-05 Thread via GitHub
pjmcarthur commented on PR #2126: URL: https://github.com/apache/solr/pull/2126#issuecomment-1879279003 I will add the validation. Regarding piggybacking on the existing `disable.configEdit` property, I like the idea, but I have one concern. If there are any Solr deployments out t

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-04 Thread via GitHub
dsmiley commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1442145469 ## solr/core/src/java/org/apache/solr/core/SolrXmlConfig.java: ## @@ -165,6 +166,9 @@ public static NodeConfig fromConfig( if (cloudConfig != null) configBuilder.setC

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-04 Thread via GitHub
pvcnt commented on PR #2126: URL: https://github.com/apache/solr/pull/2126#issuecomment-1877435871 The point I am raising about validation has actually already been raised by Paul there: https://github.com/apache/solr/pull/2126/files#r1424690508 I think it would be a mistake to not enforce

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-04 Thread via GitHub
dsmiley commented on PR #2126: URL: https://github.com/apache/solr/pull/2126#issuecomment-1877290383 > I believe it would still be interesting to have at least two different plugin types to validate that the generic approach is really generic, and what it takes to add a new type of plugin.

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-04 Thread via GitHub
dsmiley commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1441805546 ## solr/core/src/java/org/apache/solr/core/SolrXmlConfig.java: ## @@ -165,6 +166,9 @@ public static NodeConfig fromConfig( if (cloudConfig != null) configBuilder.setC

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-04 Thread via GitHub
dsmiley commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1441792277 ## solr/core/src/java/org/apache/solr/core/SolrXmlConfig.java: ## @@ -165,6 +166,9 @@ public static NodeConfig fromConfig( if (cloudConfig != null) configBuilder.setC

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-04 Thread via GitHub
janhoy commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1441659284 ## solr/core/src/java/org/apache/solr/core/NodeConfig.java: ## @@ -929,8 +941,8 @@ public NodeConfig build() { metricsConfig, cachesConfig,

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-04 Thread via GitHub
pvcnt commented on PR #2126: URL: https://github.com/apache/solr/pull/2126#issuecomment-1876907601 I believe it would still be interesting to have at least two different plugin types to validate that the generic approach is really generic, and what it takes to add a new type of plugin.

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-03 Thread via GitHub
dsmiley commented on PR #2126: URL: https://github.com/apache/solr/pull/2126#issuecomment-1876136104 Agreed that 9.5 should not be released without reconciling the two approaches. I think I would prefer to revert SOLR-17079 as it exists today, then merge this PR SOLR-17096 (after wha

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-03 Thread via GitHub
pvcnt commented on PR #2126: URL: https://github.com/apache/solr/pull/2126#issuecomment-1875808589 I don't know when Solr 9.5 is going to be released, but IMHO we should make sure that it is not released with two different ways of configuring a cluster plugin in solr.xml, or even not releas

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2024-01-03 Thread via GitHub
pjmcarthur commented on PR #2126: URL: https://github.com/apache/solr/pull/2126#issuecomment-1875774998 @pvcnt @dsmiley I think there should be a follow-up PR that addresses the replica placement plugin. My understanding is that from a user's perspective, the configuration of solr.xml wrt.

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2023-12-24 Thread via GitHub
pvcnt commented on PR #2126: URL: https://github.com/apache/solr/pull/2126#issuecomment-1868557774 @dsmiley I’ll have a more detailed look after my holidays. But one thing we should consider is that this PR follows a different design than what I did for replica placement plugins. For the la

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2023-12-23 Thread via GitHub
dsmiley commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1435316310 ## solr/core/src/java/org/apache/solr/api/ClusterPluginsSourceConfigurator.java: ## @@ -0,0 +1,73 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2023-12-12 Thread via GitHub
dsmiley commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1424771268 ## solr/core/src/java/org/apache/solr/core/SolrXmlConfig.java: ## @@ -654,11 +655,28 @@ private static PluginInfo[] getClusterSingletonPluginInfos(List node if (node

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2023-12-12 Thread via GitHub
dsmiley commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1424764915 ## solr/core/src/test-files/solr/solr-50-all.xml: ## @@ -76,4 +76,9 @@ + + + + Review Comment: Enforcement would be ideal but not essential. -- T

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2023-12-12 Thread via GitHub
pjmcarthur commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1424690508 ## solr/core/src/test-files/solr/solr-50-all.xml: ## @@ -76,4 +76,9 @@ + + + + Review Comment: I changed the element name here to `clusterSingleto

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2023-12-11 Thread via GitHub
dsmiley commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1423212973 ## solr/core/src/test/org/apache/solr/api/NodeConfigContainerPluginsSourceTest.java: ## @@ -0,0 +1,287 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under on

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2023-12-11 Thread via GitHub
pjmcarthur commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1423015389 ## solr/core/src/test/org/apache/solr/api/NodeConfigContainerPluginsSourceTest.java: ## @@ -0,0 +1,287 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2023-12-08 Thread via GitHub
dsmiley commented on PR #2126: URL: https://github.com/apache/solr/pull/2126#issuecomment-1848042217 Oh I totally missed an important concern that I raised with @pvcnt 's previous PR #2016. The configuration is very generic (the specific plugins are effectively untyped in solr.xml). I too

Re: [PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2023-12-08 Thread via GitHub
dsmiley commented on code in PR #2126: URL: https://github.com/apache/solr/pull/2126#discussion_r1420976112 ## solr/core/src/java/org/apache/solr/api/ZkContainerPluginsSource.java: ## @@ -0,0 +1,116 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more +

[PR] SOLR-17096: Cluster Singleton plugin support for immutable deployments [solr]

2023-12-07 Thread via GitHub
pjmcarthur opened a new pull request, #2126: URL: https://github.com/apache/solr/pull/2126 https://issues.apache.org/jira/browse/SOLR-17096 # Description It should be possible to install and manage the configuration of a cluster singleton plugin in an immutable deployment of SolrCl