Commit Graph

6878 Commits

Author SHA1 Message Date
Dawid Weiss 4eead83a83 SOLR-11200: A new CMS config option 'ioThrottle' to manually enable/disable ConcurrentMergeSchedule.doAutoIOThrottle. (Amrit Sarkar, Nawab Zada Asad iqbal) 2018-04-20 11:34:04 +02:00
Erick Erickson 5ef43e900f SOLR-12028: BadApple and AwaitsFix annotations usage 2018-04-19 13:14:12 -07:00
Steve Rowe 46037dc674 SOLR-6286: TestReplicationHandler.doTestReplicateAfterCoreReload(): stop checking for identical commits before/after master core reload; and make non-nightly mode test 10 docs instead of 0. 2018-04-19 14:49:10 -04:00
noble 1c8ab330d6 SOLR-12142: EmbeddedSolrServer should use req.getContentWriter 2018-04-19 13:37:31 +10:00
Mikhail Khludnev dbdedf3e3f SOLR-12155: making TestUnInvertedFieldException more thread-safe 2018-04-18 14:57:49 +03:00
Mikhail Khludnev 507c439558 SOLR-12187: fix precommit 2018-04-18 12:43:25 +03:00
Cao Manh Dat 1d2441441b SOLR-12187: ZkStateReader.Notification thread should only catch Exception 2018-04-18 08:40:06 +07:00
Simon Willnauer d904112428 LUCENE-8253: Don't create ReadersAndUpdates for foreign segments
IndexWriter#numDeletesToMerge was creating a ReadersAndUpdates
for all incoming SegmentCommitInfo even if that info wasn't private
to the IndexWriter. This is an illegal use of this API but since it's
transitively public via MergePolicy#findMerges we have to be conservative
with regestiering ReadersAndUpdates. In IndexWriter#numDeletesToMerge we
can only use existing ones. This means for soft-deletes we need to react
earlier in order to produce accurate numbers.

This change partially rolls back the changes in LUCENE-8253. Instead of
registering the readers once they are pulled via IndexWriter#numDeletesToMerge
we now check if segments are fully deleted on flush which is very unlikely and
can be done in a lazy fashion ie. it's only paying the extra cost of opening a
reader and checking all soft-deletes if soft deletes are used and present
in the flushed segment.

This has the side-effect that flushed segments that are 100% hard deleted are also
cleaned up right after they are flushed, previously these segments were sticking
around for a while until they got picked for a merge or received another delete.

This also closes LUCENE-8256
2018-04-17 16:26:52 +02:00
Cao Manh Dat 09db13f4f4 SOLR-12187: Replica should watch clusterstate and unload itself if its entry is removed 2018-04-17 20:16:31 +07:00
Alan Woodward f7f12a51f3 LUCENE-8253: Mute test while a fix is worked on 2018-04-17 11:58:59 +01:00
Ishan Chattopadhyaya 72ee0f64d4 SOLR-11920: Adding a file exists check before skipping a file for replication 2018-04-17 10:48:36 +05:30
Erick Erickson a417a2cd6a SOLR-10169: PeerSync will hit an NPE on no response errors when looking for fingerprint. 2018-04-16 21:51:02 -07:00
Alan Woodward 37e065007f SOLR-12147: Don't use memory-intensive codecs to test uninvert limits
This separates out TestDocTermOrds.testTriggerUninvertLimit into its own
test class, and suppresses Memory codec on it
2018-04-16 15:24:04 +01:00
Andrzej Bialecki 1e759bc505 SOLR-12181: Fix test failures. 2018-04-16 13:16:05 +02:00
Cao Manh Dat 3028f3e9ea SOLR-12028: Remove BadApple for CollectionsAPIDistributedZkTest.testCollectionReload() 2018-04-16 10:26:22 +07:00
David Smiley dad2d1076d SOLR-11731: revert to 7 decimal places so we can maintain the round-trip property.
Add test that we round-trip random numbers at 7 decimal places.  Would fail at 8.
2018-04-14 10:51:51 -04:00
Varun Thacker 93f9a65b1c SOLR-11724: Cdcr bootstrapping should ensure that non-leader replicas should sync with the leader 2018-04-13 15:38:26 -07:00
David Smiley e4eb8a870c SOLR-11731: one more decimal place (8) and we get the target/theoretical precision 2018-04-13 17:05:51 -04:00
Mike McCandless 7c0387ad3f LUCENE-8248: MergePolicyWrapper is renamed to FilterMergePolicy and now also overrides getMaxCFSSegmentSizeMB 2018-04-13 15:45:19 -04:00
jdyer1 12bd5f9448 SOLR-10513: Implement .equals() for LuceneLevenshteinDistance. 2018-04-13 11:12:46 -05:00
David Smiley 9a149ad7e7 SOLR-11913: SolrParams now implements Iterable<Map.Entry<String,String[]>>
and has stream()
2018-04-13 12:05:23 -04:00
Andrzej Bialecki dfc05faa35 SOLR-12181: Fix NPE. Disable the test until it's fixed. 2018-04-13 12:45:54 +02:00
Erick Erickson 0014f3af88 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-04-12 17:58:32 -07:00
Varun Thacker 2a2a0b6acd SOLR-12150: Fix a test bug in CdcrBidirectionalTest.testBiDir 2018-04-12 15:35:34 -07:00
David Smiley 3d5f2f24c3 SOLR-11336: DocBasedVersionConstraints URP is now more extensible; versionField is a list 2018-04-12 14:04:28 -04:00
Varun Thacker 7a57ca8c0d SOLR-12065: A successful restore collection should mark the shard state as active and not buffering 2018-04-12 08:20:28 -07:00
Simon Willnauer 19b4483ca0 Fix lint error of unused imports in LeaderVoteWaitTimeoutTest 2018-04-12 12:44:34 +02:00
Cao Manh Dat 11d54b0cc4 SOLR-12214: Leader may skip publish itself as ACTIVE even its last published state is DOWN 2018-04-12 12:28:00 +07:00
yonik 8d20fc575b SOLR-12190: properly escape output in GraphMLResponseWriter 2018-04-11 23:00:03 -04:00
Tomas Fernandez Lobbe 8927d469cb SOLR-11982: Add support for indicating preferred replica types for queries 2018-04-11 16:23:00 -07:00
Andrzej Bialecki 376f6c4946 SOLR-12181: Add trigger based on document count / index size. 2018-04-11 15:38:54 +02:00
Steve Rowe fe0da9e8d5 SOLR-12201: TestReplicationHandler.doTestIndexFetchOnMasterRestart(): handle unexpected replication failures 2018-04-10 22:15:31 -04:00
Mark Miller b93e24cb83 SOLR-12211: HdfsDirectoryFactoryTest can fail by trying to allocate too much direct memory. 2018-04-10 16:16:23 -05:00
Christine Poerschke e513c95377 SOLR-12151: Add abstract MultiSolrCloudTestCase class. 2018-04-10 21:09:06 +01:00
Christine Poerschke e8f862ea44 SOLR-12036: Factor out DefaultStreamFactory solrj class. 2018-04-10 20:45:58 +01:00
Mikhail Khludnev a39a6ce672 SOLR-12155: awake threads awaiting UIF.<init> despite of exception. 2018-04-10 21:32:25 +03:00
Mikhail Khludnev 764dcc336b SOLR-12207: rethowing AssertionError from jdk reflection bug 2018-04-10 20:34:07 +03:00
Ishan Chattopadhyaya a70b257c80 SOLR-12096: Fix test failure, using deterministic sort order 2018-04-10 12:35:05 +05:30
Mark Miller 5e2a5a5b8c SOLR-10783: Add support for Hadoop Credential Provider as SSL/TLS store password source. 2018-04-09 21:57:56 -05:00
David Smiley f0aed933a6 SOLR-12139: eq() now works on strings and perhaps anything 2018-04-09 12:17:48 -04:00
Alan Woodward 798d351034 LUCENE-8242: Deprecate createNormalizedWeight 2018-04-09 15:07:04 +01:00
Ishan Chattopadhyaya ea08bd3b67 SOLR-12096: Fixed inconsistent results format of subquery transformer for distributed search (multi-shard) 2018-04-09 16:36:07 +05:30
Alan Woodward 2ae488aae2 SOLR-12147: Don't use MemoryPostingsFormat for TestDocTermOrds.testTriggerUnInvertLimit
This can lead to OOM on nightly runs, as it needs to create a very large index,
and the CI machines don't have huge amounts of RAM.
2018-04-07 18:34:25 +01:00
Steve Rowe 5c37b07a3d SOLR-12199: TestReplicationHandler.doTestRepeater(): TEST_PORT interpolation failure: Server refused connection at: http://127.0.0.1:TEST_PORT/solr 2018-04-06 14:50:21 -04:00
Joel Bernstein d2845b033e SOLR-12175: Fix TestConfigSetsAPI 2018-04-05 14:00:07 -04:00
Steve Rowe 8e276b90f5 SOLR-11929: UpdateLog metrics are not initialized on core reload 2018-04-04 11:19:21 -04:00
Andrzej Bialecki 2bbd193691 SOLR-12095: Missed a few calls to init(). 2018-04-04 17:13:24 +02:00
Cao Manh Dat 34b83ed869 SOLR-12176: Improve FORCELEADER to handle the case when a replica win the election but does not present in clusterstate 2018-04-04 03:41:57 +07:00
Varun Thacker 56f80c0dc7 SOLR-12154: Disallow explicit usage of Log4j2 logger via forbidden APIs 2018-04-03 18:21:14 -07:00
Andrzej Bialecki a8b42300c0 SOLR-12095: Fix precommit issues. 2018-04-03 17:19:56 +02:00