Commit Graph

14543 Commits

Author SHA1 Message Date
Christine Poerschke 12dab0f80e SOLR-14831: remove deprecated FacetParams.FACET_DISTRIB constant 2020-09-09 13:22:31 +01:00
Christine Poerschke 4716a0b2fa SOLR-14831: mark FacetParams.FACET_DISTRIB as deprecated 2020-09-09 13:21:41 +01:00
Christine Poerschke 04def94492
SOLR-14831: remove deprecated-and-unused "facet.distrib.mco" constant in FacetParams.java (#1832) 2020-09-09 13:09:21 +01:00
Christine Poerschke f46515ee6b
Rename TestDirectoryFactory to DirectoryFactoriesTest (which is different from DirectoryFactoryTest). (#1790) 2020-09-09 13:08:20 +01:00
Mike Drob 984466f31b
SOLR-14770 Avoid reregistering JVM Guage as well (#1469) 2020-09-08 10:18:24 -05:00
Noble Paul 95ab98c920
SOLR-14151: Bug fixes (#1815) 2020-09-08 09:58:42 +10:00
Uwe Schindler e2003029e3 Merge branch 'master' of https://gitbox.apache.org/repos/asf/lucene-solr 2020-09-07 23:49:23 +02:00
Uwe Schindler 3cb2829a17 Fix tabs in MD files 2020-09-07 23:49:03 +02:00
Erick Erickson 8c5ce090dd LUCENE-9475: Enhance the Gradle build as necessary after removing Ant support, some minor text changes to solr/README.md and help.gradle 2020-09-06 17:16:08 -04:00
Dawid Weiss e3437a467e LUCENE-9475: remove obsolete ant-only jar sha's from Solr. 2020-09-06 22:42:28 +02:00
Dawid Weiss 8a1644779b SOLR-14836: Exclude README.committers.txt from distribution 2020-09-06 22:37:00 +02:00
Jason Gerlowski ecb8ca2fef SOLR-14821: {!terms} dVTFTL supports single-valued strings
Prior to this commit the docValuesTermsFilterTopLevel method of the
{!terms} query parser would return zero results when run against a
single-valued String.  This commit fixes this by wrapping the
single-valued 'SortedDocValues' in a 'SortedSetDocValues' object.
2020-09-05 13:54:27 -04:00
Erick Erickson f71ba62d4a SOLR-14579: Comment SolrJ 'Utils' generic map functions 2020-09-05 09:19:45 -04:00
Gus Heck 65da5ed32c
SOLR-14704 add download option to cloud.sh (#1715) 2020-09-04 09:39:23 -04:00
Andy Vuong 2544df8f6d
SOLR-14658: SolrJ collectionStatus(col) should only fetch one status (#1687)
An optimization or a perf-bug depending on point of view
2020-09-03 14:25:36 -04:00
Cassandra Targett 0ce6de61e8 Ref Guide: fix ref guide build instructions for Gradleland 2020-09-03 10:32:19 -05:00
Bruno Roustant 22abecdbc1
SOLR-14819: Fix inefficient iterator pattern in JsonSchemaValidator. 2020-09-03 12:05:13 +02:00
Chris Hostetter a70a47d053 SOLR-14383: Fix nested indexing ref-guide documentation and corrisponding search examples
Squashed commit of branch jira/SOLR-14383 as of...

commit 34da84c238
Merge: 5d293276a3 8bd79ec301
Author: Chris Hostetter <hossman@apache.org>
Date:   Tue Sep 1 16:39:03 2020 -0700

    Merge branch 'master' into jira/SOLR-14383
2020-09-02 14:16:23 -07:00
Cassandra Targett b867ae49d3 Ref Guide: fix build.gradle to get the ZK version to properly insert into files during html conversion 2020-09-02 13:18:01 -05:00
Bruno Roustant 56dbb66503
SOLR-14782: Document how to unescape for the QueryElevationComponent. 2020-09-02 17:40:00 +02:00
Robert Muir 784ede4eda
LUCENE-9215: replace checkJavaDocs.py with doclet (#1802)
This has the same logic as the previous python, but no longer relies
upon parsing HTML output, instead using java's doclet processor.

The errors are reported like "normal" javadoc errors with source file
name and line number and happen when running "gradlew javadoc"

Although the "rules" are the same as the previous python, the python had
some bugs where the checker didn't quite do exactly what we wanted, so
some fixes were applied throughout.

Co-authored-by: Dawid Weiss <dawid.weiss@carrotsearch.com>
Co-authored-by: Uwe Schindler <uschindler@apache.org>
2020-09-02 08:29:17 -04:00
Dawid Weiss defffd40cb
SOLR-14822: Gradle: solr ref guide's dependencies should be moved to the test pool (palantir) (#1821) 2020-09-02 13:21:21 +02:00
epugh 6ab3660f25 SOLR-14422 was committed to master but not documented 2020-09-02 07:17:49 -04:00
Dawid Weiss 01e97dbd16 Use -D or -P to set solrGuideVersion. 2020-09-02 12:57:38 +02:00
Erick Erickson 594d676a95 SOLR-14579: reverting incorrect comments 2020-09-01 18:59:08 -04:00
Eric Pugh 8bd79ec301
SOLR-14773 Add LukeRequestHandler to the Solr Ref Guide (#1773)
* basic documentation on how the luke request handler to replace the old wiki page which is out of date

* typo and rework text

* move links around
2020-09-01 16:10:50 -04:00
epugh aab9331c5e fix links to JavaDocs 2020-09-01 13:36:23 -04:00
Ilan Ginzburg 825c18c59b
SOLR-14794: revert commit passing CloudConfig everywhere (a3b3ba10e3) and remove tab in solr/bin/solr.cmd 2020-09-01 17:21:12 +02:00
Erick Erickson b421878b77 SOLR-14579: Comment SolrJ 'Utils' generic map functions 2020-09-01 10:04:44 -04:00
Erick Erickson 070237cd97 SOLR-14714: Solr.cmd in windows loads the incorrect jetty module when using java>=9 2020-09-01 08:35:45 -04:00
iverase dc901e6797 Sync CHANGES for 8.6.2 2020-09-01 09:53:11 +02:00
noblepaul 4a68cf18b6 SOLR-14151: move the SolrClassLoader interface to SolrJ 2020-09-01 10:23:15 +10:00
Dawid Weiss 4a2a2da462 LUCENE-9435: revert Solr's packaging stuff for now. 2020-08-31 14:55:59 +02:00
David Smiley 06903a40ee
LUCENE-9456: fix DirectUpdateHandlerTest#testPrepareCommit (#1803)
Check for specific files being present or not or changing.  Don't make assumptions about file count.
2020-08-30 11:32:56 -04:00
Dawid Weiss def82ab556
LUCENE-9435: Clean up ant compatability remnants in Gradle build
* Removing ant-only unused tasks.
* Correct message in TestVersion.java
* Remove unused file.
* Removing forbidden API rules for ant.
* Remove 'resolve' emulation.
* Move ecj-lint to task-definition-relative folder.
* Remove 'packaging' specification. It'll have to wait until proper new packaging is implemented for Solr distribution.
* Move render-javadoc tasks's files to task-relative location.
* Moved security manager policies and default JDK logging file to gradle's task relative locations.
* Removing obsolete ant tools. Moving check source patterns under gradle's folder.
* Correct paths.
* Correct property name in task selector.
2020-08-30 14:01:04 +02:00
Ilan Ginzburg a3b3ba10e3
SOLR-14794: pass configuration to Collection API commands (#1801)
Pass CloudConfig instance representing the solrcloud section of solr.xml configuration from Overseer to the Collection and Config Set API commands it executes.
2020-08-30 11:36:28 +02:00
Alexandre Rafalovitch a57ba25400
SOLR-14783: Remove DIH from 9.0 (#1794)
* Remove DIH example directory

* Remove contrib code directories

* Remove contrib package related configurations for build tools

* Remove mention of DIH example

* remove dih as build dependencies and no-longer needed version pins

* Remove README references to DIH

* Remove dih mention from the script that probably does need to exist at all

* More build artifact references

* More removed dependencies leftovers (licenses/versions)

* No need to smoke exclude DIH anymore

* Remove Admin UI's DIH integration

* Remove DIH from shortname package list

* Remove unused DIH (related? not?) dataset
Unclear what is happening here, but there is no reference to that directory anywhere else
The other parallel directories ARE referenced in a TestConfigSetsAPI.java

* Hidden Idea files references

* No DIH to ignore anymore

* Remove last Derby DB references

* Remove DIH from documentation
Add the information in Major Changes document with the link to the external repo

* Added/updated a mention to CHANGES

* Fix leftover library mentions

* Fix Spellings
2020-08-29 10:52:04 -04:00
noblepaul ec27b75232 use proper version String 2020-08-29 18:18:41 +10:00
Tomas Fernandez Lobbe 59d087f0b3
SOLR-14774: Create HealthCheckHandler in CoreContainer (#1774)
This commit does two things:
* Allow users to plug-in different implementations of the handler (they must extend HealthCheckHandler)
* Remove the HealthCheckHandler from the implicit SolrCore plugins
2020-08-28 15:59:56 -07:00
Ishan Chattopadhyaya d84977eb5c SOLR-14616: Remove CDCR 2020-08-29 02:13:13 +05:30
Erick Erickson 69fa5a00fb LUCENE-9433: Remove Ant support from trunk 2020-08-28 09:31:16 -04:00
Erick Erickson eb9f59f041 Adding forceMergeDeletePctAllowed and deletesPctAllowed to TieredMergePolicy documentation 2020-08-27 14:38:33 -04:00
Atri Sharma b381595f55 Fix NPE in CB Config Resolution 2020-08-27 20:52:12 +05:30
Atri Sharma 6a7da3cd50
Update Circuit Breaker configured as a standard plugin (#1785) 2020-08-27 14:06:22 +05:30
Adrien Grand 741251b1c3 LUCENE-9447: Fix test failure. 2020-08-26 12:55:46 +02:00
Adrien Grand 913976dbf7
LUCENE-9447: Make BEST_COMPRESSION better with highly compressible data. (#1762)
This makes BEST_COMPRESSION split blocks into sub blocks and use preset
dictionaries to improve compression ratios.
2020-08-26 11:04:34 +02:00
Philipp Trulson f4c4fbcafc SOLR-14752: Fix error in Zookeeper status when Prometheus plugin is enabled in ZK
Signed-off-by: Jan Høydahl <janhoy@apache.org>
2020-08-26 10:03:42 +02:00
Simon Willnauer 8294e1ae20
LUCENE-8962: Merge segments on getReader (#1623)
Add IndexWriter merge-on-refresh feature to selectively merge 
small segments on getReader, subject to a configurable timeout, 
to improve search performance by reducing the number of small 
segments for searching.

Co-authored-by: Mike McCandless <mikemccand@apache.org>
2020-08-24 20:19:08 +02:00
Atri Sharma 96a853b200
SOLR-14772: Fix TestConfigOverlay (#1778) 2020-08-24 22:34:23 +05:30
Christine Poerschke 4761dbabd9
SOLR-14700: avoid NPEs in TupleStream.getShards() when streamContext is null. (#1754) 2020-08-24 13:00:38 +01:00
Cao Manh Dat a4a0d9e8ce SOLR-14684: Skipping check time exceeded for the first request in a proper way 2020-08-24 10:11:13 +07:00
noblepaul 1c8f4c988a SOLR-14750: use core id to avoid duplicate core reloads 2020-08-22 17:53:55 +10:00
Erick Erickson c9c75810c2 Revert "LUCENE-9433: Remove Ant support from trunk"
This reverts commit 37cd17dc
2020-08-21 16:57:58 -04:00
Mike Drob 77ca552cc6 move changes entry to 8.7 2020-08-21 15:23:56 -05:00
Anderson Dorow 66b6ce2cd0
SOLR-13438: on collection delete, also delete .AUTOCREATED config set (#1759)
Co-authored-by: Anderson Dorow <Anderson.Dorow@zooplus.com>
2020-08-21 14:43:16 -05:00
Erick Erickson 37cd17dcf5 LUCENE-9433: Remove Ant support from trunk 2020-08-21 15:19:52 -04:00
Cao Manh Dat 2b2b9e71d3
SOLR-14684: CloudExitableDirectoryReaderTest failing about 25% of the time (#1724) 2020-08-21 15:41:04 +07:00
Atri Sharma 2f37f40171
SOLR-14615: Implement CPU Utilization Based Circuit Breaker (#1737)
This commit introduces CPU based circuit breaker. This circuit breaker
tracks the average CPU load per minute and triggers if the value exceeds
a configurable value.

This commit also adds a specific control flag for Memory Circuit Breaker
to allow enabling/disabling the same.
2020-08-20 13:21:26 +05:30
Noble Paul 8caf57d50b
SOLR-14750: TestBulkSchemaConcurrent fails often(#1760) 2020-08-19 10:52:12 +10:00
Christine Poerschke 16ab243759 Fix Zo[o]keeper typo in 'solr zk' usage description. 2020-08-18 16:41:35 +01:00
Ishan Chattopadhyaya 77a4d495cc SOLR-14731: Rename @SolrSingleThreaded to @SolrThreadUnsafe, mark DistribPackageStore with the annotation
Co-authored-by: Marcus <marcuseagan@gmail.com>
2020-08-18 16:21:38 +05:30
Atri Sharma 4fed9ff8d3 Move TestRequestRateLimiter to Nightly 2020-08-18 13:43:49 +05:30
Andrzej Bialecki d9fb14dec1 SOLR-13858: Remove no longer used field and getter. 2020-08-17 14:47:38 +02:00
David Smiley 0ce2d610c2
SOLR-14722: timeAllowed should track from req creation (#1726)
* set(long) instead of set(Long).
* Fix javadocs CommonParams.TIME_ALLOWED
2020-08-15 00:41:07 -04:00
Jason Gerlowski 9de454d414 SOLR-14680: Add missing package-info to fix precommit 2020-08-15 09:53:26 +10:00
Houston Putman c7b70267b8 Sync CHANGES for 8.6.1 2020-08-14 16:44:56 -04:00
David Smiley e6a11f8c3a
SOLR prometheus: simplify concurrent collection (#1723)
No semantic difference in behavior.
2020-08-14 15:59:40 -04:00
Yuriy Koval 44c4e6ef31
SOLR-14703 Edismax parser replaces whitespace characters with spaces (#1713) 2020-08-14 14:12:53 -04:00
Jason Gerlowski 216aec03a6
SOLR-14677: Always close DIH EntityProcessor/DataSource (#1741)
Prior to this commit, the wrapup logic at the end of
DocBuilder.execute() closed out a series of DIH objects, but did so
in a way that an exception closing any of them resulted in the remainder
staying open.  This is especially problematic since Writer.close()
throws exceptions that DIH uses to determine the success/failure of the
run.

In practice this caused network errors sending DIH data to other Solr
nodes to result in leaked JDBC connections.

This commit changes DocBuilder's termination logic to handle exceptions
more gracefully, ensuring that errors closing a DIHWriter (for example)
don't prevent the closure of entity-processor and DataSource objects.
2020-08-13 21:21:31 -04:00
Jan Høydahl bed3b8fbfb
SOLR-14751: Zookeeper Admin screen not working for old ZK versions 2020-08-14 01:32:28 +02:00
noblepaul 0b55c94ad6 SOLR-14680: make jdk 8 compatible 2020-08-13 13:53:05 +10:00
Noble Paul d517361bb1
SOLR-14680: Provide an implementation for the new SolrCluster API (#1730) 2020-08-13 13:34:24 +10:00
Jason Gerlowski a6515ca38f SOLR-14748: Correct condition on startup auth/ssl logging 2020-08-12 18:44:02 -04:00
andywebb1975 e72a0d66c6
SOLR-13751: add BooleanSimilarityFactory (#867) 2020-08-12 15:35:50 +01:00
Andrzej Bialecki a5543dfb51 SOLR-14470: Fix test failures by reducing the randomness of test data. 2020-08-12 13:45:25 +02:00
Atri Sharma 1d2749295b
Harden RequestRateLimiter Tests (#1736)
* Harden RequestRateLimiter Tests

This commit adds higher data size and load in the test path. Also improves
the asserts that are performed.
2020-08-11 22:42:53 +05:30
Jason Gerlowski 5887032e95
SOLR-14692: Allow 'method' specification on JSON Facet join domain transforms (#1707) 2020-08-11 08:21:07 -04:00
Dawid Weiss 5375a2d2ad
LUCENE-9454: upgrade hamcrest to version 2.2. (#1738) 2020-08-11 11:55:52 +02:00
Noble Paul 15ae014c59
SOLR-14680: Provide simple interfaces to our cloud classes (only API) (#1694) 2020-08-11 15:05:14 +10:00
Cassandra Targett 424a9a6cfc SOLR-13528: fix heading levels 2020-08-10 16:36:40 -05:00
Cao Manh Dat 9b1aeb3c62 SOLR-14641: Update CHANGES.txt 2020-08-10 15:35:55 +07:00
Cao Manh Dat 57b0160659
SOLR-14641: PeerSync, remove canHandleVersionRanges check (#1663) 2020-08-10 15:04:34 +07:00
Eric Pugh 35771c3cfe
SOLR-14581 Document the way auto commits work in SolrCloud (#1692)
* provide some detail on eventually consistent code

* small tweak to language

* respond to comments and word smithing
2020-08-09 08:35:00 -04:00
Tomas Fernandez Lobbe bd1dd6bdfb SOLR-14582: Fix TestConfig 2020-08-07 16:01:11 -07:00
Gus Heck f827286a2c
SOLR-14582 - Broken test needs fix (#1727)
AwaitsFix for ConfigTest#testDefaults()
2020-08-07 18:49:04 -04:00
Atri Sharma a074418da0
SOLR-13528: Implement Request Rate Limiters (#1686)
This commit introduces two functionalities: request rate limiting and ability to identify requests based on type (indexing, search, admin). The default rate limiter rate limits query requests based on configurable parameters which can be set in web.xml. Note that this rate limiting works at a JVM level, not a core/collection level.
2020-08-08 01:36:06 +05:30
Tomas Fernandez Lobbe e6275d9970
SOLR-14582: Expose IWC.setMaxCommitMergeWaitMillis in Solr's index config (#1602) 2020-08-07 10:54:36 -07:00
Tomas Fernandez Lobbe 2bf092b8dd
SOLR-14702: Add Upgrade Notes and CHANGES entry (#1718) 2020-08-07 10:09:40 -07:00
Cassandra Targett 35bf1785ec SOLR-14654: actually fix the Ref Guide build failure 2020-08-06 10:15:06 -05:00
noblepaul ddbe9495fc SOLR-14654: ref-guide build failure 2020-08-06 23:30:05 +10:00
noblepaul 321c4bbe1f SOLR-14654: clean up ref guide, CHANGES.txt 2020-08-06 16:46:12 +10:00
Noble Paul 6f2f1c3de2
SOLR-14654 Remove plugin loading from .system collection (for 9.0) (#1677) 2020-08-06 16:32:32 +10:00
Tomas Fernandez Lobbe 6752111be8 SOLR-14702: doFetch reads legacy parameters too 2020-08-05 14:53:50 -07:00
Marcus 7110118ad4
SOLR-14702: Remove oppressive language (part1) (#1711)
Replace references to "master" and "slave" with "leader" and "follower"
2020-08-05 14:52:48 -07:00
Ishan Chattopadhyaya bd21da6eca SOLR-14604: Add the ability to uninstall a package from with the Package CLI (#1710)
Co-authored-by: Marcus <marcuseagan@gmail.com>
2020-08-04 14:53:25 +05:30
Chris Hostetter a6c058a260 SOLR-14657: Improve error handling in IndexReader realted metrics that were causing scary ERROR logging if metrics were requested while Solr was in the process of closing/re-opening a new IndexReader 2020-08-03 09:58:16 -07:00
Munendra S N 07a89e7bf6 SOLR-14516: fix NPE is resp writer while writing docvalue only field
This issue occurs only while fetching uncommitted doc through /get.
Instead of directly calling stringValue() on IndexableField use
FieldType's toExtern() or toObject() to get the writable value for the field.
2020-07-31 20:05:41 +05:30
Munendra S N 80c6251651 SOLR-11262: reword changes entry 2020-07-31 19:52:04 +05:30
Noble Paul 44865c5220
moved SOLR-14681 from 9.0section to 8.7 2020-07-31 18:45:01 +10:00
Marcus f443edebd2
SOLR-14681: Introduce ability to delete .jar stored in the Package Store (#1702) 2020-07-31 18:23:18 +10:00