Apache Solr open-source search software
Merge branch 'feature/autoscaling_solr7'
Shalin Shekhar Mangard633c957cb79
diff --cc solr/CHANGES.txtindex b0da3b8ea1b,d83b786b1b7..9bbb725f905--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@@ -208,36 -204,12 +214,42 @@@ Other Change* SOLR-10755: delete/refactor many solrj deprecations (hossman)+* SOLR-10752: replicationFactor (nrtReplicas) default is 0 if tlogReplicas is specified when creating a collection+ (Tomás Fernández Löbbe)++* SOLR-10757: delete/refactor/cleanup CollectionAdminRequest deprecations (hossman)++* SOLR-10793: BlobHandler should have a well-known permission name (noble)++* SOLR-10744: Update noggit to newer version (0.8) (noble)++* SOLR-10792: Deprecate and remove implicit registration of "lucenePlusSort" aka OldLuceneQParser (hossman)++* SOLR-10791: Remove deprecated options in SSLTestConfig (hossman)++* LUCENE-7852: Correct copyright year(s) in solr/LICENSE.txt file.+ (Christine Poerschke, Steve Rowe)++* SOLR-8668: In solrconfig.xml remove <mergePolicy> (and related <mergeFactor> and <maxMergeDocs>)+ support in favor of the <mergePolicyFactory> element introduced by SOLR-8621 in Solr 5.5.0.+ (Christine Poerschke, hossman)++* SOLR-10799: Extracted functionality to collect eligible replicas from HttpShardHandler.prepDistributed()+ to a new method (Domenico Fabio Marino via Tomás Fernández Löbbe)++* SOLR-10801: Remove several deprecated methods that were exposed to plugin writers (hossman)++* SOLR-10671: Add abstract doInit method to the SolrMetricReporter base class.+ (Christine Poerschke, Anshum Gupta)++* SOLR-10713: Ignore .pid and .out files in solr working directory (Jason Gerlowski via Mike Drob)++ * SOLR-10764: AutoScalingHandler should validate policy and preferences before updating zookeeper. (shalin)++ * SOLR-10782: Improve error handling and tests for Snitch and subclasses and general cleanups. (Noble Paul, shalin)++ * SOLR-10419: All collection APIs should use the new Policy framework for replica placement. (Noble Paul, shalin)+================== 6.7.0 ==================Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.@@@ -321,15 -253,7 +333,15 @@@ Bug Fixe* SOLR-10723 JSON Facet API: resize() implemented incorrectly for CountSlotAcc, HllAgg.NumericAccresulting in exceptions when using a hashing faceting method and sorting by hll(numeric_field).(yonik)-++* SOLR-10719: Creating a core.properties fails if the parent of core.properties is a symlinked dierctory+ (Erick Erickson)++* SOLR-10360: Solr HDFS snapshot export fails due to FileNotFoundException error when using MR1 instead of+ yarn. (Hrishikesh via Mark Miller)-+++* SOLR-10137: Ensure that ConfigSets created via API are mutable. (Hrishikesh via Mark Miller)+Optimizations----------------------* SOLR-10634: JSON Facet API: When a field/terms facet will retrieve all buckets (i.e. limit:-1)diff --cc solr/solrj/src/java/org/apache/solr/common/util/CommandOperation.javaindex c80402f7f97,f995d09abbd..c18a8e483a1--- a/solr/solrj/src/java/org/apache/solr/common/util/CommandOperation.java+++ b/solr/solrj/src/java/org/apache/solr/common/util/CommandOperation.java@@@ -216,13 -222,13 +222,17 @@@ public class CommandOperation/*** Parse the command operations into command objects+ *+ * @param rdr The payload+ * @param singletonCommands commands that cannot be repeated+ * @return parsed list of commands*/- public static List<CommandOperation> parse(Reader rdr) throws IOException {+ public static List<CommandOperation> parse(Reader rdr, Set<String> singletonCommands) throws IOException {JSONParser parser = new JSONParser(rdr);+ parser.setFlags(parser.getFlags() |+ JSONParser.ALLOW_MISSING_COLON_COMMA_BEFORE_OBJECT |+ JSONParser.OPTIONAL_OUTER_BRACES+ );ObjectBuilder ob = new ObjectBuilder(parser);