Commit Graph

30072 Commits

Author SHA1 Message Date
Simon Willnauer 591fc6627a LUCENE-8290: Keep soft deletes in sync with on-disk DocValues
Today we pass on the doc values update to the PendingDeletes
when it's applied. This might cause issues with a rentention policy
merge policy that will see a deleted document but not it's value on
disk.
This change moves back the PendingDeletes callback to flush time
in order to be consistent with what is actually updated on disk.

This change also makes sure we write values to disk on flush that
are in the reader pool as well as extra best effort checks to drop
fully deleted segments on flush, commit and getReader.
2018-05-03 13:38:35 +02:00
Varun Thacker 8b9c2a3185 SOLR-12288: Add more MDC logging information to core admin requests 2018-05-02 23:36:50 -07:00
Cao Manh Dat ed948efabf SOLR-12278: Fix typo errors in ref-guide 2018-05-03 10:40:21 +07:00
Cao Manh Dat 596d0dc9a6 SOLR-12278: Adding ref-guide doc for IgnoreLargeDocumentProcessorFactory 2018-05-03 10:35:03 +07:00
Varun Thacker 84925ba9ab SOLR-12289: Add more MDC logging information to collection admin requests 2018-05-02 19:01:07 -07:00
Adrien Grand 67c13bbe2e LUCENE-8142: Fix QueryUtils to only call getMaxScore when it is legal to do so. 2018-05-02 17:42:18 +02:00
Simon Willnauer 82e7cb2322 LUCENE-8289: Share logic between Numeric and Binary DocValuesFieldUpdates
NumericDocValuesFieldUpdates and BinaryDocValuesFieldUpdates duplicate
a significant amount of logic that can all be pushed into the base class.
This change moves all the logic that is independent of the type to the base
class.
2018-05-02 17:22:45 +02:00
Mikhail Khludnev df713fc700 SOLR-8998: ref guide update. 2018-05-02 18:23:15 +03:00
Adrien Grand 46ecb73976 LUCENE-8142: Fix AssertingImpactsEnum and add missing javadoc. 2018-05-02 17:20:42 +02:00
Adrien Grand e00c4cede2 LUCENE-8279: CheckIndex now cross-checks terms with norms. 2018-05-02 14:49:32 +02:00
Adrien Grand af680af77f LUCENE-8142: Make postings APIs expose raw impacts rather than scores. 2018-05-02 14:49:32 +02:00
Cao Manh Dat 555b7ef270 SOLR-12278: Add IgnoreLargeDocumentProcessFactory 2018-05-02 17:43:29 +07:00
koji ee2198d6bd SOLR-12202: Fix errors in solr-exporter.cmd 2018-05-02 13:59:13 +09:00
Mikhail Khludnev ee7b52f4c6 SOLR-8998: uniqueBlock() aggreagation for singlevalue string fields in json.facet 2018-05-01 20:19:15 +03:00
jdyer1 d92b891f95 SOLR-12284: Stop adding parenthesis to word-break suggestions, unless query uses boolean operators. 2018-04-30 13:47:19 -05:00
Karl Wright 871ffbe10e Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2018-04-30 06:12:46 -04:00
Karl Wright ff68acf244 LUCENE-8280: Reorganize to allow us to try lots of strategies until we get one. 2018-04-30 06:12:31 -04:00
Simon Willnauer fe018e37f3 LUCENE-8275: Fix TestDirectoryTaxonomyWriter.testRecreateAndRefresh 2018-04-30 12:08:16 +02:00
Simon Willnauer b43b09190d
LUCENE-8282: Reduce boxing and unnecessary object creation in DV updates
DV updates used the boxed type Long to keep API generic. Yet, the missing
type caused a lot of code duplication, boxing and unnecessary object creation.
This change cuts over to type safe APIs using BytesRef and long (the primitive)

In this change most of the code that is almost identical between binary and numeric
is not shared reducing the maintenance overhead and likelihood of introducing bugs.
2018-04-30 11:41:56 +02:00
David Smiley 570fff8672 LUCENE-8283: Minor javadoc correction in UH FieldOffsetStrategy 2018-04-29 22:28:56 -04:00
Varun Thacker f6cbb2db6b SOLR-10036: Upgrade jackson from 2.5.4 to 2.9.5 2018-04-28 16:56:06 -07:00
Mike McCandless 70abbe7433 LUCENE_8265: add CHANGES entry 2018-04-28 09:57:58 -04:00
Michael Sokolov fc0878cc2f LUCENE-8265: WordDelimiter*Filter ignores keywords 2018-04-28 09:47:06 -04:00
Mike McCandless 4fba55c864 LUCENE-8244: Do not leak open file descriptors in SearcherTaxonomyManager's refresh on exception (Mike McCandless) 2018-04-28 09:43:24 -04:00
Karl Wright 400449f2c7 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2018-04-28 09:14:05 -04:00
Karl Wright c94a83fd28 LUCENE-8280: Use a combination of strategies to work around the fact that no strategy can be used in all situations. 2018-04-28 09:06:44 -04:00
Joel Bernstein 2c487947e8 SOLR-11734: Add ones and zeros Stream Evaluators 2018-04-27 13:44:12 -04:00
Jason Gerlowski 43c086a002 SOLR-11749: Fix logic errors in some assert funcs 2018-04-27 09:46:11 -04:00
Karl Wright e263ae30ed Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2018-04-27 08:39:40 -04:00
Karl Wright 43f0c67046 LUCENE-8281: Make sure we use the right iterator, and don't allow the construction of one with a null set of points. 2018-04-27 08:39:26 -04:00
Mikhail Khludnev e3a9817174 SOLR-12275: test cleanup 2018-04-26 20:17:44 +03:00
Karl Wright e912ed2a2c LUCENE-8281: Add a test for the new kind of failure, but disabled 2018-04-26 12:59:49 -04:00
Karl Wright fe98d6a985 Mark the failing random tests with AwaitsFix 2018-04-26 11:27:52 -04:00
Karl Wright 08cf263132 LUCENE-8280: Add a test for the case the automation found. 2018-04-26 10:53:54 -04:00
Karl Wright 9f506635e0 LUCENE-8276: Don't allow travel near a pole; require a different choice of travel plane 2018-04-26 08:08:34 -04:00
Karl Wright 8e029816cf LUCENE-8276: Add new tests which demonstrate the issue. Only one is now failing. 2018-04-26 07:14:27 -04:00
Cao Manh Dat e331c068df SOLR-12250: Remove the usage of mockito 2018-04-26 17:57:41 +07:00
Alan Woodward 1a18acd783 LUCENE-8196: Fix unordered case with non-matching subinterval 2018-04-26 11:27:42 +01:00
Simon Willnauer 2265ec1947 LUCENE-8276: Remove unused imports 2018-04-26 12:10:21 +02:00
Simon Willnauer 933d8a6995 LUCENE-8275: Fix BaseLockFactoryTestCase to step out on Windowns if pending files are found
The particular test here is #testStressLocks that has several protectesion against
WindowsFS and special logic in the catch clause that steps out on fatal exceptions with
pending deletes. Since we now check this consistently in the IW ctor we need to also
skip this entire test if we are on windows and have pending deletes.
2018-04-26 12:10:10 +02:00
Karl Wright d53de2a385 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2018-04-26 02:59:23 -04:00
Karl Wright 15a6b586c7 LUCENE-8276: Restructure complex polygon class yet again to allow dual test points. 2018-04-26 02:59:09 -04:00
Mikhail Khludnev d4d21028e9 SOLR-12275: fix caching for \{!filters} and {{filters}} in \{!parent} and \{!child} 2018-04-26 09:40:35 +03:00
Joel Bernstein bea6f42105 SOLR-12273: Create Stream Evaluators for distance measures 2018-04-25 21:38:12 -04:00
Simon Willnauer aa341476fd LUCENE-8275: Push up #checkPendingDeletes to Directory
IndexWriter checks in it's ctor if the incoming directory is an
FSDirectory. If that is the case it ensures that the directory retries
deleting it's pending deletes and if there are pending deletes it will
fail creating the writer. Yet, this check didn't unwrap filter directories
or subclasses like FileSwitchDirectory such that in the case of MDW we
never checked for pending deletes.

There are also two places in FSDirectory that first removed the file
that was supposed to be created / renamed to from the pending deletes set
and then tried to clean up pending deletes which excluded the file. These
places now remove the file from the set after the pending deletes are checked.
2018-04-25 16:46:25 +02:00
Simon Willnauer fbeef2f726
LUCENE-8272: Share internal DV update code between binary and numeric
Today we duplicate a fair portion of the internal logic to
apply updates of binary and numeric doc values. This change refactors
this non-trivial code to share the same code path and only differ in
if we provide a binary or numeric instance. This also allows us to
iterator over the updates only once rather than twice once for numeric
and once for binary fields.

This change also subclass DocValuesIterator from DocValuesFieldUpdates.Iterator
which allows easier consumption down the road since it now shares most of it's
interface with DocIdSetIterator which is the main interface for this in Lucene.
2018-04-25 15:17:34 +02:00
Andrzej Bialecki 34170272e1 SOLR-12181: Reset simulator cache state when shard becomes inactive. 2018-04-25 12:24:52 +02:00
David Smiley 1370f6b520 SOLR-12261: Collection deletion's check for alias membership should
sync() aliases with ZK before throwing an error.
2018-04-24 23:25:11 -04:00
Joel Bernstein c5a1738151 SOLR-12266: Add discrete Fourier transform Stream Evaluators 2018-04-24 21:35:19 -04:00
Simon Willnauer ac027145fb [TEST] Set stop flag in the case of an exception 2018-04-24 17:57:33 +02:00