Commit Graph

33533 Commits

Author SHA1 Message Date
Marcus ce18505e28
Fix Typo in `cloud-scripts` path (#1458) 2020-04-27 00:41:06 +02:00
Erick Erickson 8867f465dc LUCENE-7788: fail precommit on unparameterised log messages and examine for wasted work/objects 2020-04-26 09:15:21 -04:00
Erick Erickson ecc98e8698 LUCENE-7788: fail precommit on unparameterised log messages and examine for wasted work/objects 2020-04-24 13:34:03 -04:00
Simon Willnauer 8059eea160
Consolidate all IW locking inside IndexWriter (#1454)
Today we still have one class that runs some tricky logic that should
be in the IndexWriter in the first place since it requires locking on
the IndexWriter itself. This change inverts the API and now FrozendBufferedUpdates
does not get the IndexWriter passed in, instead the IndexWriter owns most of the logic
and executes on a FrozenBufferedUpdates object. This prevent locking on IndexWriter out
side of the writer itself and paves the way to simplify some concurrency down the road
2020-04-24 19:07:21 +02:00
Pierre-Luc Perron 013e98347a LUCENE-9267 Replace getQueryBuildTime time unit from ms to ns 2020-04-24 10:36:30 -05:00
Mike Drob 849fb63921
Move audit logging docs under AAA section (#1452) 2020-04-24 09:52:09 -05:00
Simon Willnauer d7e0b906ab
LUCENE-9345: Separate MergeSchedulder from IndexWriter (#1451)
This change extracts the methods that are used by MergeScheduler into
a MergeSource interface. This allows IndexWriter to better ensure
locking, hide internal methods and removes the tight coupling between the two
complex classes. This will also improve future testing.
2020-04-24 15:02:55 +02:00
Alan Woodward 5eb117f561 LUCENE-9340: Remove deprecated SimpleBindings#add(SortField) method 2020-04-24 12:22:21 +01:00
Alan Woodward f6462ee350
LUCENE-9340: Deprecate SimpleBindings#add(SortField) (#1447)
This method is trappy; it doesn't work for all SortField types, but doesn't tell
you that until runtime. This commit deprecates it, and removes all other
callsites in the codebase.
2020-04-24 12:08:16 +01:00
Alan Woodward ed3caab2d8
LUCENE-9338: Clean up type safety in SimpleBindings (#1444)
Replaces SimpleBindings' Map<String, Object> with a map of
Function<Bindings, DoubleValuesSource> to improve type safety, and
reworks cycle detection and validation to avoid catching 
StackOverflowException
2020-04-24 10:23:50 +01:00
Simon Willnauer 83018deef7 Ensure we use a sane IWC for tests adding many documents.
This test produced tons of files on nighly builds causing
TooManyOpenFilesExceptions likely due to not using CFS on flush
and/or very small maxMergeSize values.
2020-04-24 08:36:06 +02:00
Tomoko Uchida 75b648ce82 LUCENE-9344: Use https url for lucene.apache.org 2020-04-24 14:45:34 +09:00
Tomoko Uchida c7697b088c
LUCENE-9344: Convert .txt files to properly formatted .md files (#1449) 2020-04-24 14:28:12 +09:00
Tomas Fernandez Lobbe a11b78e06a
LUCENE-9342: Collector's totalHitsThreshold should not be lower than numHits (#1448)
Use the maximum of the two, this is so that relation is EQUAL_TO in the case of the number of hits in a query is less than the collector's numHits
2020-04-23 12:04:02 -07:00
Erick Erickson 4eb755db18 SOLR-12690: Regularize LoggerFactory declarations. Fixing an incorrect change 2020-04-23 07:51:42 -04:00
Andrzej Bialecki 2a7ba5a48e SOLR-12845: Properly clear default policy between tests. 2020-04-23 12:34:28 +02:00
Erick Erickson e43b17962a LUCENE-7788: fail precommit on unparameterised log messages and examine for wasted work/objects 2020-04-22 22:32:49 -04:00
Mikhail Khludnev 3a743ea953 SOLR-8998,SOLR-12490: Polishing reference guide. 2020-04-22 23:19:34 +03:00
Simon Willnauer 4a98918bfa
LUCENE-9339: Only call MergeScheduler when we actually found new merges (#1445)
IW#maybeMerge calls the MergeScheduler even if it didn't find any merges we should instead only do this if there is in-fact anything there to merge and safe the call into a sync'd method.
2020-04-22 21:26:45 +02:00
Mike Drob 950a34ce13 SOLR-14412 use parameterized logging 2020-04-22 12:11:53 -05:00
Mike Drob fe05a6d380
SOLR-14420 Declare ServletRequests as HttpRequests in AuthenticationPlugin (#1442)
Declare ServletRequests as HttpRequests in AuthenticationPlugin
2020-04-22 12:06:18 -05:00
Andrzej Bialecki 5d60ff4613 SOLR-12845: Add a default autoscaling cluster policy. 2020-04-22 17:46:39 +02:00
Adrien Grand fbcb6ce64a Configure notifications.
As suggested in INFRA-20171.
2020-04-22 15:23:13 +02:00
Simon Willnauer 2b6ae53cd9
LUCENE-9337: Ensure CMS updates it's thread accounting datastructures consistently (#1443)
CMS today releases it's lock after finishing a merge before it re-acquires it to update
the thread accounting datastructures. This causes threading issues where concurrently
finishing threads fail to pick up pending merges causing potential thread starvation
on forceMerge calls.
2020-04-22 14:30:14 +02:00
Mike McCandless e0c06ee6a6 LUCENE-9191: make LineFileDocs random seeking more efficient by recording safe skip points in the concatenated gzip'd chunks 2020-04-21 12:09:17 -04:00
Jan Høydahl c9cd623a62 SOLR-14421: Fix non-working examples in solr.in.cmd 2020-04-21 15:10:13 +02:00
Simon Willnauer 56c61e698c Remove dead code 2020-04-21 13:38:19 +02:00
Erick Erickson c94770c2b9 LUCENE-7788: fail precommit on unparameterised log messages and examine for wasted work/objects 2020-04-20 21:08:15 -04:00
Mike Drob 58f9c79c6d
SOLR-14412 zkRun+https (#1437)
SOLR-14412

Check for results after retries failed in SolrClientNodeStateProvider
Set urlScheme=https with zkRun
2020-04-20 12:55:43 -05:00
Ignacio Vera f914e08b36
LUCENE-9273: Speed up geometry queries by specialising Component2D spatial operations (#1341)
Speed up geometry queries by specialising Component2D spatial operations. Instead of using a generic relate method for all relations, we use specialise methods for each one. In addition, the type of triangle is computed at deserialisation time, therefore we can be more selective when decoding points of a triangle
2020-04-20 19:24:49 +02:00
David Smiley 37ad0e552d
SolrMetricManager.registerMetric trivial opt
Needn't check for existing metric prior to removing.
(code-reviewed by ab@apache.org)
2020-04-20 11:44:44 -04:00
Kevin Risden 89e14faca9
SOLR-13886: HDFSSyncSliceTest and SyncSliceTest started failing frequently
Signed-off-by: Kevin Risden <krisden@apache.org>
2020-04-19 17:49:20 -04:00
Erick Erickson f01c040ab3 LUCENE-7788: fail precommit on unparameterised log messages and examine for wasted work/objects 2020-04-19 15:58:50 -04:00
David Smiley f5d91395db SOLR-14391: getDocSet(Query[]) can use search(query,collector)
Refactoring to simplify SolrIndexSearcher.
ScoreFilter interface is obsolete now.
Fixed #1409
2020-04-18 20:28:57 -04:00
Erick Erickson 1f1cdbffdf LUCENE-7788: fail precommit on unparameterised log messages and examine for wasted work/objects 2020-04-18 19:08:15 -04:00
Simon Willnauer 9881dc031c Fix compiler warnings in tests 2020-04-18 14:45:03 +02:00
Simon Willnauer 113043b1ed
LUCENE-9324: Add an ID to SegmentCommitInfo (#1434)
We already have IDs in SegmentInfo, as well as on SegmentInfos which are useful to uniquely identify segments and entire commits. Having IDs on SegmentCommitInfo is be useful too in
order to compare commits for equality and make snapshots incremental on generational files.
This change adds a unique ID to SegmentCommitInfo starting from Lucene 8.6. Older segments won't have an ID until the segment receives an update or a delete even if they have been opened and / or committed by Lucene 8.6 or above.
2020-04-18 14:24:57 +02:00
Erick Erickson 3af165b32a LUCENE-7788: fail precommit on unparameterised log messages and examine for wasted work/objects 2020-04-17 20:40:32 -04:00
Jan Høydahl 03363f413f
SOLR-14371 Zk StatusHandler should know about dynamic zk config (#1392) 2020-04-17 16:30:27 +02:00
Jan Høydahl fc53fd921a SOLR-14411, SOLR-14359 CHANGES entry fixes after 8.5.1 release 2020-04-17 15:58:39 +02:00
Tommaso Teofili 243cf2c99d LUCENE-9327 - drop useless casts in BaseXYShapeTestCase 2020-04-17 14:57:18 +02:00
Markus Schuch 74ecc13816 SOLR-14387 add testcase for ids with separators to GetByIdTest and fix SolrClient to escape ids properly 2020-04-16 11:52:03 -05:00
Mikhail Khludnev b24b028402 SOLR-14291: fix regexps to handle dotted fields in Old Analytics params. 2020-04-16 14:11:22 +03:00
iverase 9340e56551 Add back-compat indices for 8.5.1 2020-04-16 09:52:08 +02:00
iverase b7b85f3e75 Move bugfix entries to version 8.5.1 2020-04-16 09:36:55 +02:00
iverase 8a88ab0e7c Add bugfix version 8.5.1 2020-04-16 09:27:06 +02:00
iverase d5720d6442 add version 8.5.1 to doap files 2020-04-16 08:37:23 +02:00
Adrien Grand 0aa4ba7ccb
LUCENE-9260: Verify checksums of CFS files. (#1311) 2020-04-15 15:10:59 +02:00
Adrien Grand aa605b3c70
LUCENE-9307: Remove the ability to set the buffer size dynamically on BufferedIndexInput (#1415) 2020-04-15 15:10:11 +02:00
David Smiley 1fc4a546df Solr: Use QueryUtils.combineQueryAndFilter more
and check MatchAllDocsQuery (minor & cheap optimization)
 Closes #1407
2020-04-14 16:45:59 -04:00