Commit Graph

32589 Commits

Author SHA1 Message Date
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
Robert Muir d151fc871a LUCENE-9090: remove ant runtime pollution from tests classpath
previously, entire classpath of ant (ant itself, plugins, ivy, etc) were
polluting the unit tests classpath. it leads to non-reproducible build
issues because tests classpath is different depending on things outside
of source code control.

for example, solr tests launching hadoop, hadoop launching jetty, jetty
scanning classpath -> boom
2019-12-11 21:05:49 -05:00
Joel Bernstein c4dce29582 SOLR-14060: Update CHANGES.txt 2019-12-11 21:00:13 -05:00
Joel Bernstein deea5868ad SOLR-14060: Allow the random Streaming Expression to create the x-axis 2019-12-11 20:38:15 -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
Erik Hatcher 9dfee35b9f SOLR-14025: VelocityResponseWriter hardening 2019-12-11 12:38:58 -05:00
Joel Bernstein 9c5284fe0b SOLR-13957: Update CHANGES.txt 2019-12-11 12:03:29 -05:00
Joel Bernstein a4f2c099ec SOLR-14043: Update CHANGES.txt 2019-12-11 11:58:34 -05:00
Robert Muir 529a555c08 LUCENE-9079: add missing newlines to end of hunspell test files... we aren't trying to test corner cases of LineNumberReader 2019-12-11 08:39:19 -05:00
Jason Gerlowski e81ebc0312 SOLR-13999: Add missing CHANGES.txt entry 2019-12-11 07:44:56 -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
Ignacio Vera a06a2ea3da LUCENE-8620: Add CONTAINS support for LatLonShape and XYShape (#872) 2019-12-11 09:18:24 +01:00
Erick Erickson dda88f73bb SOLR-13953: Prometheus exporter in SolrCloud mode limited to 100 nodes
(cherry picked from commit d189520935)
2019-12-10 20:26:04 -05: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 9e84da95a2)
2019-12-10 16:29:47 -05:00
Vergil Cheynov 133a99e634 SOLR-13999: Document zkHost 'topic()' stream param 2019-12-10 16:07:45 -05:00
Andrzej Bialecki 7362a76e6e SOLR-13806: SolrJ QueryResponse._explainMap is incorrectly typed. 2019-12-10 20:44:46 +01:00
Joel Bernstein 10cfb08a38 SOLR-14043: Allow the precision Stream Evaluator to operate on matrices 2019-12-10 13:14:19 -05:00
Joel Bernstein 57761f5b53 SOLR-13957: Add sensible defaults for the facet, random, facet2D, timeseries, stats and update Streaming Expressions 2019-12-10 09:47:17 -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
Alessandro Benedetti 662c455ab0 SOLR-14029: Solr Ref Guide: clarify requestDispatcher handleSelect=true
(cherry picked from commit e84a23529e)
2019-12-09 23:29:30 -05: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 e250f3e82c)
2019-12-09 22:53:33 -05:00
Kevin Risden 346b515666
SOLR-14039: SOLR-13987 broke multiple node /select handler due to jetty.xml whitespace
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-12-09 20:26:37 -05:00
Chris Hostetter d0c6ab8bac SOLR-14032: some misc ref-guide improvements related to clarifying the pros/cons of the diff ways to 'boost' documents by func/query
(cherry picked from commit 485e140e93)
2019-12-09 15:35:07 -07:00
Adrien Grand 6385e63851 LUCENE-9071: Speed up BM25 scores. (#1043) 2019-12-09 19:17:39 +01:00
ngomx afa4eb92dc
SOLR-13818: Upgrade jackson to 2.10.0
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-12-09 11:52:26 -05:00
Christine Poerschke 8e4e9cbcaa SOLR-14030: fix 2 javac warnings: [dep-ann] deprecated item is not annotated with @Deprecated 2019-12-09 14:35:15 +00:00
Christine Poerschke 540f617cbb LUCENE-8996: maxScore was sometimes missing from distributed grouped responses.
(Julien Massenet, Diego Ceccarelli, Munendra S N, Christine Poerschke)

Resolved Conflicts:
	lucene/grouping/src/java/org/apache/lucene/search/grouping/TopGroups.java
2019-12-09 14:34:36 +00:00
Andrzej Bialecki 349fe428c4 SOLR-13979: Expose separate metrics for distributed and non-distributed requests. 2019-12-09 13:51:35 +01:00
Jan Høydahl 9dd1b4accc SOLR-13977: Move changes entry to 8.4
(cherry picked from commit 0d78535dcf)
2019-12-09 10:28:38 +01:00
Daiki Tsuzuku d0f433632f LUCENE-9085: Fix assertion in CharacterUtils (#1067) 2019-12-09 08:32:50 +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 7ad7bbe05c
SOLR-13987: Admin UI should not rely on javascript eval()
* Removes `'unsafe-eval'` from CSP `script-src`
* Enables Angular CSP mode
* Removes `eval()` JSON parsing in `cloud.js`
* Removes `jstree` themes error

Signed-off-by: Kevin Risden <krisden@apache.org>
2019-12-07 16:52:19 -05:00
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 7d5d44a3c4)
2019-12-06 19:11:43 -05:00
Jason Gerlowski e44bcc05c4 SOLR-13087: Remove 'whoami' usage in bin/solr
whoami displays a warning if the effective-uid is not in /etc/password.
This can happen in certain situations when running in a docker
container.  This replaces the 'whoami' usage with a safer check.
2019-12-06 15:32:38 -05:00
Erick Erickson 230ab97acb SOLR-13988: Harden CreateCollectionCleanupTest
(cherry picked from commit 106b9d6866)
2019-12-06 12:00:18 -05:00
Kevin Risden 81e99697d7
SOLR-14001: fix HdfsBackupRepositoryTest on windows
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-12-06 09:50:36 -05:00
Jan Høydahl 912789bb93 SOLR-13954: Embedded ZooKeeper in Solr now does not try to load JettyAdminServer (#1059)
(cherry picked from commit 7417fa1cf3)
2019-12-06 11:05:11 +01:00
Robert Muir 0cd302d7b7 SOLR-14020: move hadoop hacks out of lucene TestSecurityManager into a solr one 2019-12-05 14:56:21 -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
Robert Muir e6728cdf64 SOLR-13993: sandbox velocity template render (if security manager is enabled)
The solr permissions are weak sauce due to the huge number of features, third-party dependencies, etc.

Hence they have access to do many things. For "scripting" such as velocity we have to look at a more aggressive stance:

Step 1: Can we wrap a sandbox around the whole goddamn thing and call it a day?
Step 2: Let's separate the "engine" from "untrusted code" and only be an asshole to the latter.
Step 3: Java's security is shit, Lets contain that classloader and whitelist access.
2019-12-05 01:36:58 -05:00