Commit Graph

32382 Commits

Author SHA1 Message Date
Jan Høydahl 5ff709d4bd Merge remote-tracking branch 'origin/master' into solr13672-zk
# Conflicts:
#	solr/CHANGES.txt
2019-08-06 15:14:55 +02:00
David Smiley 742e6b7eff LUCENE-8883: addVersion.py now adds categories to CHANGES.txt 2019-08-06 13:53:22 +02:00
Chris Hostetter 9e250f7219 Fix incorrect assertions in RulesTest.doIntegrationTest
my previous commit added waitForState calls to doIntegrationTest that forgot to take into account initial repFactor when createShard was called

as a result, the test could only pass if wather was called after a initial leader went live, before other replicas became live

this commit fixes this mistake, and hardens the assertions about the location of those replicas given the rule in use

also adds new expecation that trying to add additional replicas that would violate rule will cause request ot fail
2019-08-05 17:08:28 -07:00
Chris Hostetter a052fb5436 SOLR-13678: Harden CollectionPropsTest.testReadWriteCached to work around removeCollectionPropsWatcher() deadlock bug 2019-08-05 11:49:32 -07:00
David Smiley 4c6b0db25e revert accidental change 2019-08-05 11:25:40 +02:00
Bruno Roustant d97912529d SOLR-11866: QueryElevationComponent match="subset" feature
Closes #780
2019-08-05 11:23:47 +02:00
Atri Sharma 1cdcd0cdaf
Merge branch 'master' into new_rangetypes_or 2019-08-05 12:27:56 +05:30
Munendra S N 6fc042dd6d SOLR-13679: move changes entry to bug fix section 2019-08-05 10:40:22 +05:30
Munendra S N 84a62a5d87 SOLR-13679:Fix default style of [explain] registered in solrconfig.xml 2019-08-05 10:04:15 +05:30
Diego 751e64651c SOLR-13676: Reduce log verbosity in TestDistributedGrouping (#819)
* SOLR-13676: Reduce log verbosity in TestDistributedGrouping using ignoreException

* Code review

* Remove Assert
2019-08-05 09:27:44 +05:30
Tomoko Uchida 09993c6cf0 LUCENE-8778: Add a migration note to MIGRATE.txt 2019-08-04 23:52:45 +09:00
yonik b6c26f6c16 SOLR-13399: fix splitByPrefix test 2019-08-03 12:52:35 -04:00
Leonardo Menezes ff7b0c9de5 LUCENE-8764: Add "export all terms" feature to Luke
Co-authored-by: Tomoko Uchida <tomoko@apache.org>
2019-08-03 18:20:26 +09:00
Munendra S N 8c4fde94fe SOLR-12555: use expectThrows() to verify the ex thrown in tests 2019-08-03 13:00:49 +05:30
Chris Hostetter e8418adedb Harden CollectionPropsTest:
These fixes all relate to testWatcher + testMultipleWatchers:
* add additional asserts to the test methods to assert the expected property values are found
* mark Watcher.props volatile to prevent stale read by test thread
* add some randomization to Watcher.props to either come from the onStateChanged() input or
  from an explicit call to ZkStateReader.getCollectionProperties
  - previuosly, for reasons i don't understand, the test only consulted
    ZkStateReader.getCollectionProperties inside the Watcher, and ignored the onStateChanged()
    input
  - now the test validates both
* move all Watcher.triggered access into the existing synchronization blocks to prevent
  waitForTrigger() from returning prematurely due to gaining synch lock _after_
  Watcher.triggered was incremented in onStateChanged(), but _before_ onStateChanged() updated
  Watcher.props
* add detailed logging to provide additional info to help debug any additional jenkins failures
  that might pop up in the future if these fixes aren't sufficient
2019-08-02 17:02:17 -07:00
Boris Pasko 901f381c61
SOLR-6305: Replication from filesysem defaults, not from server defaults
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-08-02 18:43:26 -04:00
Joel Bernstein ee0fd49244 SOLR-13667: Fix precommit 2019-08-02 15:48:55 -04:00
Joel Bernstein 03a39666c0 SOLR-13667: Add upper, lower, trim and split Stream Evaluators 2019-08-02 15:38:26 -04:00
Christine Poerschke e2440d06d8 SOLR-13666: pull request template now sign-posts to Solr Reference Guide source
(Closes #814 PR.)
2019-08-02 17:30:55 +01:00
Jan Høydahl be7e9df57d Unused import 2019-08-02 15:42:05 +02:00
Jan Høydahl 9548481c8c Fix precommit
Remove errors from each host detail map
Display secureClientPort and server.1, server.2, server.3...
Added test for various failure responses and expected result from multiple nodes
2019-08-02 15:03:40 +02:00
Jan Høydahl 1123afae94 SOLR-13672: Cloud -> Zk Status page now parses response from Zookeeper 3.5.5 correctly 2019-08-02 13:01:20 +02:00
Bruno Roustant 52b5ec8068 LUCENE-8906: Lucene50PostingsFormat.IntBlockTermState becomes public 2019-08-02 00:21:26 +02:00
Chris Hostetter ab470a6564 SOLR-13664: Fixed SolrTestCaseJ4.deleteCore() to properly reset the dataDir used by initCore() 2019-08-01 09:15:18 -07:00
noble 15c2fd673a SOLR-13659: Refactor Cache config to lazily load the the class 2019-07-31 19:14:17 +10:00
noble daab5b11b2 SOLR-13659: Refactor CacheConfig to lazily load the the implementation class 2019-07-31 18:46:22 +10:00
noble a929ac5dac LUCENE-8920: precommit errors 2019-07-31 18:36:40 +10:00
Noble Paul 4cf6bbefcc
SOLR-13659: Refactor Cache config to lazily load the the class (#813) 2019-07-31 03:50:17 -04:00
Chris Hostetter 6dea203d11 SOLR-13660: Fixed AbstractFullDistribZkTestBase.waitForActiveReplicaCount() to ensure replicas are active. 2019-07-30 10:14:38 -07:00
Namgyu Kim 2c0d8996cf
LUCENE-8934: promote nori tools to main jar 2019-07-31 01:14:04 +09:00
Joel Bernstein 254a17b3b0 SOLR-13625: Fix precommit 2019-07-30 10:42:06 -04:00
Joel Bernstein 62955b1a4e SOLR-13625: Fix broken test cases 2019-07-30 10:42:06 -04:00
Joel Bernstein d0674866ed SOLR-13625: Add CsvStream, TsvStream Streaming Expressions and supporting Stream Evaluators 2019-07-30 10:42:06 -04:00
Michael Sokolov d1706b36ba LUCENE-8920: Fix bug preventing FST duplicate tails from being shared when encoded as array-with-gaps 2019-07-30 08:56:16 -04:00
Adrien Gallou d9d16eec95 LUCENE-8937: Avoid agressive stemming on numbers in the FrenchMinimalStemmer 2019-07-30 21:38:05 +09:00
Munendra S N cb94eeb491 SOLR-11266: remove content-type override from _default configSet 2019-07-30 10:06:56 +05:30
Munendra S N 70a8deb0ab LUCENE-8938: use expectThrows() to verify the ex thrown in tests 2019-07-29 22:21:18 +05:30
Munendra S N 1d303cee7f SOLR-13657: fix unsupported xpath test in TestXPathRecordReader
* use expectThrows to verify the exception and the message
* fix NPE in the test
2019-07-29 22:17:40 +05:30
jimczi b8289abeeb LUCENE-8935: BooleanQuery with no scoring clause can now early terminate the query when the total hits is not requested. 2019-07-29 10:04:49 +02:00
Munendra S N 9f74cb10d3 SOLR-13643:add Getter/Setter in ResponseBuilder to handle analytic res 2019-07-29 09:48:31 +05:30
Munendra S N 501a91763b SOLR-13656: fix bad mergePolicyFactory test in SolrIndexConfigTest
* use expectThrows to verify the exception and ex message
* remove unused DummyMergePolicy
2019-07-29 09:30:25 +05:30
Munendra S N 8566bcd25e SOLR-13633: fix typos in analytics documentation 2019-07-29 09:28:28 +05:30
Jason Gerlowski cab83772c9 SOLR-13629: Cleanup whitespace in analytics contrib 2019-07-28 15:36:21 -04:00
vinod kumar 8c8d8abddc LUCENE-8936: Add SpanishMinimalStemFilter
Signed-off-by: Tomoko Uchida <tomoko@apache.org>
2019-07-28 23:36:56 +09:00
Chris Hostetter 4050ddc59b Harden RulesTest
* ensure all collections/replicas are active

* use waitForState or waitForActiveCollection before checking rules/snitch to prevent false failures on stale state

* ensure cluster policy is cleared after each test method

Some of these changes should also help ensure we don't get (more) spurious failures due to SOLR-13616
2019-07-26 18:41:06 -07:00
Michael Sokolov 92d4e712d5 LUCENE-8920: refactor FST binary search 2019-07-26 15:49:16 -04:00
Michael Sokolov fe0c042470 LUCENE-8920: remove Arc setters, moving implementations into Arc, or copying data into consumers 2019-07-26 15:46:35 -04:00
Michael Sokolov 760f2dbdcb LUCENE-8920: encapsulate FST.Arc data 2019-07-26 15:46:35 -04:00
Atri Sharma 95d9950a57 Add CHANGES entry 2019-07-26 19:25:08 +05:30
Atri Sharma 3fb6a4d613 Update TODO comments 2019-07-26 19:24:03 +05:30