Commit Graph

3923 Commits

Author SHA1 Message Date
Mark Robert Miller 720ded1e46 SOLR-4602: ZkController#unregister should cancel it's election participation before asking the Overseer to delete the SolrCore information.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457584 13f79535-47bb-0310-9956-ffa450edef68
2013-03-17 23:16:59 +00:00
Mark Robert Miller 4ba86e84ae fix typo
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457557 13f79535-47bb-0310-9956-ffa450edef68
2013-03-17 20:46:28 +00:00
Mark Robert Miller 2d406a50b2 SOLR-4597: Additional work.
SOLR-4598: The Core Admin unload command's option 'deleteDataDir', should use the DirectoryFactory API to remove the data dir. 

SOLR-4599: CachingDirectoryFactory calls close(Directory) on forceNew if the Directory has a refCnt of 0, but it should call closeDirectory(CacheValueValue).

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457556 13f79535-47bb-0310-9956-ffa450edef68
2013-03-17 20:41:17 +00:00
Mark Robert Miller 025e30b992 SOLR-4597: CachingDirectoryFactory#remove should not attempt to empty/remove the index right away but flag for removal after close.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457494 13f79535-47bb-0310-9956-ffa450edef68
2013-03-17 17:36:59 +00:00
Mark Robert Miller 0dece6b609 SOLR-4555: improve solution
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457475 13f79535-47bb-0310-9956-ffa450edef68
2013-03-17 16:11:15 +00:00
Mark Robert Miller 20cb1cdca9 tests: higher timeout, more specific fail msg, remove unused import
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457455 13f79535-47bb-0310-9956-ffa450edef68
2013-03-17 14:35:59 +00:00
Mark Robert Miller 2549f2e1ef SOLR-4596: DistributedQueue should ensure its full path exists in the constructor.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457310 13f79535-47bb-0310-9956-ffa450edef68
2013-03-16 21:17:10 +00:00
Mark Robert Miller 826ab5a532 SOLR-4594: StandardDirectoryFactory#remove accesses byDirectoryCache without a lock
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457293 13f79535-47bb-0310-9956-ffa450edef68
2013-03-16 19:02:19 +00:00
Mark Robert Miller c216ff7d82 SOLR-4595: CachingDirectoryFactory#close can throw a concurrent modification exception.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457292 13f79535-47bb-0310-9956-ffa450edef68
2013-03-16 19:01:11 +00:00
Mark Robert Miller 13c5526d07 SOLR-4573: Accessing Admin UI files in SolrCloud mode logs warnings.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457281 13f79535-47bb-0310-9956-ffa450edef68
2013-03-16 17:53:31 +00:00
Mark Robert Miller 87a6c98b7c SOLR-4592: DefaultSolrCoreState#doRecovery needs to check the CoreContainer shutdown flag inside the recoveryLock sync block.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457199 13f79535-47bb-0310-9956-ffa450edef68
2013-03-16 04:06:05 +00:00
Mark Robert Miller 243db2c376 tests: more logging
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457146 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 22:09:49 +00:00
Stefan Matheis 7710b18b1f SOLR-4311: Admin UI - Optimize Caching Behaviour
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457143 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 21:55:09 +00:00
Mark Robert Miller 0d191235dc tests: use filesystem dir until I figure out why ephemerals dirs are having trouble
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457134 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 21:40:01 +00:00
Mark Robert Miller 596616b469 don't use package as var name - the police will be all over that
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457132 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 21:33:36 +00:00
Stefan Matheis 5b6b0776ef SOLR-4311: Admin UI - Optimize Caching Behaviour
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457099 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 20:36:01 +00:00
Erick Erickson 05c544ec19 SOLR-4318 NPE when doing a wildcard query on a TextField with the default analysis chain
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457032 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 17:40:16 +00:00
Mark Robert Miller 62fd532bae SOLR-4585: The Collections API validates numShards with < 0 but should use <= 0.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456979 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 15:03:02 +00:00
Erick Erickson 78081caf97 Added comments for deprecating solr.xml (SOLR-4196 etc)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456938 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 12:59:53 +00:00
Steven Rowe 67083534ff LUCENE-4642:
* TokenizerFactory.create(Reader) is made final, and calls the AttributeFactory-accepting version with AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY
* TokenizerFactory.create(AttributeFactory, Reader) is made abstract
* Added AttributeFactory-accepting constructors to all Tokenizer's with existing TokenizerFactory subclasses that didn't already have them
* Removed create(Reader) from all TokenizerFactory subclasses

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456768 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 04:41:50 +00:00
Mark Robert Miller c14131d4e7 SOLR-4569: CHANGES entry
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456733 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 00:39:54 +00:00
Mark Robert Miller 841d757232 SOLR-4570: Even if an explicit shard id is used, ZkController#preRegister should still wait to see the shard id in it's current ClusterState.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456731 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 00:31:55 +00:00
Mark Robert Miller 4609e9017f SOLR-4571: SolrZkClient#setData should return Stat object.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456727 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 00:04:22 +00:00
Mark Robert Miller b6719269fa SOLR-4568: The lastPublished state check before becoming a leader is not working correctly.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456723 13f79535-47bb-0310-9956-ffa450edef68
2013-03-14 23:44:21 +00:00
Mark Robert Miller a9fd4c7a3f SOLR-4574: The Collections API will silently return success on an unknown ACTION parameter.
SOLR-4576: Collections API validation errors should cause an exception on clients and otherwise act as validation errors with the Core Admin API.
SOLR-4577: The collections API should return responses (success or failure) for each node it attempts to work with. 

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456683 13f79535-47bb-0310-9956-ffa450edef68
2013-03-14 21:01:00 +00:00
Robert Muir 2c64eb9019 LUCENE-4607: add DISI/Spans.cost
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456670 13f79535-47bb-0310-9956-ffa450edef68
2013-03-14 20:48:23 +00:00
Erick Erickson d7a71a3a29 Fixed silly sensitivity to file separators (Windows/Unix). Bah.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456659 13f79535-47bb-0310-9956-ffa450edef68
2013-03-14 20:37:38 +00:00
Robert Muir 53fd6a8919 LUCENE-4827: expose bm25 parameters in PassageScorer
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456597 13f79535-47bb-0310-9956-ffa450edef68
2013-03-14 18:25:18 +00:00
Mark Robert Miller 3943f0f8c4 SOLR-4578: CoreAdminHandler#handleCreateAction gets a SolrCore and does not close it in SolrCloud mode when a core with the same name already exists.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456596 13f79535-47bb-0310-9956-ffa450edef68
2013-03-14 18:25:10 +00:00
Stefan Matheis 07dd466743 SOLR-4371: Admin UI - Analysis Screen shows empty result
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456521 13f79535-47bb-0310-9956-ffa450edef68
2013-03-14 16:40:37 +00:00
Erick Erickson 55cb4b443f Fix for SOLR-4575, solr.core.* no longer respected when evaluating config files
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456468 13f79535-47bb-0310-9956-ffa450edef68
2013-03-14 15:11:51 +00:00
Erick Erickson 43af8ee91b SOLR-4543 added note to CHANGES.txt
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456435 13f79535-47bb-0310-9956-ffa450edef68
2013-03-14 13:53:57 +00:00
Erick Erickson 89a08a3b31 Fix for SOLR-4543, setting shardHandlerFactory in solr.xml/solr.properties does not work
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456433 13f79535-47bb-0310-9956-ffa450edef68
2013-03-14 13:47:35 +00:00
Shalin Shekhar Mangar 8f92803353 SOLR-4297: Atomic update request containing null=true sets all subsequent fields to null
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456322 13f79535-47bb-0310-9956-ffa450edef68
2013-03-14 04:56:45 +00:00
Steven Rowe 37e0f23758 SOLR-4567: Beef up copyField tests, and assert schema conforms to test assumptions
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456288 13f79535-47bb-0310-9956-ffa450edef68
2013-03-14 00:11:06 +00:00
Mark Robert Miller c04f1ba800 SOLR-4566: revert
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455943 13f79535-47bb-0310-9956-ffa450edef68
2013-03-13 14:00:32 +00:00
Mark Robert Miller ccb85cd5cd SOLR-4566: Fix DocCollection to return all shards not just active shards.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455911 13f79535-47bb-0310-9956-ffa450edef68
2013-03-13 12:45:22 +00:00
Mark Robert Miller fd1e30a471 change runtime exception to service unavailable solrexception
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455904 13f79535-47bb-0310-9956-ffa450edef68
2013-03-13 12:28:39 +00:00
Robert Muir c64b374f96 use test-framework seed for randomness and dont share across threads
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455899 13f79535-47bb-0310-9956-ffa450edef68
2013-03-13 12:13:08 +00:00
Steven Rowe 651a15492b SOLR-4567: copyField source glob matching explicit field(s) stopped working in Solr 4.2
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455832 13f79535-47bb-0310-9956-ffa450edef68
2013-03-13 08:01:50 +00:00
Mark Robert Miller ba800da0e6 logging: this should not be warn anymore - changing to debug
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455753 13f79535-47bb-0310-9956-ffa450edef68
2013-03-12 23:29:28 +00:00
Steven Rowe 092545884e LUCENE-4642: Add create(AttributeFactory) to TokenizerFactory and subclasses with ctors taking AttributeFactory, and remove Tokenizer's and subclasses' ctors taking AttributeSource.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455670 13f79535-47bb-0310-9956-ffa450edef68
2013-03-12 19:04:06 +00:00
Erick Erickson 22401bab04 Fix for SOLR-4557, fixes for reload testing. Also made a series of changes to make reloading cores more robust
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455606 13f79535-47bb-0310-9956-ffa450edef68
2013-03-12 16:42:26 +00:00
Robert Muir b25cc528d9 LUCENE-4819: move Sorted(set)DocValuesTermsEnum to codec
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455391 13f79535-47bb-0310-9956-ffa450edef68
2013-03-12 02:17:27 +00:00
Erick Erickson 325ab7dfe1 Fix for assumption in the test harness uncovered by SOLR-4317
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455368 13f79535-47bb-0310-9956-ffa450edef68
2013-03-12 00:12:48 +00:00
Chris M. Hostetter a5c4101d9b SOLR-4538: Date Math expressions were being truncated to 32 characters when used in field:value queries in the lucene QParser
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455269 13f79535-47bb-0310-9956-ffa450edef68
2013-03-11 18:14:24 +00:00
James Dyer e9f2108093 SOLR-4361: DIH to allow handler parameters with dots in the name
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455245 13f79535-47bb-0310-9956-ffa450edef68
2013-03-11 17:37:17 +00:00
Erick Erickson f5b524f434 fix for SOLR-4317, don't requre 'collection1' in test harness. Thanks Tricia.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455196 13f79535-47bb-0310-9956-ffa450edef68
2013-03-11 15:46:52 +00:00
Robert Muir 1600711a61 LUCENE-4819: revert
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1454996 13f79535-47bb-0310-9956-ffa450edef68
2013-03-11 04:40:47 +00:00
Mark Robert Miller 5ea281a9d6 SOLR-4555: When forceNew is used with CachingDirectoryFactory#get, the old CachValue should have it's path set to null.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1454993 13f79535-47bb-0310-9956-ffa450edef68
2013-03-11 04:20:14 +00:00