Apache Lucene open-source search software
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr into feature/autoscaling
Noble Paul309ed641ee7e
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 0383f8b26b4..9451d45b18b 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -73,6 +73,9 @@ Upgrade Notesmakes it much easier for evaluators to handle differing data types (primitives, objects, arrays,lists, and so forth). (Dennis Gove)+* SOLR-10962: in the ReplicationHandler the master.commitReserveDuration sub-element is deprecated. Instead+ please configure a direct commitReserveDuration element for use in all modes (master, slave, cloud).+New Features----------------------* SOLR-10339: New set-trigger and remove-trigger APIs for autoscaling. (shalin)@@ -119,6 +122,13 @@ New Features* SOLR-11316: JSON Facet API: min/max aggregations are now supported on single-valued date fields.(yonik)+* SOLR-10962: Make ReplicationHandler's commitReserveDuration configurable in SolrCloud mode.+ (Ramsey Haddad, Christine Poerschke, hossman)++* SOLR-11382: Lucene's Geo3D (surface of sphere & ellipsoid) is now supported on spatial RPT fields by+ setting spatialContextFactory="Geo3D". Furthermore, this is the first time Solr has out of the box+ support for polygons. (David Smiley)+Bug Fixes----------------------@@ -166,7 +176,7 @@ Bug Fixes* SOLR-11278: Stopping CDCR should cancel a running bootstrap operation. (Amrit Sarkar, shalin)-* SOLR-11293: Potential data loss in TLOG replicas after replication failures (noble)+* SOLR-11293: Potential data loss in TLOG replicas when masterVersion equals zero (noble, Cao Manh Dat)* SOLR-10101: TestLazyCores hangs (Erick Erickson)@@ -179,6 +189,17 @@ Bug Fixes* SOLR-11085: Improve resiliency of autoscaling actions against overseer restarts and operation failures. (shalin)+* SOLR-11297: Message "Lock held by this virtual machine" during startup. Solr is trying to start some cores twice.+ (Luiz Armesto, Shawn Heisey, Erick Erickson)++* SOLR-11399: The UnifiedHighlighter was ignoring the hl.fragsize parameter when hl.bs.type=SEPARATOR+ (Marc Morissette via David Smiley)++* SOLR-11224: SolrStream.close can hit an NPE (Erick Erickson)++* SOLR-11278: Fix a race condition in the CDCR bootstrap process which could lead to bootstraps cancelling itself+ (Amrit Sarkar, shalin, Varun Thacker)+Optimizations----------------------@@ -197,6 +218,8 @@ Optimizations* SOLR-8344: Decide default when requested fields are both column and row stored. (Cao Manh Dat, David Smiley)+* SOLR-10285: Skip LEADER messages when there are leader only shards (Cao Manh Dat, Joshua Humphries)+Other Changes----------------------* SOLR-10643: Throttling strategy for triggers and policy executions. (shalin)@@ -273,6 +296,27 @@ Other Changes* SOLR-10451: Remove contrib/ltr/lib from lib includes in the techproducts example config (sungjunyoung via janhoy)+================== 7.0.1 ==================++Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.++Versions of Major Components+---------------------+Apache Tika 1.13+Carrot2 3.15.0+Velocity 1.7 and Velocity Tools 2.0+Apache UIMA 2.3.1+Apache ZooKeeper 3.4.10+Jetty 9.3.14.v20161028++Bug Fixes+----------------------++* SOLR-11297: Message "Lock held by this virtual machine" during startup. Solr is trying to start some cores twice.+ (Luiz Armesto, Shawn Heisey, Erick Erickson)++* SOLR-11406: Solr 7.0 cannot read indexes from 6.x versions. (Shawn Heisey, Steve Rowe)+================== 7.0.0 ==================Versions of Major Componentsdiff --git a/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionMessageHandler.java b/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionMessageHandler.javaindex 577cf641c1b..509d17c0d54 100644--- a/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionMessageHandler.java+++ b/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionMessageHandler.java@@ -37,6 +37,7 @@ import org.apache.commons.lang.StringUtils;import org.apache.solr.client.solrj.SolrResponse;import org.apache.solr.client.solrj.SolrServerException;import org.apache.solr.client.solrj.cloud.autoscaling.PolicyHelper;+import org.apache.solr.common.cloud.DistributedQueue;import org.apache.solr.client.solrj.impl.HttpSolrClient;import org.apache.solr.client.solrj.impl.HttpSolrClient.RemoteSolrException;import org.apache.solr.client.solrj.request.AbstractUpdateRequest;@@ -321,7 +322,7 @@ public class OverseerCollectionMessageHandler implements OverseerMessageHandler}private void processReplicaDeletePropertyCommand(ClusterState clusterState, ZkNodeProps message, NamedList results)- throws KeeperException, InterruptedException {+ throws Exception {checkRequired(message, COLLECTION_PROP, SHARD_ID_PROP, REPLICA_PROP, PROPERTY_PROP);SolrZkClient zkClient = zkStateReader.getZkClient();DistributedQueue inQueue = Overseer.getStateUpdateQueue(zkClient);@@ -332,7 +333,7 @@ public class OverseerCollectionMessageHandler implements OverseerMessageHandlerinQueue.offer(Utils.toJSON(m));}- private void balanceProperty(ClusterState clusterState, ZkNodeProps message, NamedList results) throws KeeperException, InterruptedException {+ private void balanceProperty(ClusterState clusterState, ZkNodeProps message, NamedList results) throws Exception {if (StringUtils.isBlank(message.getStr(COLLECTION_PROP)) || StringUtils.isBlank(message.getStr(PROPERTY_PROP))) {throw new SolrException(ErrorCode.BAD_REQUEST,"The '" + COLLECTION_PROP + "' and '" + PROPERTY_PROP +diff --git a/solr/core/src/java/org/apache/solr/cloud/RestoreCmd.java b/solr/core/src/java/org/apache/solr/cloud/RestoreCmd.javaindex 9edf7298867..f2d37942476 100644--- a/solr/core/src/java/org/apache/solr/cloud/RestoreCmd.java+++ b/solr/core/src/java/org/apache/solr/cloud/RestoreCmd.java@@ -32,8 +32,8 @@ import java.util.Objects;import java.util.Optional;import java.util.Properties;import java.util.Set;-import java.util.concurrent.atomic.AtomicReference;+import org.apache.solr.common.cloud.DistributedQueue;import org.apache.solr.client.solrj.cloud.autoscaling.PolicyHelper;import org.apache.solr.cloud.overseer.OverseerAction;import org.apache.solr.common.cloud.ReplicaPosition;diff --git a/solr/core/src/java/org/apache/solr/cloud/SplitShardCmd.java b/solr/core/src/java/org/apache/solr/cloud/SplitShardCmd.javaindex 3bd6d8965cf..bde92d682f8 100644--- a/solr/core/src/java/org/apache/solr/cloud/SplitShardCmd.java+++ b/solr/core/src/java/org/apache/solr/cloud/SplitShardCmd.java@@ -27,6 +27,7 @@ import java.util.List;import java.util.Map;import java.util.Set;+import org.apache.solr.common.cloud.DistributedQueue;import org.apache.solr.client.solrj.cloud.autoscaling.PolicyHelper;import org.apache.solr.client.solrj.request.CoreAdminRequest;import org.apache.solr.cloud.OverseerCollectionMessageHandler.Cmd;