Commit Graph

33450 Commits

Author SHA1 Message Date
Dawid Weiss 793a3becfb LUCENE-9266: correct windows gradle wrapper download script - wrong placement of the quote. 2020-04-08 12:56:39 +02:00
David Smiley 013898dec5 CHANGES.txt: move entry to Optimizations 2020-04-07 16:27:02 -04:00
David Smiley 5bfbdc5325 SOLR-14376: optimize SolrIndexSearcher.getDocSet when matches everything
* getProcessedFilter now returns null filter if it's all docs more reliably
* getProcessedFilter now documented clearly as an internal method
* getDocSet detects all-docs and exits early with getLiveDocs
* small refactoring to getDocSetBits/makeDocSetBits
Closes #1399
2020-04-07 16:25:09 -04:00
Juan Camilo Rodriguez Duran de6233976a LUCENE-8050: PerFieldDocValuesFormat should not get the DocValuesFormat on a field that has no doc values.
Closes #1408
2020-04-07 16:12:05 -04:00
Adrien Grand 529042e786 LUCENE-9271: Complete fix for setBufferSize. 2020-04-07 17:24:41 +02:00
Adrien Grand 3363e1aa48 LUCENE-9271: Fix bad assertion. 2020-04-07 16:21:33 +02:00
Adrien Grand 82692e76e0 LUCENE-9271: Move BufferedIndexInput to the ByteBuffer API.
Closes #1338
2020-04-07 13:30:09 +02:00
Jan Høydahl f2114b9935
SOLR-14210: Include replica health in healtcheck handler (#1387) 2020-04-07 12:26:11 +02:00
Ignacio Vera f018c4c813
LUCENE-9244: In 2D, a point can be shared by four leaves (#1279)
Adjust TestLucene60PointsFormat#testEstimatePointCount2Dims so it does not fail when a point is shared by multiple leaves
2020-04-07 10:41:15 +02:00
Shalin Shekhar Mangar 9b6e072909 SOLR-12720: Use the right Jira issue in change log 2020-04-06 07:29:57 +05:30
Shalin Shekhar Mangar 9322a7b375 SOLR-12067: Remove support for autoReplicaFailoverWaitAfterExpiration
This closes #1402.
2020-04-06 07:25:14 +05:30
Erick Erickson e916056c8e SOLR-14386: Update Jetty to 9.4.27 and dropwizard-metrics version to 4.1.5, fix precommit 2020-04-05 09:00:28 -04:00
Erick Erickson e1e2085e94 SOLR-14386: Update Jetty to 9.4.27 and dropwizard-metrics version to 4.1.5 2020-04-04 16:14:57 -04:00
Dawid Weiss d32858b127
LUCENE-9301: add manifest entries to JARs (gradle build). 2020-04-04 20:56:35 +02:00
David Smiley 1aeefc25d1 SOLR-14351: Fix/improve MDCLoggingContext usage
* Some set/clear were not balanced.
* Harden clear() in case of imbalance.
* Sometimes coreContainger.getCore was called unnecessarily; just need a descriptor
* SolrCore.open/close now calls MDCLoggerContext.setCore/clear
* no need to clear MDC in HttpSolrCall
2020-04-03 21:45:12 -04:00
David Smiley 7b3980c080 SOLR-14364: LTR SolrFeature fq improvements
Mostly general code improvements, though it should support postFilters now
Add QueryUtils.combineQueryAndFilter
2020-04-03 19:20:55 -04:00
Jan Høydahl d7494699ed SOLR-14359: Remove apache header from MIT licensed js file 2020-04-03 23:53:21 +02:00
Jan Høydahl 234e78350d
SOLR-14359: Admin UI collection/core drop-downs had wrong placeholder text (#1400) 2020-04-03 23:16:11 +02:00
Mike Drob 9b29c2a420 Support running gradlew from subdir 2020-04-03 15:16:08 -05:00
Jim Ferenczi b5c5ebe37c
LUCENE-9300: Fix field infos update on doc values update (#1394)
Today a doc values update creates a new field infos file that contains the original field infos updated for the new generation as well as the new fields created by the doc values update.

However existing fields are cloned through the global fields (shared in the index writer) instead of the local ones (present in the segment).
In practice this is not an issue since field numbers are shared between segments created by the same index writer.
But this assumption doesn't hold for segments created by different writers and added through IndexWriter#addIndexes(Directory).
In this case, the field number of the same field can differ between segments so any doc values update can corrupt the index
by assigning the wrong field number to an existing field in the next generation.

When this happens, queries and merges can access wrong fields without throwing any error, leading to a silent corruption in the index.

This change ensures that we preserve local field numbers when creating
a new field infos generation.
2020-04-03 13:58:05 +02:00
Christine Poerschke ac2837cfbd SOLR-14378: Factor a FilterFeatureScorer class out from (contrib/ltr) OriginalScoreScorer. 2020-04-03 11:19:03 +01:00
Cao Manh Dat 28dea8d327 SOLR-14356: PeerSync should not fail with SocketTimeoutException from hanging nodes 2020-04-03 09:39:29 +07:00
Mike Drob e6090792c8 Specify java 11 for gradle wrapper downloader 2020-04-02 13:09:58 -05:00
Mike Drob e25ab4204f LUCENE-9266 remove gradle wrapper jar from source
ASF Release Policy states that we cannot have binary JAR files checked
in to our source releases, a few other projects have solved this by
modifying their generated gradlew scripts to download a copy of the
wrapper jar.

We now have a version and checksum file in ./gradle/wrapper directory
used for verifying the wrapper jar, and will take advantage of single
source java execution to verify and download.

The gradle wrapper jar will continue to be available in the git
repository, but will be excluded from src tarball generation. This
should not change workflows for any users, since we expect the gradlew
script to get the jar when it is missing.

Co-authored-by: Dawid Weiss <dweiss@apache.org>
2020-04-02 11:30:01 -05:00
Eric Pugh 927587d8ad
fix typo (#1302) 2020-04-02 10:38:15 -05:00
Chris Hostetter f779bc632d SOLR-14307: User defined "<cache/>" entries in solrconfig.xml now support enabled="true|false" just like core searcher caches. 2020-04-01 11:29:08 -07:00
Atri Sharma d6cef4f39c Update CHANGES.txt 2020-04-01 20:56:19 +05:30
Atri Sharma 9ed71a6efe
LUCENE-9074: Slice Allocation Control Plane For Concurrent Searches (#1294)
This commit introduces a mechanism to control allocation of threads to slices planned for a query.
The default implementation uses the size of backlog queue of the executor to determine if a slice should be allocated a new thread
2020-04-01 20:42:26 +05:30
Jason Gerlowski 1f5705ff5c
SOLR-14363: Separate /get requests into their own type designation (#1379) 2020-04-01 08:41:48 -04:00
Mike Drob 46d011645c LUCENE-9170: Use HTTPS when downloading wagon-ssh artifacts
Co-authored-by: Ishan Chattopadhyaya <ishan@apache.org>
2020-04-01 11:40:58 +01:00
Erick Erickson 1ca7067a81 SOLR-12028: BadApple and AwaitsFix annotations usage, Unannotated tests that haven't failed in a while 2020-03-30 20:37:55 -04:00
Erick Erickson 5c2011a6fb SOLR-14367: Upgrade Tika to 1.24 2020-03-29 08:48:00 -04:00
Ishan Chattopadhyaya 782ded2d7a SOLR-14317: HttpClusterStateProvider throws exception when only one node down (Closes #1342) 2020-03-29 07:20:32 +05:30
Munendra S N 9de6811706 SOLR-13893: remove deprecated runtme.lib.size sys property 2020-03-28 11:59:30 +05:30
Munendra S N 1a2325a08f SOLR-13893: fix typo in BlobRepository's max jar size sys property
* runtime.lib.size is the new property name
2020-03-28 11:53:21 +05:30
Munendra S N 132228d450 SOLR-14344: remove deprecated HttpSolrClient's Remote*Exception
* All usages are replaced by BaseHttpSolrClient's Remote*Exception
2020-03-28 11:36:06 +05:30
Munendra S N 15330a8541 SOLR-14329: support choosing expand field from multiple collapse group
* The collapse group with low cost is given higher priority. If
  there are multiple groups  with same cost then, first such
  group is chosen
2020-03-28 11:23:45 +05:30
Munendra S N 7a83f09fbc SOLR-13842: remove redundant defaults from implictPlugins
* From 7.0, wt=json is the default and indent=true is the
  default. So, remove them from implicitPlugin defaults
2020-03-28 11:17:22 +05:30
Marvin Justice 84f6507452 LUCENE-9133 Fix for potential NPE in TermFilteredPresearcher#buildQuery 2020-03-27 16:41:01 -05:00
Mike ac866a67de
Remove CurrentCoreDescriptorProvider (#1384)
* Remove CurrentCoreDescriptorProvider

Replace `CurrentCoreDescriptorProvider` with a functional interface so
that it is easier to construct since all implementations in our code
base were anonymous classes anyway. Added Javadocs explaining the
usage instead of relying on class name to convey information.
2020-03-27 16:31:37 -05:00
Ignacio Vera 8cb50a52bc LUCENE-9290 Fix TestXYPoint#testEqualsAndHashCode
closes #1375
2020-03-27 12:51:35 -05:00
David Smiley a0b0c710b5 SOLR-14342: Improve core loading order in SolrCloud.
Makes collections available sooner and reduces leaderVoteWait timeouts in large SolrCloud clusters.
This fixes a previous attempt to do this.
Fixes #1366
2020-03-26 23:44:20 -04:00
Andy Throgmorton d1601f6fdf SOLR-14260: SolrJ pluggable ConnectionSocketFactory in HttpClientUtil
see SocketFactoryRegistryProvider
Fixes #1261
2020-03-26 22:15:50 -04:00
Mike Drob a31ecd2eb8 SOLR-14322 Improve AbstractFullDistribZkTestBase.waitForThingsToLevelOut 2020-03-26 17:38:05 -05:00
David Smiley ea864b43a3
SOLR-13659: Remove unused SolrCacheHolder
accidental leftover from reverted plugin work
2020-03-26 17:35:24 -04:00
Mike Drob cd9375a6f9 LUCENE-9266 Update smoke test for gradle 2020-03-26 13:46:55 -05:00
Chris Hostetter 255132fc1c SOLR-14302: Ensure Solr always includes the stacktrace for exceptions by using '-OmitStackTraceInFastThrow' 2020-03-26 10:39:04 -07:00
Andrzej Bialecki b0728ceca6 SOLR-14128: Improve distributed locking around managed schema upgrade process. 2020-03-25 22:19:38 +01:00
Eric Pugh 4f03ce5899
SOLR-14284 add expressible support to list, and add example of removing a component (#1292)
* add expressible support to list, and add example of removing a component

* document actions that can be passed to the /stream request handler

* responding to content feedback
2020-03-25 13:53:51 -05:00
Mike 8d937c1dc3
SOLR-14274 Do not register multiple sets of JVM metrics (#1299) 2020-03-25 13:48:17 -05:00