8010 Commits

Author SHA1 Message Date
noble
ac7ad676ef SOLR-13822: Bug fixs and tests for URP loading 2019-12-19 06:24:26 +11:00
Robert Muir
8c14015e52 SOLR-13983: remove or replace process execution in SystemInfoHandler 2019-12-18 09:23:36 -05:00
Robert Muir
53a82aedcb SOLR-14110: sandbox javax.script usage in tests 2019-12-18 06:31:00 -05:00
Mikhail Khludnev
cc00e1dcef SOLR-14092: Mark BlockJoinFacetComponent as deprecated. 2019-12-18 11:11:25 +03:00
Chris Hostetter
d1fa6e1e02 SOLR-14099: Fixed @LogLevel annotation in test-framework to correctly 'unset' Loggers after test
(cherry picked from commit cc4262a8ec37b2420e1d80a392c5e8019f43e24c)
2019-12-17 14:59:26 -07:00
Chris Hostetter
35793386b0 Harden (Cloud)ExitableDirectoryReaderTest
Thread.sleep() is "subject to the precision and accuracy of system timers and schedulers."

But tests using DelayingSearchComponent need to ensure that it sleeps *at least* as long as they request, in order to trigger the timeAllowed constraint

(cherry picked from commit 8493cf18cbfcbf020c467737e28c55e4b05c60f9)
2019-12-17 14:48:15 -07:00
tallison
a58269f6a6
SOLR-14054: Upgrade to Tika 1.23 2019-12-17 15:55:21 -05:00
Chris Hostetter
c9bd7cedc2 SOLR-13696: AwaitsFix RoutedAliasUpdateProcessorTest (and subclasses)
The helper method RoutedAliasUpdateProcessorTest.addDocsAndCommit doesn't garuntee docs have been committed when it returns, causing threading/timing bugs in tests that use it as a gate for making subsequent assertions -- causing a steady stream of jenkins test failures

(cherry picked from commit 33e44b2fd6973aa801d8bad2b64ff1931d885ee3)
2019-12-17 11:10:24 -07:00
Chris Hostetter
10ea628bb6 SOLR-14081: re-implement FullSolrCloudDistribCmdsTest to extend SolrCloudTestCase
(cherry picked from commit db11e9e9a2c07136399ba002f2bbefe8c611b0a0)
2019-12-16 17:32:57 -07:00
Chris Hostetter
be1e6b457b SOLR-14099: work around @LogLevel bug in LoggingHandlerTest
(cherry picked from commit e6b5da5c12c37dce6f3d767bbafb75b28795ab2f)
2019-12-16 12:13:38 -07:00
Robert Muir
cfccbe5af3 LUCENE-9094: Ban ObjectInputStream and ObjectOutputStream in forbidden-apis 2019-12-16 13:41:33 -05:00
Ishan Chattopadhyaya
461317062c SOLR-14096: Stopping -Denable.packages=true from leaking to other tests 2019-12-16 20:20:43 +05:30
Andrzej Bialecki
c8fb1bf74e Fix an occasional test error caused by the maintenance trigger generating events. 2019-12-16 13:55:12 +01:00
Ishan Chattopadhyaya
8aa0103b14 SOLR-14087: Changing the filestore dir name back to filestore from .filestore 2019-12-16 18:19:44 +05:30
Adrien Grand
ed97a36fb4 SOLR-14094: Bad-apple TestSolrCachePerf. 2019-12-16 13:46:44 +01:00
noble
f433051f5e SOLR-14087: changed the filestore location to .filestore instead of $filestore 2019-12-16 15:51:14 +11:00
Noble Paul
3635a1bcdb SOLR-14087: disable package store API if -Denable.packages not set to true 2019-12-16 08:06:23 +11:00
Kevin Risden
2b775d88eb
SOLR-14086: Tika ClassNotFound error due to commons-compress in solr-core dependency
Introduced in SOLR-14033 by including
commons-compress as a compile time
dependency in Solr core instead of as
as test only dependency.

Signed-off-by: Kevin Risden <krisden@apache.org>
2019-12-15 13:41:10 -05:00
Ishan Chattopadhyaya
de39472f07 SOLR-13662: Fixes to package manager
* Better logging and error reporting
* Fixing deploy command to handle previously undeployed packages
* Test now uses @LogLevel annotation
* Deploy command had a hard coded collection name by mistake, fix it
2019-12-15 10:54:51 +05:30
Kevin Risden
15f570fc4b
SOLR-14077: Hadoop shouldn't need to look for metrics config in user home
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-12-13 22:09:28 -05:00
yonik
1be81700be SOLR-14079: fix SPLITSHARD splitByPrefix in async mode 2019-12-13 17:56:20 -05:00
erick
1a48a87f61 SOLR-14026: Upgrade Jetty to 9.4.24.v20191120 and dropwizard to 4.1.2
(cherry picked from commit 8278886966c6da7379cf9c9505f7859b832c4ab3)
2019-12-13 12:15:32 -05:00
Robert Muir
4a3fa721fb SOLR-14076: clean up static fields leak in nightly-only test 2019-12-13 04:06:33 -05:00
noble
9717540b8e SOLR-14013: javabin performance regressions 2019-12-13 17:42:24 +11:00
Kevin Risden
c021a253fe
SOLR-14048: Improve Hadoop test sanity checks
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-12-12 22:27:17 -05:00
Kevin Risden
85b433e277
SOLR-14047: Make sure tests don't pickup other Hadoop installs
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-12-12 10:36:54 -05:00
Ishan Chattopadhyaya
4c7f5039c7 SOLR-13978: Removed LTR from default configset 2019-12-12 15:09:59 +05:30
Ishan Chattopadhyaya
72b3c54e7d SOLR-14071: Untrusted configsets shouldn't be allowed to use <lib> directive 2019-12-12 15:01:06 +05:30
Adrien Grand
451d5348f4 Add next minor version 8.5 2019-12-12 09:33:20 +01:00
Ishan Chattopadhyaya
08b8d116f8 SOLR-13978: Remove non-essential components from default configset
The default configset no longer has the following:
   - Library inclusions (<lib ../>) for extraction, solr-cell libs, clustering, velocity and language identifier
   - /browse, /tvrh and /update/extract handlers
   - TermVector component (if someone wants it, can be added using config APIs)
   - XSLT response writer
   - Velocity response writer
If you want to use them in your collections, please add them to your configset manually or through the Config APIs.
2019-12-12 10:44:35 +05:30
Munendra S N
576591205c SOLR-13970: disallow using collapse/expand with grouping
* Using collapse with grouping would cause inconsistent behavior.
  This is because grouping calls the same postfilter twice without
  resetting the internal state of the DocValues cache
* Using expand with grouping would cause NPE
2019-12-12 10:22:32 +05:30
Ishan Chattopadhyaya
b52bed0a47 SOLR-14062: Split IndexSizeTriggerTest into three 2019-12-12 10:17:25 +05:30
Ishan Chattopadhyaya
a13b387fb5 SOLR-13945: SPLITSHARD can cause data loss due to rollback when final commit fails 2019-12-12 09:03:07 +05:30
Kevin Risden
5b4266db7d
SOLR-14053: Fix HDFS tests to be ignored if Native I/O isn't available (remove tests.disableHdfs)
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-12-11 22:03:08 -05:00
Dawid Weiss
d6e7898bc9
SOLR-14053: Don't start hdfs when native libraries can't be loaded. Remove tests.disableHdfs. (#1072) 2019-12-11 22:03:01 -05:00
Mikhail Khludnev
f914d9aac7 SOLR-13904: Make Analytics component sensitive to timeAllowed. 2019-12-12 00:11:39 +03:00
Robert Muir
715b2151ac SOLR-14050: clean up tests use of network addresses
Solr tests now have a similar policy to Lucene, loopback use only. If a
test tries to resolve or connect to the internet, it will get SecurityException.

Some solr tests explicitly try to talk to dead nodes with real
networking. This is not good and asking for trouble, but use low loopback port numbers instead of
multicast addresses. The idea is that it fails faster. Move these to
constants so that stuff isn't copy-pasted everywhere, in case we have to
do something different later.
2019-12-11 13:27:03 -05:00
Jason Gerlowski
d1f503290f SOLR-13972: Warn about insecure settings on startup (#1058) 2019-12-11 07:17:23 -05:00
Andrzej Bialecki
783a40a93c SOLR-13975, SOLR-13896: ConcurrentUpdateSolrClient connection stall prevention. 2019-12-11 12:19:25 +01:00
Kevin Risden
d4882891df
SOLR-14033: Fix Hadoop tests with security manager
This removes the Solr security manager hacks
for Hadoop. It does so by:
* Using a fake group mapping class instead of ShellGroupMapping
* Copies a few Hadoop classes and modifies them for tests with no Shell
* Nulls out some of the static variables in the tests

The Hadoop files were copied from Apache Hadoop 3.2.0
and copied to the test package to be only picked up
during tests. They were modified to remove the need to
shell out for access. The assumption is that these
HDFS integration tests only run on Unix based systems
and therefore Windows compatibility was removed in some
of the modified classes. The long term goal is to remove
these custom Hadoop classes. All the copied classes are
in the org.apache.hadoop package.

Signed-off-by: Kevin Risden <krisden@apache.org>
2019-12-10 19:49:33 -05:00
Thomas Wöckinger
f4b208bc4e SOLR-13966: forgot to test empty list
(cherry picked from commit 9e84da95a288c8aa07dec6d4159c51f13ef54860)
2019-12-10 16:29:47 -05:00
Andrzej Bialecki
c9a156e1d8 SOLR-13563: SPLITSHARD using LINK method fails on disk usage checks. 2019-12-10 14:22:04 +01:00
Christine Poerschke
b7fa0171e5 Fix 5 javac warnings: 'yield' may become a restricted identifier in a future release. 2019-12-10 12:49:44 +00:00
Houston Putman
53345cb1cd SOLR-12217: Support shards.preference in SolrJ for individual shard requests (#984) 2019-12-09 23:13:33 -05:00
Thomas Wöckinger
87aa11baf8 SOLR-13966: LatLonPointSpatialField fix for RealTimeGetComponent
used in atomic/partial updates.
Closes #1035

(cherry picked from commit e250f3e82cb1b07192a9f07326059b01fde2c62c)
2019-12-09 22:53:33 -05:00
Andrzej Bialecki
349fe428c4 SOLR-13979: Expose separate metrics for distributed and non-distributed requests. 2019-12-09 13:51:35 +01:00
Munendra S N
42a6fcbdd9 SOLR-11706: fix for multivalued trie date in min/max and more tests
* selecting single value for multivalued trie date field is not
  supported.
* add additional tests for variance, unique, hll aggregations
2019-12-08 11:04:52 +05:30
Michael Gibney
65a1804aeb SOLR-7798: robust support for expand when used w/o collapsing (#325)
There are applications of ExpandComponent that intentionally do not
involve prior collapsing of results on the expand field, which can lead
to an NPE in expand component when expand.field (for matched docs) has
fewer unique values than the number of matched docs.

This commit refines the approach taken in SOLR-13877, which addressed
the same underlying issue.
2019-12-08 10:11:18 +05:30
Kevin Risden
970264c6d2
SOLR-14028: Fix test permissions for TestSolrCLIRunExample
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-12-07 16:33:58 -05:00
Munendra S N
0a26e38fbe SOLR-11706: minor refactors
* rename stdDev, variance methods to reflect the functionality
* add util functions to compute corrected stdDev and variance
* use DocValuesIterator#advanceExact to check if values exists for the doc
2019-12-07 11:39:00 +05:30