33421 Commits

Author SHA1 Message Date
Yannick Welsch
8a88dd02c6 Remove SimpleFSDirectory in favor of NIOFSDirectory 2020-03-06 00:04:25 +01:00
Michael Sokolov
a030207a5e
LUCENE-8962: Split test case (#1313)
* LUCENE-8962: Simplify test case

The testMergeOnCommit test case was trying to verify too many things
at once: basic semantics of merge on commit and proper behavior when
a bunch of indexing threads are writing and committing all at once.

Now we just verify basic behavior, with strict assertions on invariants, while 
leaving it to MockRandomMergePolicy to enable merge on commit in existing
 test cases to verify that indexing generally works as expected and no new
unexpected exceptions are thrown.

* LUCENE-8962: Only update toCommit if merge was committed

The code was previously assuming that if mergeFinished() was called and
isAborted() was false, then the merge must have completed successfully.
Instead, we should know for sure if a given merge was committed, and
only then update our pending commit SegmentInfos.
2020-03-05 15:49:26 -05:00
Jan Høydahl
ceb90ce0e8
LUCENE-9016: RefGuide meta doc for how to publish website (#1291) 2020-03-05 18:17:35 +01:00
Cassandra Targett
74b9ba396c SOLR-14147: comment out for now link to security manager docs in upgrade notes that don't exist on master 2020-03-05 06:16:07 -06:00
Atri Sharma
5d605102d8 Update CHANGES.txt Entry for 9114 2020-03-05 09:23:50 +05:30
Atri Sharma
d751cf626e
LUCENE-9114: Improve ValueSourceScorer's Default Cost Implementation (#1303)
This commit makes ValueSourceScorer's costing algorithm also take the delegated FunctionValues's cost into consideration when calculating its cost. FunctionValues now exposes a cost method which is used by ValueSourceScorer's default matchCost method. In addition, ValueSourceScorer exposes a matchCost method which can be overridden to specify a custom costing mechanism
2020-03-05 09:16:50 +05:30
Cassandra Targett
f6afb8b165 Ref Guide/CHANGES: fix typos in page refs and format of CHANGES entry 2020-03-04 16:25:14 -06:00
Cassandra Targett
e8828f2a1c Ref Guide: move 9.0 changes to 9.0 page; prep 8.5 notes for release; add missing change to CHANGES.txt 2020-03-04 16:20:42 -06:00
Tomas Fernandez Lobbe
2cabeb924d
Add try-with-resources to CloudManager in tests (#1315) 2020-03-04 13:32:44 -08:00
Mike Drob
dd9b9f2f7f SOLR-14223 Fix tests for windows 2020-03-04 10:50:00 -08:00
Adrien Grand
46bda6bea0 SOLR-12930: Include dev-docs in the expected list files for the source archive.
Otherwise the smoke tester fails.
2020-03-04 08:59:57 +01:00
Tomas Fernandez Lobbe
4d2d052b7d
Fix resource leak in TestPolicyCloud (#1312) 2020-03-03 11:42:20 -08:00
Cassandra Targett
fa6166f261 SOLR-14286: jvm-settings.adoc: minor typos; add links to external resources 2020-03-03 12:34:02 -06:00
Christine Poerschke
4a0063f04a Fix spellcheck.queryAnalyzerField[t-->T]ype typo in Solr Ref Guide.
(Carlos Sponchiado via Christine Poerschke)
2020-03-03 18:32:08 +00:00
Noble Paul
bc6fa3b650
SOLR-13942: /api/cluster/zk/* to fetch raw ZK data 2020-03-03 22:36:17 +11:00
Ignacio Vera
286d22717b
LUCENE-9225: Rectangle extends LatLonGeometry so it can be used in a geometry collection (#1258) 2020-03-03 07:36:44 +01:00
Ignacio Vera
c313365c5f
LUCENE-9251: Filter equal edges with different value on isEdgeFromPolygon (#1290)
Fix bug in the polygon tessellator where edges with different value on #isEdgeFromPolygon were bot filtered out properly
2020-03-03 07:07:34 +01:00
Ignacio Vera
b732ce7002
LUCENE-9239: Circle2D#WithinTriangle detects properly if a triangle is Within distance. (#1280) 2020-03-03 06:44:35 +01:00
Pushkar Raste
17c576a36f SOLR-14299 IndexFetcher doesn't reset count to 0 after the last packet is received 2020-03-02 16:26:25 -08:00
Michael Sokolov
e308e53873 Add CHANGES entry for LUCENE-8962 2020-03-02 18:34:13 -05:00
msfroh
f017ae465e
LUCENE-8962: Fix intermittent test failures (#1307)
1. TestIndexWriterMergePolicy.testMergeOnCommit will fail if the last
   commit (the one that should trigger the full merge) doesn't have any
   pending changes (which could occur if the last indexing thread
   commits at the end). We can fix that by adding one more document
   before that commit.
2. The previous implementation was throwing IOException if the commit
   thread gets interrupted while waiting for merges to complete. This
   violates IndexWriter's documented behavior of throwing
   ThreadInterruptedException.
2020-03-02 18:29:12 -05:00
Cassandra Targett
422d994612 SOLR-14241: fix typos & incorrect example param 2020-03-02 16:53:12 -06:00
Cassandra Targett
27523b5e40 SOLR-14270: Move .gz example to CLI page; Remove bin/solr export from command-line-utilities.adoc 2020-03-02 16:53:12 -06:00
Nicholas Knize
a6e80d004d LUCENE-9150: Restore support for dynamic PlanetModel in spatial3d 2020-03-02 16:06:17 -06:00
Cassandra Targett
a7ebe0c906 Ref Guide: Add license header, typos in Package Manager docs 2020-03-02 15:44:55 -06:00
Cassandra Targett
153d7bcfee Ref Guide: standardize i.e., e.g., spellings; fix typos 2020-03-02 15:44:55 -06:00
msfroh
043c5dff6f
LUCENE-8962: Add ability to selectively merge on commit (#1155)
* LUCENE-8962: Add ability to selectively merge on commit

This adds a new "findCommitMerges" method to MergePolicy, which can
specify merges to be executed before the
IndexWriter.prepareCommitInternal method returns.

If we have many index writer threads, they will flush their DWPT buffers
on commit, resulting in many small segments, which can be merged before
the commit returns.

* Add missing Javadoc

* Fix incorrect comment

* Refactoring and fix intermittent test failure

1. Made some changes to the callback to update toCommit, leveraging
SegmentInfos.applyMergeChanges.
2. I realized that we'll never end up with 0 registered merges, because
we throw an exception if we fail to register a merge.
3. Moved the IndexWriterEvents.beginMergeOnCommit notification to before
we call MergeScheduler.merge, since we may not be merging on another
thread.
4. There was an intermittent test failure due to randomness in the time
it takes for merges to complete. Before doing the final commit, we wait
for pending merges to finish. We may still end up abandoning the final
merge, but we can detect that and assert that either the merge was
abandoned (and we have > 1 segment) or we did merge down to 1 segment.

* Fix typo

* Fix/improve comments based on PR feedback

* More comment improvements from PR feedback

* Rename method and add new MergeTrigger

1. Renamed findCommitMerges -> findFullFlushMerges.
2. Added MergeTrigger.COMMIT, passed to findFullFlushMerges and to
   MergeScheduler when merging on commit.

* Update renamed method name in strings and comments
2020-03-02 12:19:47 -05:00
Namgyu Kim
b2dbd18f96
LUCENE-9253: Support custom dictionaries in KoreanTokenizer
Signed-off-by: Namgyu Kim <namgyu@apache.org>
2020-03-03 02:11:44 +09:00
Adrien Grand
f4b5069c1f LUCENE-9247: Fix test failures with ExtraFS. 2020-03-02 08:59:13 +01:00
Ignacio Vera
c653c04bb1
LUCENE-9243: Add fudge factor when creating a bounding box of a xycircle (#1278) 2020-03-02 06:56:29 +01:00
Shalin Shekhar Mangar
4897a64713 SOLR-13996: Rename LegacyReplicaSource to StandaloneReplicaSource 2020-03-01 07:00:51 +05:30
Tomoko Uchida
5f9bf6b707 SOLR-14295: Add the parameter description about 'discardCompoundToken' for JapaneseTokenizer in RefGuide 2020-02-29 17:43:25 +09:00
Adrien Grand
c929b65c81 LUCENE-9247: Exclude write.lock from files whose integrity is expected to be verified. 2020-02-29 08:46:16 +01:00
Adrien Grand
30944d3520 LUCENE-9247: Fix class visibility issue discovered when backporting. 2020-02-28 15:34:36 +01:00
Bruno Roustant
99af698107
LUCENE-9237: Faster UniformSplit intersect TermsEnum.
Closes #1270
2020-02-28 14:52:19 +01:00
Adrien Grand
d10db0d98f LUCENE-9247: Add missing commit. 2020-02-28 14:48:44 +01:00
Adrien Grand
cd984e2dc0
LUCENE-9247: Add tests for checkIntegrity. (#1284)
This adds a test to `BaseIndexFileFormatTestCase` that the combination
of opening a reader and calling `checkIntegrity` on it reads all bytes
of all files (including index headers and footers). This would help
detect most cases when `checkIntegrity` is not implemented correctly.
2020-02-28 14:19:56 +01:00
Adrien Grand
ebdfdaed9f
LUCENE-9246: Remove dOff argument from LZ4#decompress. (#1283)
It is always set to 0 at call sites.
2020-02-28 11:26:56 +01:00
Bruno Roustant
e0164d1ac8
LUCENE-9245: Reduce AutomatonTermsEnum memory usage.
Closes #1281
2020-02-28 10:42:06 +01:00
Jan Høydahl
198d9db674
SOLR-14287: Admin UI Properties screen does not show colons (#1300) 2020-02-28 10:32:09 +01:00
Ignacio Vera
988ce9bff7
LUCENE-9250: Add support for Circle2d#intersectsLine around the dateline. (#1289) 2020-02-28 10:22:27 +01:00
Cao Manh Dat
3ad9915547 SOLR-14286: Try and fix sha1 file. 2020-02-28 08:35:29 +07:00
Jan Høydahl
62f5bd50cd
SOLR-14281: Make sharedLib configurable through SysProp (#1288) 2020-02-27 14:16:33 +01:00
Michael Sokolov
294b8d4ee1 LUCENE-9202: refactor leaf collectors in TopFieldCollector 2020-02-27 08:05:49 -05:00
Andrzej Bialecki
c6bf8b6cec SOLR-14252: NullPointerException in AggregateMetric. 2020-02-27 13:00:43 +01:00
Mikhail Khludnev
3befb8be94 SOLR-13411: reject incremental update for route.field, uniqueKey and
_version_.
2020-02-27 14:51:34 +03:00
Cao Manh Dat
d9c43d9fa3 SOLR-14286: Fix gradle precommit 2020-02-27 18:24:39 +07:00
Cao Manh Dat
043a3cf849 SOLR-14286: Move entry in CHANGES.txt to 8.5.0 2020-02-27 15:13:22 +07:00
Cao Manh Dat
e059455004 SOLR-14286: Update sha files 2020-02-27 15:07:03 +07:00
Cao Manh Dat
666bd493c8 SOLR-14286: Upgrade Jaegar to 1.1.0 2020-02-27 14:51:45 +07:00