Commit Graph

33501 Commits

Author SHA1 Message Date
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
Simon Willnauer 47bc18478a
Move DWPT private deletes out of FrozenBufferedUpdates (#1431)
This change moves the deletes tracked by FrozenBufferedUpdates that
are private to the DWPT and never used in a global context out of
FrozenBufferedUpdates.
2020-04-14 21:37:19 +02:00
Simon Willnauer 18af6325ed
LUCENE-9304: Fix IW#getMaxCompletedSequenceNumber() (#1427)
After recent refactoring on LUCENE-9304 `IW#getMaxCompletedSequenceNumber()` might
return values that belong to non-completed operations if a full flush is running, a new delete
queue is already in place but not all DWPTs that participate in the full flush have finished it's in
flight operation. This caused rare failures in
`TestControlledRealTimeReopenThread#testControlledRealTimeReopenThread` where
documents are not actually visible given the max completed seqNo. This change streamlines
the delete queue advance, adds a dedicated testcase and ensures that a delete queues
sequence Id space is never exhausted.
2020-04-14 19:39:23 +02:00
Jan Høydahl ceeb55c7f5 SOLR-14210: Fix precommit for javadocs 2020-04-14 16:26:43 +02:00
Jan Høydahl 60545a89e0 SOLR-14210: Add javadocs and refguide docs 2020-04-14 16:09:36 +02:00
Jan Høydahl e15b02c86c SOLR-14359: Use correct placeholder-text-single option for anguar-chosen 2020-04-14 15:34:29 +02:00
Julie Tibshirani 3236d38c8b
Avoid using a raw Arc type. (#1429)
This fixes some compiler warnings that popped up recently.
2020-04-14 09:23:12 +02:00
Simon Willnauer f5457b82a1 Suppress Direct postings for TestIndexWriterThreadsToSegments to prevent OOM on Nightly 2020-04-13 13:44:15 +02:00
Dawid Weiss 616ec987a9
Do a bit count on 8 bytes from a long directly instead of reading 8 bytes from the reader. Byte order doesn't matter here. (#1426) 2020-04-13 13:37:25 +02:00
Shalin Shekhar Mangar 3e0f7b1971 SOLR-9909: Actually delete SolrjNamedThreadFactory.java 2020-04-13 13:47:20 +05:30
Shalin Shekhar Mangar 4df81f1d6d SOLR-9909: The deprecated SolrjNamedThreadFactory has been removed. Use SolrNamedThreadFactory instead. 2020-04-13 08:23:10 +05:30
Shalin Shekhar Mangar 6b78330668 SOLR-9909: Add the right Jira issue to CHANGES.txt 2020-04-13 08:18:00 +05:30
Shalin Shekhar Mangar 13f19f6555 SOLR-9906: SolrjNamedThreadFactory is deprecated in favor of SolrNamedThreadFactory. DefaultSolrThreadFactory is removed from solr-core in favor of SolrNamedThreadFactory in solrj package and all solr-core classes now use SolrNamedThreadFactory 2020-04-13 08:16:35 +05:30
David Smiley 4dece1ae17 CHANGES.txt move SOLR-14396
oops!
2020-04-12 22:06:45 -04:00
Trey Grainger 04f44399ba SOLR-14396: TaggerRequestHandler should not error on empty index
Fixes #1421
2020-04-12 21:54:27 -04:00
Dawid Weiss f865c8af83 LUCENE-9077: add a :solr:packaging:dev task that assembles a 'development' image of Solr from which nothing is removed upon consecutive rebuild. 2020-04-12 16:25:39 +02:00
Dawid Weiss 7279190c89 LUCENE-9316: Incorporate all :precommit tasks into :check 2020-04-12 13:32:54 +02:00
Dawid Weiss 9244558752 LUCENE-9201: remove javadoc task remnants. Make javadoc depend on renderJavadoc and skip the default gradle's implementation. 2020-04-12 12:55:56 +02:00
Dawid Weiss fea1ce0062 LUCENE-9278: move declaration calling getTemporaryDir inside the execution block closure so that gradlew clean renderJavadoc doesn't wipe out the temporary directory before the task has a chance to run. 2020-04-12 12:27:14 +02:00
Simon Willnauer 8c1f9815db LUCENE-9309: ensure stopMerges is set under IW lock 2020-04-11 19:53:21 +02:00
Simon Willnauer 2602269f3e
LUCENE-9304: Refactor DWPTPool to pool DWPT directly (#1397)
This change removes the ThreadState indirection from DWPTPool and pools DWPT directly. The tracking information and locking semantics are mostly moved to DWPT directly and the pool semantics have changed slightly such that DWPT need to be checked-out in the pool once they need to be flushed or aborted. This automatically grows and shrinks the number of DWPT in the system when number of threads grow or shrink. Access of pooled DWPTs is more straight forward and doesn't require ordinal. Instead consumers can just iterate over the elements in the pool.
This allowed for removal of indirections in DWPTFlushControl like BlockedFlush, the removal of DWPTPool setter and getter in IndexWriterConfig and the addition of stronger assertions in DWPT and DW.
2020-04-11 12:23:46 +02:00
Shalin Shekhar Mangar d52c1021e5 SOLR-14402: Avoid creating new exceptions for every request made to MDCAwareThreadPoolExecutor by distributed search.
This is a fix for incomplete optimization made by SOLR-11880 in Solr 7.4 which fixed distributed updates but not distributed search.
2020-04-11 08:56:01 +05:30
Nhat Nguyen 527e651660 LUCENE-9298: Fix TestBufferedUpdates
This test failed on Elastic CI because we did not add any term in the
loop. This commit ensures that we always add at least one docId, term
and query in the test.
2020-04-10 15:28:10 -04:00
Munendra S N 36b280bd0a SOLR-11775: return long val for facet count in json facet
* Long value is returned for any count related to json facets
  irrespective of number of shards
2020-04-10 19:30:20 +05:30
Cao Manh Dat 71d335ff68 SOLR-14365: Automatically grow size of groupHeadValues 2020-04-10 20:37:04 +07:00
Simon Willnauer e376582e25
LUCENE-9309: Wait for #addIndexes merges when aborting merges (#1418)
The SegmentMerger usage in IW#addIndexes(CodecReader...) might make changes
to the Directory while the IW tries to clean-up files on rollback. This
causes issues like FileNotFoundExceptions when IDF tries to remove temp files.
This changes adds a waiting mechanism to the abortMerges method that, in addition
to the running merges, also waits for merges in addIndices(CodecReader...)
2020-04-10 12:55:02 +02:00
YuBinglei 2935186c5b
LUCENE-9298: Improve RAM accounting in BufferedUpdates when deleted doc IDs and terms are cleared (#1389) 2020-04-10 12:30:47 +02:00
Cao Manh Dat adbd714b37
SOLR-14365: CollapsingQParser - Avoiding always allocate int[] and float[] with size equals to number of unique values (WIP) (#1395) 2020-04-10 15:24:10 +07:00
Christine Poerschke ffdd29e6fb Fix typo in SolrRequestHandler's javadocs. 2020-04-09 17:21:47 +01:00
Dawid Weiss 2437f3f56c
LUCENE-9311: detect intellij reimport and modify sourceset to exclude solr-ref-guide/tools (#1422) 2020-04-09 13:55:42 +02:00
Dawid Weiss c7cac5749a LUCENE-9077: make git always keep .gradle files with LF EOLs. 2020-04-09 13:55:16 +02:00
Bruno Roustant 6bba35a709
LUCENE-9286: FST.Arc.BitTable reads directly FST bytes. Arc is lightweight again and FSTEnum traversal faster. 2020-04-09 10:36:37 +02:00
Tomoko Uchida 4f92cd414c
LUCENE-9278: Use -linkoffline instead of relative paths to make links to other projects (#1388) 2020-04-09 08:44:07 +09:00