Apache Solr open-source search software
Merge branch 'master' into feature/autoscaling
Shalin Shekhar Mangar2a6acd3a87b6
diff --cc solr/CHANGES.txtindex d8326b89c04,68c36592352..522d95d2c5c--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@@ -149,10 -127,7 +149,7 @@@ Other Change* SOLR-11106: TestLBHttpSolrClient.testReliablity takes 30 seconds because of the wrong server name(Kensho Hirasawa via Erick Erickson)--- * SOLR-11122: Creating a core should write a core.properties file first and clean up on failure- (Erick Erickson)+* SOLR-10338: Configure SecureRandom non blocking for tests. (Mihaly Toth, hossman, Ishan Chattopadhyaya, via Mark Miller)* SOLR-10916: Convert tests that extend LuceneTestCase and use MiniSolrCloudCluster@@@ -179,8 -149,8 +176,10 @@@* SOLR-11195: Require class attribute for shard and cluster metric reporter configuration. (Christine Poerschke)+* SOLR:10822: Share a Policy.session object between multiple collection admin calls to get the correct computations (noble)++ * SOLR-11249: Upgrade Jetty from 9.3.14.v20161028 to 9.3.20.v20170531 (Michael Braun via David Smiley)+================== 7.0.0 ==================Versions of Major Componentsdiff --cc solr/core/src/java/org/apache/solr/cloud/Assign.javaindex c6897cdc25a,342b3c9ba8f..f22312f4758--- a/solr/core/src/java/org/apache/solr/cloud/Assign.java+++ b/solr/core/src/java/org/apache/solr/cloud/Assign.java@@@ -302,6 -292,9 +288,19 @@@ public class Assignreturn nodeMappings.entrySet().stream().map(e -> new ReplicaPosition(e.getKey().shard, e.getKey().index, e.getKey().type, e.getValue())).collect(Collectors.toList());- } else {- return getPositionsUsingPolicy(collectionName,- shardNames, numNrtReplicas, policyName, zkStateReader, nodeList);++ } else {++ if (message.getStr(CREATE_NODE_SET) == null)++ nodeList = Collections.emptyList();// unless explicitly specified do not pass node list to Policy++ synchronized (ocmh) {++ PolicyHelper.SESSION_REF.set(ocmh.policySessionRef);++ try {++ return getPositionsUsingPolicy(collectionName,++ shardNames, numNrtReplicas, numTlogReplicas, numPullReplicas, policyName, ocmh.zkStateReader, nodeList);++ } finally {++ PolicyHelper.SESSION_REF.remove();++ }++++ }}}