7971 Commits

Author SHA1 Message Date
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
Erick Erickson
b0ffacab00 SOLR-13988: Harden CreateCollectionCleanupTest. Incorporate Dawid Weiss' suggestion for windows
(cherry picked from commit 7d5d44a3c42797b312310df8a7f4af910e052124)
2019-12-06 19:11:43 -05:00
Erick Erickson
230ab97acb SOLR-13988: Harden CreateCollectionCleanupTest
(cherry picked from commit 106b9d686602b05f02139e296ea3a388a5fac406)
2019-12-06 12:00:18 -05:00
Andrzej Bialecki
5865893e64 SOLR-13831: Context property _loop_iter_ should be a string in order to support
variable expansion.
2019-12-05 18:27:43 +01:00
Munendra S N
2d2f4b9521 SOLR-11706: add support for aggregation on multivalued fields
* min, max, sum, sumsq, avg, stddev, variance, percentile aggregations
  in JSON facets now supports multivalued fields
2019-12-05 11:01:50 +05:30
Robert Muir
5325c29cf9 SOLR-14015: remove blanket filesystem read access from solr-tests.policy
Restrict this to only minimal paths like lucene. It is the defense for directory traversal attacks.
It will also help find bad bugs where things are reading filesystem in the wrong locations.
2019-12-05 00:06:57 -05:00
Robert Muir
11f1c958eb SOLR-14002: fix another static leak in test 2019-12-03 22:44:07 -05:00
Robert Muir
08720cf5c0 SOLR-14000: clean up more static field leaks in tests
On windows, these objects can't be inspected due to security restrictions. So the test runner fails the tests since it does not know how big the leak is.
2019-12-03 18:53:43 -05:00
noble
664d93591f SOLR-13995: Move ZkShardTerms.Terms to SolrJ 2019-12-03 15:37:22 +11:00
Noble Paul
80abab2935 SOLR-13992: Refactor code to have collection, shard name in Replica,Slice (#1051)
* SOLR-13992: Refactor code to have collection name shard name in Replica,Slice
2019-12-03 13:12:23 +11:00
Shalin Shekhar Mangar
ba95111d71 SOLR-13805: NPE when calling /solr/admin/info/health on standalone solr
(cherry picked from commit 5a697344ed1be537ef2acdd18aab653283593370)
2019-11-30 10:04:44 +05:30
Bruno Roustant
1927e850c8
SOLR-13968: Support postingsFormat and docValuesFormat in schema fields.
Closes #1039
2019-11-28 17:17:23 +01:00
David Smiley
8b2d8d0947 SOLR-13971: Revert changes to the default configset. * clarified these are Java system properties * trivial dead code change; Boolean.getBoolean returns a primitive 2019-11-28 11:07:51 -05:00
Jan Høydahl
ee39b15b86 SOLR-13969: Clean up and document AuditEvent API (#1041)
(cherry picked from commit 9f78482295819ba10a383d3027c1d6313c6e2e7d)
2019-11-28 09:57:01 +01:00
Ishan Chattopadhyaya
05c5bcc8b3 SOLR-13971: Removing velocity from _default and disabling custom template support by default 2019-11-28 07:54:37 +05:30
noble
4ad3902137 SOLR-13963: JavaBinCodec has concurrent modification of CharArr resulting in corrupt internode updates 2019-11-26 08:22:48 +11:00
Thomas Wöckinger
5e24a010e0 SOLR-13961: Allow null/empty for removal of child doc in atomic update
Cherry pick: b5fd6d7b22002a06bdc626999a6a527ff6f46488
2019-11-25 10:46:48 -05:00
Jan Høydahl
340b238f1c SOLR-12193: reverting one line back to trace
(cherry picked from commit 592ea19eff0a0d4225f92d0b96bfb3c9559c077e)
2019-11-24 00:06:47 +01:00
Jan Høydahl
5f11efb2d5 SOLR-12193: Move some log messages to TRACE level, remove some dead code
(cherry picked from commit d809bc27f1b5cd6d97e0bfe688c99d481bc42d39)
2019-11-24 00:03:36 +01:00
Jan Høydahl
3adb0903bf SOLR-13465 CoreContainer.auditloggerPlugin should be volatile (#672)
(cherry picked from commit 312431b1821a67c9ddb7e219b9203d6fd7bdd5df)
2019-11-23 01:29:31 +01:00
Jan Høydahl
29e172f6e2 SOLR-13905 Make findRequestType in AuditEvent more robust (#1014)
(cherry picked from commit e45c5ce9b9e70650f119976b8b2d91b3c760cb48)
2019-11-22 23:35:44 +01:00
Eric Pugh
4b37fb0c8f SOLR-13947: Document how to load your own streaming plugins (#1025) 2019-11-22 11:26:24 -08:00
Munendra S N
2ba55b7e3c SOLR-13912: add support for countvals aggregation in JSON facet module
* This aggregation is equivalent to StatsComponent's count
2019-11-22 18:38:49 +05:30
Chris Hostetter
070b691b1f SOLR-13946: Fix SpellCheckCollatorTest.testEstimatedHitCounts lower/upper bounds to match computable values based on random merge policies
(cherry picked from commit 8f30f6436c13d757ea70d1168be5442810709130)
2019-11-21 11:46:56 -07:00
Jan Høydahl
58d5680a90 SOLR-13941: Configure JettySolrRunner same as in web.xml (#1018)
(cherry picked from commit f00bcd560901ebed420c51e52fda788ae8654103)
2019-11-20 10:31:23 +01:00
Andrzej Bialecki
4837e62989 SOLR-13898: Add more information to the failure message. 2019-11-19 16:58:20 +01:00
Adrien Grand
cb1a72ad16 LUCENE-9027: Use SIMD instructions to decode postings. (#973) 2019-11-19 10:29:36 +01:00
Chris Hostetter
8759dea69a SOLR-13943: AwaitsFix TimeRoutedAliasUpdateProcessorTest.testDateMathInStart
(cherry picked from commit 59465c20c462147f0239449ea43f4844cfa585c2)
2019-11-18 16:32:41 -07:00
Chris Hostetter
cb72085ee8 HdfsRecoveryZkTest & HdfsNNFailoverTest: Remove @BadApple anotation
These tests were originally anotated @BadApple in early 2018 as pat of SOLR-12028.

Neither test has failed since 2018-12-28.

Since we no longer have logs from those older jenkins builds, it's hard to be certain how/why this
test was failing, or why exactly it stopped failing – but it's possible the underlying issues were
addressed by general hardening of SolrCloud and the associated base test classes around the same time.

(cherry picked from commit 1411aaee94d49f26c55272f3876a4261357467c8)
2019-11-18 14:32:21 -07:00
Mikhail Khludnev
1c0c244129 LUCENE-9036: ExitableDirectoryReader checks timeout on DocValues access. 2019-11-18 23:37:10 +03:00
Chris Hostetter
3b7e33790a SOLR-13924: AwaitsFix: MoveReplicaHDFSTest
(cherry picked from commit f9076d85cf4804db3eedb23f9ef616f050d328db)
2019-11-18 09:58:41 -07:00
Ishan Chattopadhyaya
e435d92084 SOLR-13662, SOLR-13822: Fixing bug with refresh API, un-ignoring the test and new reference guide on Package Management 2019-11-18 04:00:42 +05:30
Ishan Chattopadhyaya
1e0e5d1b08 SOLR-13662: Ignoring the PackageManagerCLITest until further investigation of failures 2019-11-17 06:05:20 +05:30
Chris Hostetter
e6dc96d4d8 TestDistributedStatsComponentCardinality: Remove @BadApple anotation
This test was originally anotated @BadApple ~2018-10-14 as pat of SOLR-12028.

So far in 2019, it has failed in 62 jenkins-BadApple builds, but all prior to 2019-06-14.

Since we no longer have logs from those older jenkins builds, it's hard to be certain how/why
this test was failing, or why exactly it *stopped* failing -- but a likely suspect is that
the root cause of the problem may have been fixed as part of the Jetty upgrade in SOLR-13541.

(cherry picked from commit 3fb39b2960ae3b04d8f97a683a8c9daaef3f4696)
2019-11-16 08:08:08 -07:00
Munendra S N
5cce058631 SOLR-13911: add support for missing aggregation in JSON facet module
* This missing aggregation is equivalent to StatsComponent's missing
2019-11-16 12:13:16 +05:30
Andrzej Bialecki
4d1fff37fc SOLR-13898: Allow inexact double comparison. Close resources. 2019-11-15 20:34:46 +01:00
Chris Hostetter
95e791622b SOLR-13909: ReplicationHandler testing: Replace the completely broken CheckBackupStatus with a new BackupStatusChecker helper class
(cherry picked from commit 805305c41046da3385d2146de290e52c556b373c)
2019-11-15 10:17:55 -07:00
Tomas Fernandez Lobbe
3a7ea9756c SOLR-13860: Ignore testKillTlogReplica 2019-11-14 15:17:06 -08:00
Ishan Chattopadhyaya
f462fe2794 SOLR-13662: Renaming the test jars to .tmp to avoid precommit failures. Adding timeout for test failure fix. 2019-11-15 01:05:25 +02:00
Andrzej Bialecki
6e655a99ce SOLR-13817: Deprecate legacy SolrCache implementations. 2019-11-14 21:22:18 +01:00