31567 Commits

Author SHA1 Message Date
Kevin Risden
9f2e04b3f2
SOLR-13075: Harden SaslZkACLProviderTest (Kevin Risden, Hrishikesh Gadre, Peter Cseh)
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-04-03 11:09:24 -04:00
Jason Gerlowski
fdeedce21f SOLR-13355: Add missing CHANGES.txt entry 2019-04-03 07:41:28 -04:00
Jason Gerlowski
d5b9fbee37 SOLR-13355: Obey 'ALL' for handlers with other predefined perms
Prior to this commit, RuleBasedAuthorizationPlugin would check for the
predefined 'ALL' permission only when the endpoint being hit wasn't
associated with another predefined-permission.

This resulted in some very unintuitive behavior. For example, the
permission {name:all, role:admin} would correctly prevent a
role:foo user from accessing /admin/info/properties, but would allow
write access to /admin/authorization because of the SECURITY_EDIT
predefined perm associated with that endpoint.

This commit fixes this bug so that the 'all' permission is always
consulted whether or not the endpoint is associated with other predefined
permissions.
2019-04-03 07:34:49 -04:00
Jason Gerlowski
68918206f5 SOLR-13355: Small refactors to RuleBasedAuthorizationPlugin 2019-04-03 07:34:37 -04:00
Ishan Chattopadhyaya
b2e7ab6d7a Adding 6.6.6 backcompat indexes 2019-04-03 15:25:37 +05:30
Alan Woodward
6f47062a9b LUCENE-8750: Add setMissingValue to sorts from Double/LongValuesSource 2019-04-03 10:18:07 +01:00
erick
a248bc209e SOLR-13075: Harden SaslZkACLProviderTest. Testing new ZK version
(cherry picked from commit 3810d5e)
2019-04-02 21:46:08 -07:00
erick
312e61df5f SOLR-13363: Upgrade to ZooKeeper 3.4.14
(cherry picked from commit 5837687)
2019-04-02 20:22:17 -07:00
Christine Poerschke
c19dc7b451 LUCENE-8742: add 'missing slop attribute' test coverage for SpanNearBuilder 2019-04-02 19:55:23 +01:00
Christine Poerschke
4a2ea61c95 minor stream-decorator-reference.adoc tweak w.r.t. parallel function's partitionKeys 2019-04-02 19:55:12 +01:00
Christine Poerschke
9cab6266ef s/reduce/rollup wording correction in stream-decorator-reference.adoc 2019-04-02 19:55:01 +01:00
Alan Woodward
9591052fed LUCENE-8730: WordDelimiterGraphFilter always emits its original token first 2019-04-02 08:59:16 +01:00
Jason Gerlowski
7c0caeacfa SOLR-13362: Add 'includeIndexFieldFlags' in LukeRequest 2019-04-01 20:40:49 -04:00
Chris Hostetter
c18da4c6bc SOLR-13352: Remove risk of deadlock/threadleak when shutting down an Overseer(TriggerThread)
(cherry picked from commit 1071d093360b2c5869a918de743c7089952094f4)
2019-04-01 10:35:12 -07:00
Erick Erickson
d420382d04 SOLR-12028: BadApple and AwaitsFix annotations usage
(cherry picked from commit e04a28e1400514e104a867f5d6c76f8761ff348a)
2019-04-01 09:28:25 -07:00
Cassandra Targett
71cdf793ac SOLR-13259: clarify language around *must* reindex vs *should* reindex 2019-04-01 10:06:31 -05:00
Kevin Risden
1ad668e0bf
SOLR-13359: Make UpdateHandler support other prefixes (besides hdfs:/)
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-31 10:47:17 -04:00
Jason Gerlowski
09b41ce578 Improve docs on using basic-auth in SolrJ 2019-03-31 10:38:16 -04:00
Kevin Risden
ae95487db6
SOLR-11473: Make HDFSDirectoryFactory support other prefixes (besides hdfs:/)
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-30 14:27:32 -04:00
erick
03a3562f78 SOLR-13349:High CPU usage in Solr due to Java 8 bug
(cherry picked from commit b2941ff)
2019-03-28 15:51:14 -07:00
Kevin Risden
e99fd063b0
SOLR-13353: Add SolrCli AuthTool test
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-28 18:36:33 -04:00
Kevin Risden
543ea46afa
SOLR-13351: Workaround for VELOCITY-908
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-28 09:26:02 -04:00
Joel Bernstein
843763db06 SOLR-13294: Change test file name 2019-03-27 15:50:29 -04:00
Joel Bernstein
168e409d6d SOLR-13294: TestSQLHandler failures on windows jenkins machines 2019-03-27 15:50:08 -04:00
jimczi
4ff187e8b0 LUCENE-8732: ConstantScoreQuery can now early terminate the query if the minimum score is greater than the constant score and total hits are not requested 2019-03-27 18:10:15 +01:00
Alan Woodward
b1edfc5ef2 LUCENE-8741: Fix ClassCastException in ValueSource.fromDoubleValuesSource() 2019-03-27 16:24:23 +00:00
Alan Woodward
0bb9b95ac7 LUCENE-8477: Add CHANGES entry 2019-03-27 11:29:28 +00:00
Alan Woodward
2571bf355f LUCENE-8477: Automatically rewrite disjunctions when internal gaps matter (#620)
We have a number of IntervalsSource implementations where automatic minimization of
disjunctions can lead to surprising results:

* PHRASE queries can miss matches because a longer matching sub-source is minimized
  away, leaving a gap
* MAXGAPS queries can miss matches for the same reason
* CONTAINING, NOT_CONTAINING, CONTAINED_BY and NOT_CONTAINED_BY queries
  can miss matches if the 'big' interval gets minimized

The proper way to deal with this is to rewrite the queries by pulling disjunctions to the top
of the query tree, so that PHRASE("a", OR(PHRASE("b", "c"), "c")) is rewritten to
OR(PHRASE("a", "b", "c"), PHRASE("a", "c")). To be able to do this generally, we need to
add a new pullUpDisjunctions() method to IntervalsSource that performs this rewriting
for each source that it would apply to.

Because these rewritten queries will in general be less efficient due to the duplication of
effort (eg the rewritten PHRASE query above pulls 5 term iterators rather than 4 in the
original), we also add an option to Intervals.or() that will prevent this happening, so that
consumers can choose speed over accuracy if it suits their usecase.
2019-03-27 11:24:29 +00:00
Ishan Chattopadhyaya
b08566cacc SOLR-7414: CSVResponseWriter & XLSXResponseWriter return empty field when fl alias is combined with * selector 2019-03-27 16:29:25 +05:30
Simon Willnauer
bb22c540ac LUCENE-8735: Add missing file 2019-03-26 15:24:05 +01:00
Henning Andersen
251d64a557 LUCENE-8735: Avoid FileAlreadyExistsException on windows. (#619)
FilterDirectory.getPendingDeletions() did not delegate the call, which
resulted in a new IndexWriter on same directory not considering pending
delete files. This could in turn result in a FileAlreadyExistsException
when running windows.
2019-03-26 15:04:52 +01:00
Cassandra Targett
3d317ffbe2 SOLR-11959: Add docs on CDCR limitation with Basic Auth 2019-03-26 08:01:08 -05:00
Kevin Risden
efbb494c8c
SOLR-13112: Upgrade jackson to 2.9.8
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-25 12:19:39 -04:00
Kevin Risden
f545e64061
SOLR-13335: Upgrade to velocity 2.0 and velocity-tools 3.0
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-25 10:02:23 -04:00
Kevin Risden
862a755d67
SOLR-13342: Remove dom4j from Solr
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-25 08:31:26 -04:00
Gus Heck
cbaa68e9c0 sysout checking SOLR-13322 2019-03-24 21:29:16 -04:00
Gus Heck
33edce88f1 SOLR-13323 - remove unused csv related classes/tests 2019-03-24 20:35:15 -04:00
Shalin Shekhar Mangar
f220a511b9 SOLR-11126: Move change log entry under 8.0 2019-03-22 07:31:35 +05:30
Andrzej Bialecki
62c6e8d5d9 SOLR-13322: Properly log exceptions. 2019-03-21 22:22:34 +01:00
Simon Willnauer
46c1c63976 Add assume to test since it only works with mmap directory 2019-03-21 14:20:59 +01: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
Simon Willnauer
c483f6bc59 LUCENE-8671: Load FST off-heap if reader is not opened from an index writer (#610)
Today we never load FSTs of ID-like fields off-heap since we need
very fast access for updates. Yet, a reader that is not loaded from
an IndexWriter can also leave the FST on disk. This change adds
this information to SegmentReadState to allow the postings format
to make this decision without configuration.
2019-03-20 11:29:06 +01:00
Uwe Schindler
c0781e9fc7 LUCENE-8729: Workaround to allow compile under JDK13+ 2019-03-19 19:06:36 +01:00
David Smiley
8f25ded16f SOLR-13253: avoid using IndexSchema.getResourceLoader for non-schema things.
Furthermore it's reference to SolrConfig was removed.

(cherry picked from commit 85a702cdff23a6352945dd78eb54ff6db68f6965)
2019-03-19 13:52:38 -04:00
Bar Rotstein
de58717183 SOLR-12955: Refactored DistributedUpdateProcessor to put SolrCloud specifics into a subclass
Closes #528

(cherry picked from commit 5b7866b0851eff66cb7e929beef5249e3c72ac36)
2019-03-19 13:28:27 -04:00
Andrzej Bialecki
b778417054 SOLR-11127: REINDEXCOLLECTION command for re-indexing of existing collections. 2019-03-19 13:47:44 +01:00
Adrien Grand
83c30303ed LUCENE-8138: Check that dv producers's next/advance and advanceExact impls are consistent. 2019-03-19 13:35:07 +01:00
Adrien Grand
1d9f00fd5e LUCENE-8166: Require merge instances to be consumed in the thread that created them. 2019-03-19 13:35:07 +01:00
Kevin Risden
105979fb4c
SOLR-8033: Remove debug if branch in HdfsTransactionLog
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-19 06:20:47 -04:00
Kevin Risden
6064b03ac6
SOLR-13330: Improve HDFS tests
Related JIRAs:
* SOLR-11010
* SOLR-11381
* SOLR-12040
* SOLR-13297

Changes:
* Consolidate hdfs configuration into HdfsTestUtil
* Ensure socketTimeout long enough for HDFS tests
* Ensure HdfsTestUtil.getClientConfiguration used in tests
* Replace deprecated HDFS calls
* Use try-with-resources to ensure closing of HDFS resources

Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-19 05:27:46 -04:00