2381 Commits

Author SHA1 Message Date
Chris Hostetter
c58787d045 SOLR-13393: Fixed ZkClientClusterStateProvider to prevent risk of leaking ZkStateReader/threads when processing concurrent requests during shutdown.
This primarily affected tests, but may have also caused odd errors/delays when restart/shutting down solr nodes.

(cherry picked from commit 980fd7d5c56349570b2202dedcf7b454216a61b8)
2019-04-11 14:23:14 -07:00
Andrzej Bialecki
f83098752c SOLR-13262: Add collection RENAME command and support using aliases in most collection admin commands. 2019-04-10 18:57:16 +02:00
Joel Bernstein
e87514909b SOLR-13374: Add fetchSize parameter to the jdbc Streaming Expression 2019-04-05 08:54:00 -04:00
Jason Gerlowski
7c0caeacfa SOLR-13362: Add 'includeIndexFieldFlags' in LukeRequest 2019-04-01 20:40:49 -04:00
Kevin Risden
96c293ec1b
SOLR-9079: Remove commons-lang as a dependency
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-20 19:51:34 -04:00
Andrzej Bialecki
b778417054 SOLR-11127: REINDEXCOLLECTION command for re-indexing of existing collections. 2019-03-19 13:47:44 +01:00
Chris Hostetter
653ba8d245 SOLR-12923: Fix some issues w/concurrency and exception swallowing in SimClusterStateProvider/SimCloudManager
There are 3 tightly related bug fixes in these changes:

1) ConcurrentModificationExceptions were being thrown by some SimClusterStateProvider methods when
   creating collections/replicas due to the use of ArrayLists nodeReplicaMap. These ArrayLists were changed
   to use synchronizedList wrappers.
2) The Exceptions from #1 were being swallowed/hidden by code using SimCloudManager.submit() w/o checking
   the result of the resulting Future object. (As a result, tests waiting for a particular ClusterShape
   would timeout regardless of how long they waited.)   To protect against "silent" failures like this,
   this SimCloudManager.submit() has been updated to wrap all input Callables such that any uncaught errors
   will be logged and "counted."  SimSolrCloudTestCase will ensure a suite level failure if any such failures
   are counted.
3) The changes in #2 exposed additional concurrency problems with the Callables involved in leader election:
   These would frequently throw IllegalStateExceptions due to assumptions about the state/existence of
   replicas when the Callables were created vs when they were later run -- notably a Callable may have been
   created that held a reference to a Slice, but by the time that Callable was run the collection (or a
   node, etc...) refered to by that Slice may have been deleted.  While fixing this, the leader election
   logic was also cleaned up such that adding a replica only triggers leader election for that shard, not
   every shard in the collection.

While auditing this code, cleanup was also done to ensure all usage of SimClusterStateProvider.lock was
also cleaned up to remove all risky points where an exception may have been possible after aquiring the
lock but before the try/finally that ensured it would be unlocked.

(cherry picked from commit 76babf876a49f82959cc36a1d7ef922a9c2dddff)
2019-03-15 14:24:07 -07:00
Gus Heck
1d85f13eeb SOLR-13131 Category Routed Aliases
(cherry picked from commit d8f2a02fdb11a484425f9fddfa7061711d2f0034)
2019-03-13 01:36:40 -04:00
Gus Heck
39adb09fc9 Remove inadvertently included println 2019-03-12 16:07:02 -04:00
Gus Heck
470813143d SOLR-12891 MacroExpander will no longer will expand URL parameters by
default inside of the 'expr' parameter, add InjectionDefense class
for safer handling of untrusted data in streaming expressions and add
-DStreamingExpressionMacros system property to revert to legacy behavior

(cherry picked from commit 9edc557f4526ffbbf35daea06972eb2c595e692b)
2019-03-12 11:56:28 -04:00
erick
277251c202 SOLR-13268: Clean up any test failures resulting from defaulting to async logging
(cherry picked from commit 9272c29)
2019-03-10 11:35:51 -07:00
Andrzej Bialecki
f6f5f995ef SOLR-13292: Provide extended per-segment status of a collection. 2019-03-09 14:09:34 +01:00
Christine Poerschke
c55415cda8 SOLR-13254: Correct message that is logged in solrj's ConnectionManager when an exception occurred while reconnecting to ZooKeeper. (hu xiaodong via Christine Poerschke) 2019-03-07 21:09:43 +00:00
Joel Bernstein
9456d25b13 SOLR-13287: Remove System.out debugging 2019-03-06 13:57:05 -05:00
Andrzej Bialecki
5f605daf92 SOLR-13271: Read-only mode for SolrCloud collections. 2019-03-05 17:17:00 +01:00
Joel Bernstein
6ccd03e1fd SOLR-13287: Allow zplot to visualize probability distributions in Apache Zeppelin 2019-03-05 09:44:25 -05:00
Cao Manh Dat
3064b9bb5f SOLR-13276: Adding Http2 equivalent classes of CloudSolrClient and HttpClusterStateProvider 2019-03-04 09:43:35 +00:00
Noble Paul
b14748e61f SOLR-13285: Updates with enum fields and javabin cause ClassCastException 2019-03-04 10:26:09 +11:00
Noble Paul
3fcf7fa54e SOLR-13282: JDBCStreamTest should use assertEquals(double, double, delta) instead of '==' to compare 2 double values 2019-03-01 10:14:11 +11:00
Joel Bernstein
b516d67c93 SOLR-10436: Add hashRollup Streaming Expression 2019-02-28 09:22:21 -05:00
Cao Manh Dat
feff459a1b SOLR-12297: Remove debugging System.out line 2019-02-27 09:54:35 +00:00
Noble Paul
7a33ba3323 SOLR-13255 : ClasscastException when URPs try to read a String field which returns a ByteArrayUTF8CHarSequence . This is a regression in release 7.7 2019-02-20 22:20:35 +11:00
shalinmangar
7ede4e2b43 SOLR-13248: Autoscaling based replica placement is broken out of the box.
Solr 7.5 enabled autoscaling based replica placement by default but in the absence of default cluster policies, autoscaling can place more than 1 replica of the  same shard on the same node. Also, the maxShardsPerNode and createNodeSet was not respected. Due to these reasons,  this issue reverts the default replica placement policy to the 'legacy' assignment policy that was the default until Solr 7.4.

(cherry picked from commit 7e2d40197cb096fe0519652c2ebbbf38a70d0d65)
2019-02-18 14:26:20 -08:00
Erick Erickson
4428f53c91 SOLR-12028: BadApple and AwaitsFix annotations usage.
(cherry picked from commit 3235c61e7775728eb3d1c014e5e3a5d1ea3a55eb)
2019-02-17 10:41:36 -08:00
Noble Paul
93288d7e28 SOLR-13171 : A true streaming parser for javabin payload/stream without creating any objects 2019-02-13 18:25:09 +11:00
Bruno P. Kinoshita
a1b2913049 Fix some spell check issues 2019-02-12 21:36:48 -08:00
Andrzej Bialecki
98cea5440f SOLR-13155: Add command-line option for testing autoscaling configurations. 2019-02-12 11:53:57 +01:00
Jason Gerlowski
199725d5d5 SOLR-13042: Miscellaneous JSON Faceting ref-guide improvements 2019-02-06 21:17:32 -05:00
Jan Høydahl
ceb73803a6 SOLR-12121: JWT Token authentication plugin with OpenID Connect implicit flow login through Admin UI
(cherry picked from commit ea2c8ba38e32a9f1e7d11cf3687c5469bfd6414c)
2019-02-06 08:39:03 +01:00
David Smiley
10930fd83a SOLR-5211: Document that delete-by-id (and updates) don't affect child/nested docs
(cherry picked from commit 372d68f7f68a5a9238fdfbddeae6488432795603)
2019-02-01 15:24:53 -05:00
Noble Paul
745db5f000 SOLR-13130: during the ResponseBuilder.STAGE_GET_FIELDS directly copy string bytes and avoid creating String Objects 2019-01-27 16:03:16 +11:00
Joel Bernstein
d837877e78 SOLR-131476: Add double value to test vector 2019-01-21 14:03:13 -05:00
Joel Bernstein
6395f0d543 SOLR-131476: Add movingMAD Stream Evaluator 2019-01-21 14:02:46 -05:00
Joel Bernstein
28953a3afc SOLR-13146: Allow derivatives to be computed for the oscillate Stream Evaluator 2019-01-20 13:20:41 -05:00
Tomas Fernandez Lobbe
e9db95831b SOLR-12770: Make it possible to configure a host whitelist for distributed search 2019-01-15 11:49:11 -08:00
Joel Bernstein
2bcb7f13f0 SOLR-13104: Add natural and repeat Stream Evaluators 2019-01-13 13:14:47 -05:00
Joel Bernstein
4e99591446 SOLR-13134: Allow the knnRegress Stream Evaluator to more easily perform bivariate regression 2019-01-12 15:28:29 -05:00
Noble Paul
8bb21f90e1 SOLR-13016: precommit errors 2019-01-09 23:58:04 +11:00
Noble Paul
2f6d31364e SOLR-13016: Computing suggestions when policy have "#EQUAL" or "#ALL" rules take too long 2019-01-09 23:58:01 +11:00
Noble Paul
6f6a35d8f7 SOLR-12983: tests don't need to use the optimization 2019-01-09 13:49:25 +11:00
Noble Paul
507a96e418 SOLR-12983: JavabinLoader should avoid creating String Objects and create UTF8CharSequence fields from byte[] 2019-01-09 13:49:05 +11:00
Andrzej Bialecki
a5972cedf8 SOLR-12730: Implement staggered SPLITSHARD requests in IndexSizeTrigger. 2019-01-07 19:15:44 +01:00
Shalin Shekhar Mangar
2bd6f246b0 SOLR-11126: New Node-level health check handler at /admin/info/healthcheck and /node/health paths that checks if the node is live, connected to zookeeper and not shutdown 2019-01-06 12:41:49 +05:30
David Smiley
6342ec699e SOLR-12633: remove anonChildDocs update parameter used in nested docs in JSON. 2019-01-03 10:58:59 -05:00
Gus Heck
752989fd74 SOLR-13086 improve error message in DocumentObjectBinder 2018-12-31 07:54:56 -05:00
Erick Erickson
24ae0d16cd SOLR-12028: Catching up with annotations after recent Solr test work 2018-12-27 18:03:50 -08:00
Joel Bernstein
d018cd18f4 SOLR-13088: Add zplot Stream Evaluator to plot math expressions in Apache Zeppelin 2018-12-27 14:42:27 -05:00
Jason Gerlowski
207b3f4453 SOLR-13045: Sim node versioning should start at 0
Prior to this commit, new ZK nodes being simulated by the sim framework
were started with a version of -1.  This causes problems, since -1 is
also coincidentally the flag value used to ignore optimistic concurrency
locking and force overwrite values.
2018-12-21 08:04:44 -05:00
Adrien Grand
785d02208a Remove duplicate package info. 2018-12-17 11:29:34 +01:00
Adrien Grand
6f08eee2fd Fix compilation. 2018-12-17 10:07:36 +01:00