You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2020/03/21 01:52:43 UTC
[GitHub] [lucene-solr] andyvuong opened a new pull request #1369:
SOLR-14213: Allow enabling shared store to be scriptable
andyvuong opened a new pull request #1369: SOLR-14213: Allow enabling shared store to be scriptable
URL: https://github.com/apache/lucene-solr/pull/1369
Enhancing the configuration section to allow shared storage feature to be enabled via system properties vs just checking for presence of <sharedStore> section in solr.xml.
```
<sharedStore>
<bool name="sharedStoreEnabled">${sharedStoreEnabled:false}</bool>
</sharedStore>
```
Shared storage is now only enabled if cloud mode is on, <sharedStore> section is present, and the field sharedStoreEnabled is present and set to true. If <sharedStore> is present but the field isn't, startup fails. The field supports system properties overriding whatever default is specified. This can be passed in via the solr binary such as
`bin/solr start -e cloud -noprompt -DsharedStoreEnabled=true`
or set by specifying the environment variable SHARE_STORE_ENABLED.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
[GitHub] [lucene-solr] mbwaheed commented on a change in pull request #1369:
SOLR-14213: Allow enabling shared store to be scriptable
Posted by GitBox <gi...@apache.org>.
mbwaheed commented on a change in pull request #1369: SOLR-14213: Allow enabling shared store to be scriptable
URL: https://github.com/apache/lucene-solr/pull/1369#discussion_r398893770
##########
File path: solr/core/src/java/org/apache/solr/core/SolrXmlConfig.java
##########
@@ -568,4 +568,17 @@ private static PluginInfo getTracerPluginInfo(XmlConfigFile config) {
Node node = config.getNode("solr/tracerConfig", false);
return (node == null) ? null : new PluginInfo(node, "tracerConfig", false, true);
}
+
+ private static SharedStoreConfig loadSharedStoreConfig(NamedList<Object> nl) {
+ if (nl == null) {
+ // shared store is not configured
+ return null;
+ }
+ boolean enabled = Boolean.parseBoolean(
+ required("sharedStore", "sharedStoreEnabled", removeValue(nl, "sharedStoreEnabled")));
+ if (enabled) {
+ return new SharedStoreConfig();
+ }
Review comment:
Maybe it works for now, but later we might want to properly add an enabled property to SharedStoreConfig and create SharedStoreConfig even enabled is false.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
[GitHub] [lucene-solr] mbwaheed commented on a change in pull request #1369:
SOLR-14213: Allow enabling shared store to be scriptable
Posted by GitBox <gi...@apache.org>.
mbwaheed commented on a change in pull request #1369: SOLR-14213: Allow enabling shared store to be scriptable
URL: https://github.com/apache/lucene-solr/pull/1369#discussion_r398892436
##########
File path: solr/bin/solr
##########
@@ -1975,6 +1975,10 @@ if [ "$SOLR_MODE" == 'solrcloud' ]; then
CLOUD_MODE_OPTS+=('-DzkRun')
fi
+
+ if [ -n "$SHARE_STORE_ENABLED" ]; then
Review comment:
Why not SHARE**D**_STORE_ENABLED?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
[GitHub] [lucene-solr] yonik merged pull request #1369: SOLR-14213: Allow
enabling shared store to be scriptable
Posted by GitBox <gi...@apache.org>.
yonik merged pull request #1369: SOLR-14213: Allow enabling shared store to be scriptable
URL: https://github.com/apache/lucene-solr/pull/1369
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
[GitHub] [lucene-solr] andyvuong commented on a change in pull request
#1369: SOLR-14213: Allow enabling shared store to be scriptable
Posted by GitBox <gi...@apache.org>.
andyvuong commented on a change in pull request #1369: SOLR-14213: Allow enabling shared store to be scriptable
URL: https://github.com/apache/lucene-solr/pull/1369#discussion_r396649036
##########
File path: solr/core/src/java/org/apache/solr/core/SolrXmlConfig.java
##########
@@ -568,4 +568,17 @@ private static PluginInfo getTracerPluginInfo(XmlConfigFile config) {
Node node = config.getNode("solr/tracerConfig", false);
return (node == null) ? null : new PluginInfo(node, "tracerConfig", false, true);
}
+
+ private static SharedStoreConfig loadSharedStoreConfig(NamedList<Object> nl) {
Review comment:
fyi I moved the actual initialization method from SharedStoreConfig to SolrXmlConfig to avoid duplicating the existing field extraction methods or changing their visibility and so it aligns with how the rest of the section objects are being created. I've kept the SharedStoreConfig since I anticipate we'll start using it once we complete the enabling configurable's work.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org