Commit Graph

31592 Commits

Author SHA1 Message Date
Andrzej Bialecki a81d2c4a45 Release static solrClient after the test is done (occasionally caused failures on jenkins). 2019-04-10 12:26:33 +02:00
jimczi 3058b75519 LUCENE-8751: Weight#matches now use the ScorerSupplier to build scorers with a lead cost of 1 (single document). 2019-04-10 12:21:01 +02:00
Simon Willnauer addb3977fd LUCENE-8754: Prevent ConcurrentModificationException in SegmentInfo (#637)
In order to prevent ConcurrentModificationException this change makes
an unmodifiable copy on write for all maps in SegmentInfo. MergePolicies
can access these maps without synchronization and cause exceptions if
it's modified in the merge thread.
2019-04-10 09:29:45 +02:00
Moshe d01b13c8ed SOLR-12638: Partial/Atomic updates of nested docs.
and [child] now works in RTG.

(cherry picked from commit 8527ec11af)
2019-04-10 03:03:58 -04:00
Jan Høydahl 77a4604c39 SOLR-12120: Do not fail the main request if synchronous auditing fails, log ERROR
Document that sub classes should call super.close() or a new waitForQueueToDrain() before closing itself

(cherry picked from commit 3e628b562c)
2019-04-09 15:39:19 +02:00
Chris Hostetter 90ae5c1956 SOLR-13369: disable TriLevelCompositeIdRoutingTest until someone who actually understands how the /bits option is *suppose* to work can assess it to determine if the test is flawed or it there is a bug in the underlying CompositeIdRouter
(cherry picked from commit 2533fd1ede)
2019-04-08 18:17:39 -07:00
Chris Hostetter deb7987272 SOLR-13376: Disable test until it can be re-written to reflect actual expected behavior of how/when node markers will be cleaned up
(cherry picked from commit ab55b6386b)
2019-04-08 18:06:21 -07:00
Chris Hostetter ea2a91ef1f BlockCacheTest uses BlockCache which uses the common ForkJoinPool so we need to ensure the SolrIgnoredThreadsFilter is used
(cherry picked from commit 6bc360ee67)
2019-04-08 10:57:23 -07:00
jimczi e460356abe LUCENE-8477: Restore public ctr for FilteredIntervalsSource 2019-04-08 13:30:25 +02:00
Andrzej Bialecki f3cdd326bd SOLR-13368: Tentative fix for a race condition in managed schema initialization. 2019-04-08 11:30:36 +02:00
Cassandra Targett cef83b3f86 Ref Guide: fix numbered list to resolve build warnings 2019-04-06 08:11:15 -05:00
Chris Hostetter afe1df1c22 set the lastmod of the files to be deleted to be 1 day ago so that '-remove_old_solr_logs 0' doesn't run afoul of coarse granularity timestamps on windows jenkins machines if the test starts and runs quickly
(cherry picked from commit 0b7421eca6)
2019-04-05 16:46:01 -07:00
Chris Hostetter fe1a994fe2 Use FSDirectory for TestDocTermOrdsUninvertLimit to reduce the amount of RAM the test needs.
This lowers the risk of OOM, w/o needing to sacrifice testing of how the randomized merging/segments might impact the uninversion

(cherry picked from commit 37166ce4e9)
2019-04-05 15:07:23 -07:00
Erick Erickson 37863e2d09 SOLR-12809: Document recommended Java/Solr combinations
(cherry picked from commit 7602f3c78e)
2019-04-05 10:22:44 -07:00
Erick Erickson 18dc7a5c96 SOLR-13075: Harden SaslZkACLProviderTest. Put AwaitsFix back
(cherry picked from commit 03d76c611b)
2019-04-05 08:49:43 -07:00
jimczi 1fc215ac53 LUCENE-8701: force the score mode of the child weight to COMPLETE if the score is required 2019-04-05 17:15:36 +02:00
jimczi 9056dc78de LUCENE-8701: ToParentBlockJoinQuery now creates a child scorer that disallows skipping over
non-competitive documents if the score of a parent depends on the score of multiple
children (avg, max, min). Additionally the score mode `none` that assigns a constant score to
each parent can early terminate top scores's collection.
2019-04-05 15:25:27 +02:00
Joel Bernstein bb596caecb SOLR-13374: Update CHANGES.txt 2019-04-05 09:09:11 -04:00
Joel Bernstein e87514909b SOLR-13374: Add fetchSize parameter to the jdbc Streaming Expression 2019-04-05 08:54:00 -04:00
Jan Høydahl 4d95746b01 SOLR-12120: Harden AuditLoggerIntegrationTest, timing issues
(cherry picked from commit aadc94a6e3)
2019-04-05 11:35:26 +02:00
Jan Høydahl b0f4b5dc75 SOLR-12120: New AuditLoggerPlugin type allowing custom Audit logger plugins
(cherry picked from commit 361502da8a)
2019-04-05 11:34:03 +02:00
Simon Willnauer 28e8a30b53 LUCENE-8671: Expose FST off/on-heap options on Lucene50PostingsFormat (#613)
Before we can expose options to configure this postings format
on a per-reader basis we need to expose the option to load the terms
index FST off or on heap on the postings format. This already allows to
change the default in a per-field posting format if an expert user
wants to change the defaults. This essentially provides the ability to change
defaults globally while still involving some glue code.
2019-04-04 17:00:32 +02:00
Jan Høydahl 9dd51915fa SOLR-13344: Admin UI inaccessible with RuleBasedAuthorizationPlugin
(cherry picked from commit 96ef35cd2c)
2019-04-04 16:26:19 +02:00
Jason Gerlowski 4b86a39680 SOLR-13331: Fix AtomicUpdate 'remove' ops in SolrJ
The racent change introducing ByteArrayUtf8CharSequence altered the
NamedLists produced by atomic-update requests so that they include
instances of this class for requests coming in as javabin.  This is a
problem for 'remove' atomic-updates, which need to be able to compare
these ByteArrayUtf8CharSequence instances with existing field values
represented as Strings.  equals() would always return false, and
'remove' operations would have no effect.

This commit converts items as necessary to allow atomic-update
operations to work as expected.
2019-04-04 06:53:01 -04:00
Chris Hostetter de1f62e52f Fix test to use solr.disable.shardsWhitelist=true rather then trying to whitelist the set of servers
The previous version of this test had a chicken/egg problem (needed to init the servers w/the whitelist but didn't know the port nums until after init)

that caused it to require 'restarting' the servers -- leading to the possibility of 'Address already in use' errors from jenkins machines if the OS reclaimed the port between the stop/start of the jetty instance

(cherry picked from commit 3fe4d0a30a)
2019-04-03 15:15:36 -07:00
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 1071d09336)
2019-04-01 10:35:12 -07:00
Erick Erickson d420382d04 SOLR-12028: BadApple and AwaitsFix annotations usage
(cherry picked from commit e04a28e140)
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