Apache Solr open-source search software
Merge branch 'master' into feature/autoscaling
Cao Manh Dat88d9b284920e
diff --cc solr/CHANGES.txtindex e3decb12bf1,9720cf2a106..3cb139848c9--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@@ -58,8 -58,9 +58,11 @@@ New Feature----------------------* SOLR-11019: Add addAll Stream Evaluator (Joel Bernstein)++* SOLR-10996: Implement TriggerListener API (ab, shalin)++ * SOLR-11046: Add residuals Stream Evaluator (Joel Bernstein)+Bug Fixes----------------------@@@ -279,16 -273,12 +285,18 @@@ New FeatureThis also solves issues SOLR-8495, SOLR-6966, and SOLR-7058(janhoy, Steve Rowe, hossman, Alexandre Rafalovich, Shawn Heisey, Cao Manh Dat)-* SOLR-10123: Upgraded the Analytics Component to version 2.0 which now supports distributed collections, expressions over- multivalued fields, a new JSON request language, and more. DocValues are now required for any field used in the analytics+* SOLR-10123: Upgraded the Analytics Component to version 2.0 which now supports distributed collections, expressions over+ multivalued fields, a new JSON request language, and more. DocValues are now required for any field used in the analyticsexpression whereas previously docValues was not required. Please see SOLR-10123 for details. (Houston Putman)+* SOLR-10496: New ComputePlanAction for autoscaling which uses the policy framework to compute cluster+ operations upon a trigger fire. (Noble Paul, shalin)++* SOLR-10965: New ExecutePlanAction for autoscaling which executes the operations computed by ComputePlanAction+ against the cluster. (shalin)++ * SOLR-10282: bin/solr support for enabling Kerberos authentication (Ishan Chattopadhyaya)+Bug Fixes----------------------* SOLR-9262: Connection and read timeouts are being ignored by UpdateShardHandler after SOLR-4509.diff --cc solr/core/src/java/org/apache/solr/cloud/CreateCollectionCmd.javaindex df237968ca2,b136335a7d3..0b85f8e903e--- a/solr/core/src/java/org/apache/solr/cloud/CreateCollectionCmd.java+++ b/solr/core/src/java/org/apache/solr/cloud/CreateCollectionCmd.java@@@ -290,10 -283,16 +290,19 @@@ public class CreateCollectionCmd implemocmh.cleanupCollection(collectionName, new NamedList());log.info("Cleaned up artifacts for failed create collection for [{}]", collectionName);} else {+ if (autoAddReplicas) {+ ocmh.forwardToAutoScaling(AutoScaling.AUTO_ADD_REPLICAS_TRIGGER_DSL);+ }log.debug("Finished create command on all shards for collection: {}", collectionName);++ // Emit a warning about production use of data driven functionality+ boolean defaultConfigSetUsed = message.getStr(COLL_CONF) == null ||+ message.getStr(COLL_CONF).equals(ConfigSetsHandlerApi.DEFAULT_CONFIGSET_NAME);+ if (defaultConfigSetUsed) {+ results.add("warning", "Using _default configset. Data driven schema functionality"+ + " is enabled by default, which is NOT RECOMMENDED for production use. To turn it off:"+ + " curl http://{host:port}/solr/" + collectionName + "/config -d '{\"set-user-property\": {\"update.autoCreateFields\":\"false\"}}'");+ }}} catch (SolrException ex) {throw ex;