Commit Graph

4416 Commits

Author SHA1 Message Date
Christine Poerschke 6b6932e8e1 SOLR-8621: WrapperMergePolicyFactory logic tweaks
* fix so that getMergePolicy() can now be called more than once
 * added WrapperMergePolicyFactoryTest.testUpgradeIndexMergePolicyFactory()
 * account for overlap between wrapping and wrapped setters (and disallow it)
** illustration:
   <mergePolicyFactory class="UpgradeMergePolicyFactory">
      <int name="noCFSRatio">0.24</int>
      <str name="wrapped.prefix">mergePolicy</str>
                      <str name="mergePolicy.class">TieredMergePolicyFactory</str>
                      <int name="mergePolicy.noCFSRatio">0.42</int>
   </mergePolicyFactory>
** implementation details: the wrapping MP's setter calls the wrapped MP's setter and in the current code the wrapping MP's value prevails i.e. the 0.24 value in the illustration since the wrapped MP is constructed before the wrapping MP. an end-user however might reasonably assume that the wrapped MP's 0.42 value will prevail. at best configuring the same setter twice within the same overall <mergePolicyFactory> element is ambiguous and so the code now disallows it.
2016-02-10 22:24:15 +00:00
Christine Poerschke 5d32609cdc SOLR-8621: add IndexSchema arg to MergePolicyFactory constructor 2016-02-10 16:28:06 +00:00
markrmiller 8299b00868 SOLR-7281: Improve 'best effort', we don't want this best effort method to easily throw exceptions. 2016-02-10 10:27:43 -05:00
Noble Paul b889109da1 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-02-09 15:08:56 -08:00
Noble Paul 2184a7baf6 SOLR-6594 Mark old schema APIs as deprecated 2016-02-09 15:08:41 -08:00
Mikhail Khludnev eac3bb9b32 SOLR-8466: facet.method=uif for UnInvertedField faceting, like it was with 'fc' earlier. 2016-02-10 01:06:56 +03:00
Christine Poerschke b47eeb2bb3 SOLR-8621: more <mergePolicy> vs. <mergePolicyFactory> test coverage
* added bad-mpf-solrconfig.xml as MergePolicyFactory equivalent of bad-mp-solrconfig.xml (with DummyMergePolicyFactory as equivalent to DummyMergePolicy)

* added solrconfig-logmergepolicyfactory.xml as MergePolicyFactory equivalent of solrconfig-logmergepolicy.xml

* added solrconfig-mergepolicyfactory-nocfs.xml as MergePolicyFactory equivalent of solrconfig-mergepolicy-nocfs.xml

* added solrconfig-indexconfig-mergepolicyfactory.xml as MergePolicyFactory equivalent of solrconfig-indexconfig.xml

* added solrconfig-warmer-randommergepolicyfactory.xml as MergePolicyFactory equivalent of solrconfig-warmer.xml
2016-02-09 17:47:05 +00:00
Jan Høydahl be807919b6 SOLR-3141: Warn in logs when expensive optimize calls are made 2016-02-09 15:37:25 +01:00
Christine Poerschke e9c90037aa SOLR-8621: TestMergePolicyConfig.testTieredMergePolicyConfig now randomly chooses between solrconfig-tieredmergepolicy.xml and solrconfig-tieredmergepolicyfactory.xml; solrconfig-tieredmergepolicyfactory.xml fix so that TestMergePolicyConfig.testTieredMergePolicyConfig passes. 2016-02-09 12:36:24 +00:00
Uwe Schindler 864df89339 More incorrect usage of default Locale 2016-02-09 08:49:39 +01:00
Uwe Schindler 8dddd88d30 Fix more locale bugs in SQL handler ans streams 2016-02-09 08:32:48 +01:00
markrmiller e78002bdc1 SOLR-7281: Add an overseer action to publish an entire node as 'down'. 2016-02-08 23:24:43 -05:00
Erick Erickson b5823b50db SOLR-8658: Fix test failure introduced in SOLR-8651 2016-02-08 19:38:25 -08:00
markrmiller 899f1fcf74 SOLR-8551: Make collection deletion more robust. 2016-02-08 21:39:01 -05:00
markrmiller ea21b8fae8 SOLR-8615: Just like creating cores, we should use multiple threads when closing cores. 2016-02-08 20:41:04 -05:00
Shai Erera 71f4e01d9f SOLR-8621: add missing package-info.java 2016-02-08 23:43:15 +02:00
Shai Erera fe2cf25079 SOLR-8621: Fix SolrIndexConfig.toMap() to use mergePolicyFactoryInfo if present 2016-02-08 23:20:13 +02:00
anshum 03d7f80b27 SOLR-8648: Support selective clearing up of stored async collection API responses via DELETESTATUS API 2016-02-08 13:15:46 -08:00
Shai Erera fc5b1ac279 SOLR-8621: deprecate <mergePolicy> in favor of <mergePolicyFactory> 2016-02-08 22:41:51 +02:00
Erick Erickson 7053a99f49 SOLR-8651: The commitWithin parameter is not passed on for deleteById in UpdateRequest for distributed queries 2016-02-07 17:08:20 -08:00
jbernste a01c518b94 SOLR-8654: SQL: Unlimited SELECT without an ORDER BY should sort by _version_ desc 2016-02-07 18:17:21 -05:00
Erick Erickson f77feb718a SOLR-8642: SOLR allows creation of collections with invalid names 2016-02-07 14:52:40 -08:00
Erick Erickson c04f0cb603 Merge remote-tracking branch 'origin/master' 2016-02-06 08:34:30 -08:00
Erick Erickson 3e7fe7867f SOLR-8500: Allow the number of threads ConcurrentUpdateSolrClient StreamingSolrClients configurable by a system property 2016-02-06 08:34:04 -08:00
Mike McCandless d2a5c10326 Merge branch 'master' into lucene-6835
Conflicts:
	lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestAddTaxonomy.java
	lucene/facet/src/test/org/apache/lucene/facet/taxonomy/writercache/TestCompactLabelToOrdinal.java
2016-02-05 12:38:21 -05:00
Uwe Schindler 4569fd732a Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-02-05 00:07:50 +01:00
Uwe Schindler f6400e9cbb SOLR-8586: Fix forbidden APIS; cleanup of imports 2016-02-05 00:07:23 +01:00
Mark Miller ec4c72310f SOLR-8575: Fix HDFSLogReader replay status numbers and a performance bug where we can reopen FSDataInputStream too often. 2016-02-04 17:54:01 -05:00
Uwe Schindler 0f43705788 LUCENE-7013: Revert changes to package-info.java files (adds newline after license header and before javadocs back) 2016-02-04 23:02:50 +01:00
yonik 629767be06 SOLR-8586: add index fingerprinting and use it in peersync 2016-02-04 14:55:13 -05:00
Shai Erera 813ca77250 LUCENE-7013: Move license header to top of file 2016-02-04 15:51:19 +02:00
Noble Paul f85036cd9c SOLR-8640: CloudSolrClient does not send credentials for update request 2016-02-04 18:59:03 +05:30
Shai Erera 30455f728b LUCENE-7010: add MergePolicyWrapper 2016-02-04 09:24:24 +02:00
Mike McCandless 9cf74f791c merge master 2016-02-03 17:03:23 -05:00
Mike McCandless 845eec1036 cutover more places back to deleteFile 2016-02-03 15:44:08 -05:00
Mike McCandless 84f44589f6 migrate current patch from svn 2016-02-02 15:53:16 -05:00
Erick Erickson 70f87420ab SOLR-8308: Core gets inaccessible after RENAME operation with special characters 2016-02-02 11:23:48 -08:00
jbernste 2419a3873a SOLR-8510: Implement DatabaseMetaDataImpl.getSchemas() 2016-02-02 13:19:06 -05:00
jbernste c136bd7dc7 SOLR-8625: SQL: Wrong error msg if stmt param is missing 2016-02-01 16:52:01 -05:00
jbernste edf665988d SOLR-8508: Implement DatabaseMetaDataImpl.getCatalogs() 2016-02-01 16:21:13 -05:00
Steve Rowe 064c0ac00f SOLR-8607: The Schema API refuses to add new fields that match existing dynamic fields 2016-02-01 09:15:17 -05:00
Christine Poerschke 8e27c14aed SOLR-8600: add & use ReRankQParserPlugin parameter [default] constants, changed ReRankQuery.toString to use StringBuilder. 2016-02-01 12:00:39 +00:00
David Smiley 4cdce3db77 SOLR-7968: Make QueryComponent extensible 2016-01-31 22:25:37 -05:00
jbernste e20820a04d SOLR-8285: Ensure the /export handler works with NULL field values 2016-01-31 13:21:10 -05:00
yonik e6db8ba214 SOLR-8532: GraphQuery don't collect edges at maxDepth level 2016-01-29 10:59:49 -05:00
Christine Poerschke 9754da625c SOLR-8597: add default, no-op QParserPlugin.init(NamedList) method 2016-01-28 17:39:52 +00:00
Mark Miller 62c9b6a172 SOLR-8451: fix randomization in test. 2016-01-28 12:34:13 -05:00
jbernste 79e384bac5 SOLR-8602: Implement ResultSetImpl.wasNull() 2016-01-28 11:08:31 -05:00
yonik 105c6dfe26 SOLR-8605: fix regex queries starting with escaped forward slash 2016-01-27 18:53:17 -05:00
jbernste ad96fd0d89 SOLR-8601: RollupStream loses the type for group by buckets 2016-01-27 16:09:44 -05:00