Commit Graph

1085 Commits

Author SHA1 Message Date
Sami Siren 9d96a5647c catch and exceptons from MBean registation that may happen during some tests because multiple solr servers use same MBean Server
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1380301 13f79535-47bb-0310-9956-ffa450edef68
2012-09-03 17:25:11 +00:00
Mark Robert Miller 278200cfaa SOLR-3772,SOLR-3750: make optional, wait time configurable, default to off
SOLR-3782: A leader going down while updates are coming in can cause shard inconsistency. 

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1380299 13f79535-47bb-0310-9956-ffa450edef68
2012-09-03 17:14:25 +00:00
Yonik Seeley 7af7d1de48 SOLR-3755: shard splitting - create cores, use writers from cores
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1380287 13f79535-47bb-0310-9956-ffa450edef68
2012-09-03 16:36:20 +00:00
Dawid Weiss f45c48e097 Don't interrupt zookeeper's SyncThread because it invokes system.exit. We
should ban System.exit via the policy file. Unfortunately System.exit is
used by the runner itself too (otherwise it wouldn't be able to exit the
JVM in the presence of background threads) so the policy would need to be
selective and either ban certain packages or revoke the grant for the
runner.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1380200 13f79535-47bb-0310-9956-ffa450edef68
2012-09-03 11:10:53 +00:00
Sami Siren fe0340cf60 fix test so that it does not miss the 2nd event
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1380194 13f79535-47bb-0310-9956-ffa450edef68
2012-09-03 10:44:46 +00:00
Mark Robert Miller 362d518c19 drop to 100ms pause for now
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1380101 13f79535-47bb-0310-9956-ffa450edef68
2012-09-03 00:37:46 +00:00
Mark Robert Miller 3b58473127 remove stale comment
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1380098 13f79535-47bb-0310-9956-ffa450edef68
2012-09-03 00:14:00 +00:00
Uwe Schindler 12dddf2285 LUCENE-3312: Final merge before reintegrate
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene3312@1379940 13f79535-47bb-0310-9956-ffa450edef68
2012-09-02 11:21:01 +00:00
Mark Robert Miller 3a2f6e9dc8 SOLR-3773: Hash based on the external String id rather than the indexed representation for distributed updates.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1379452 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 13:58:52 +00:00
Dawid Weiss 5d6583162d Don't interrupt threads in this test, just report thread leak errors. Should help get past the broken (?) freebsd jvm.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1379371 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 08:53:00 +00:00
Chris M. Hostetter adc8db0353 SOLR-3441: ElisionFilterFactory is now MultiTermAware
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1379275 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 03:44:05 +00:00
Chris M. Hostetter 59847bd6d2 SOLR-2768: new "mod(x,y)" function for computing the modulus of two value sources
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1379225 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 23:29:00 +00:00
Uwe Schindler 50d2639308 LUCENE-3312: Merge up to trunk and fix basic Javadocs merge conflicts. The new classes now need method descriptions, mainly oal.index.StorableField(Type)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene3312@1379200 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 22:43:41 +00:00
Yonik Seeley 7754d1d105 SOLR-3755: basic shard splitting code
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1379195 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 22:31:56 +00:00
Robert Muir d7120c7e43 LUCENE-4343: clear up more Tokenizer.setReader/TokenStream.reset issues
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1379036 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 17:50:18 +00:00
Chris M. Hostetter 06fdfe6f32 SOLR-3768: add some prelim assertions to OverseerTest
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1379014 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 16:48:55 +00:00
Uwe Schindler 72c1b74d5c LUCENE-4337: Revert JMX code, was not needed in that complexity.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1379006 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 16:32:00 +00:00
Mark Robert Miller 2fdd58398a SOLR-3750: On session expiration, we should explicitly wait some time before running the leader sync process so that we are sure every node participates.
SOLR-3772: On cluster startup, we should wait until we see all registered replicas before running the leader process or if they all do not come up, N amount of time. 

SOLR-3752: When a leader goes down, have the Overseer clear the leader state in cluster.json 

SOLR-3751: Add defensive checks for SolrCloud updates and requests that ensure the local state matches what we can tell the request expected.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1379002 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 16:23:16 +00:00
Mark Robert Miller d72c9dddba work harder to shutdown jetty for cases where jetty was started but could not bind to the port - not perfect yet, but works better than a std stop
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1378948 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 14:16:15 +00:00
Uwe Schindler 1e573d0ea6 LUCENE-4337: Add a SecurityManager to run tests using a custom policy file, disallowing write/delete access outside ${build.dir} and listening network sockets on any other address than 127.0.0.1:1024-. This also fixes failing Solr tests because of creating index in example folder or listening on 0.0.0.0 (JMX)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1378914 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 12:54:06 +00:00
Mark Robert Miller 48ae881287 SOLR-3721: Fix bug that could allow multiple recoveries to run briefly at the same time if the recovery thread join call was interrupted.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1378904 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 12:19:10 +00:00
Sami Siren 883323f166 fix for SOLR-3770: Overseer may lose updates to cluster state
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1378892 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 11:48:02 +00:00
Sami Siren 288926a15f SOLR-3731: use same wait time as is used in ZkController
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1378889 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 11:24:17 +00:00
Sami Siren ae43103d15 reuse existing code, baseUrl and coreName can no longer be null
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1378512 13f79535-47bb-0310-9956-ffa450edef68
2012-08-29 12:06:03 +00:00
Sami Siren fdc313d3bc fix test, remove unused method
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1378458 13f79535-47bb-0310-9956-ffa450edef68
2012-08-29 06:58:38 +00:00
Chris M. Hostetter a8b57fa9de SOLR-3745: Proper error reporting if SolrCloud mode is used w/o necessary "_version_" field in schema.xml
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1377898 13f79535-47bb-0310-9956-ffa450edef68
2012-08-27 23:01:11 +00:00
Robert Muir 458fcb4446 LUCENE-3923: fail the build on wrong svn:eol-style
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1377702 13f79535-47bb-0310-9956-ffa450edef68
2012-08-27 14:47:19 +00:00
Sami Siren 71a58d78a4 SOLR-3731: increase sleep
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1377579 13f79535-47bb-0310-9956-ffa450edef68
2012-08-27 06:48:03 +00:00
Uwe Schindler 2317133ca2 LUCENE-3312: Merge up to trunk
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene3312@1377246 13f79535-47bb-0310-9956-ffa450edef68
2012-08-25 10:06:07 +00:00
Erik Hatcher 13fd86913c SOLR-3288: Update reference to example conf/
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1376792 13f79535-47bb-0310-9956-ffa450edef68
2012-08-23 23:51:42 +00:00
Sami Siren 504b792937 SOLR-3731: disallow null CoreContainer
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1376432 13f79535-47bb-0310-9956-ffa450edef68
2012-08-23 10:52:37 +00:00
Robert Muir 568156b710 LUCENE-4321: Don't extend the trappy/broken FilterReader and simplify CharFilter so subclasses are correct readers
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1376158 13f79535-47bb-0310-9956-ffa450edef68
2012-08-22 17:51:19 +00:00
Chris M. Hostetter 0183711e22 SOLR-3746: more context to error message
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1375723 13f79535-47bb-0310-9956-ffa450edef68
2012-08-21 19:19:21 +00:00
Chris M. Hostetter 41c067bc18 SOLR-3746: Proper error reporting if updateLog is configured w/o necessary _version_ field in schema.xml
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1375674 13f79535-47bb-0310-9956-ffa450edef68
2012-08-21 17:25:34 +00:00
Yonik Seeley 97689f52f2 SOLR-3743: real-time get should not return copyField targets
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1374912 13f79535-47bb-0310-9956-ffa450edef68
2012-08-20 04:22:10 +00:00
Uwe Schindler bb6c2582d8 LUCENE-3312: Merged revision(s) 1373336-1374717 from lucene/dev/trunk:
test this cleaner, we don't need a nested test, just want to ensure MDW throws exception on close
........
SOLR-3730: Rollback is not implemented quite right and can cause corner case fails in SolrCloud tests.
........
SOLR-3690: Fixed binary release packages to include dependencies needed for the solr-test-framework
........
SOLR-2981: Fixed StatsComponent to no longer return duplicated information when requesting multiple stats.facet fields
........
SOLR-3690: need to copy the license + sha1 files to be included in solr artifacts
........
LUCENE-4308: don't delete a test's files if the test fails
........
LUCENE-4308: clean up imports, move below license
........
add more missing javadocs
........
javadocs
........
add hostContext to solr.xml by default
........
SOLR-2857: restore /update/json and /update/csv
........
improve javadocs
........
use assertEquals so we will see whats going on when this fails
........
added javadocs to SortedBytesMergeUtils public inner classes
........
added javadocs to SortedBytesMergeUtils public inner classes
........
fix javadocs
........
javadocs
........
Better verbosity, also fix bug in while loop with char==0.
I have one explanation for this: Maybe Apaches SVN server returns something (like error message) that's not UTF8?
........
javadocs
........
Fix bug in test by using a local file instead of HTTP URL. Also fix unclosed file in FileStream.getContentType(), remove dead code.
........
Don't use IOUtils in SolrJ! Sorry, hope maven build did not start in this time frame *g*
........
SOLR-3737: fix Stempel factory resource loading, use singleton instance
........
javadocs
........
enforce all lucene core classes have javadocs
........
LUCENE-4310: non-BMP characters were failing to match with MappingCharFilter
........
LUCENE-4310: revert ... new test is failing
........
LUCENE-4310: non-BMP characters were failing to match with MappingCharFilter
........
Rewrite the copying loop slightly; scratch.grow has an assert offset == 0
so moved this reset up before grow.
........
SOLR-3715: fix FastOutputStream, FastWriter when buffer sizes can change
........
license
........
SOLR-3691: SimplePostTool: Mode for indexing a web page
........
SOLR-3707: Upgrade Solr to Tika 1.2
........
SOLR-3691: Fixed javadocs-lint errors
........
use hasNext not .next() == null to detect empty iterator
........
2nd fix: The same problem had size()
........
Solr extraction contrib should have compile time dependency on lucene, not just test.
........
Fix javadocs of Fields.size(), use FilteredIterator from StoredFields branch. Return -1 for Fields.size() in FieldFilterAtomicReader. If this breaks some test, we found a bug and have to change test to respect -1 (which is valid return value)
........
Fix javadocs
........


git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene3312@1374718 13f79535-47bb-0310-9956-ffa450edef68
2012-08-19 09:35:25 +00:00
Jan Høydahl 4c057cf4bf SOLR-3691: Fixed javadocs-lint errors
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1374549 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 10:26:51 +00:00
Jan Høydahl 92171e49a5 SOLR-3691: SimplePostTool: Mode for indexing a web page
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1374497 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 01:30:49 +00:00
Yonik Seeley 1e2fa0ad45 license
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1374490 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 01:05:47 +00:00
Yonik Seeley 84a8768b5d SOLR-3715: fix FastOutputStream, FastWriter when buffer sizes can change
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1374480 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 00:15:04 +00:00
Yonik Seeley e7a09ceec4 SOLR-2857: restore /update/json and /update/csv
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1373904 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 16:19:23 +00:00
Chris M. Hostetter 8cb409d4cf SOLR-2981: Fixed StatsComponent to no longer return duplicated information when requesting multiple stats.facet fields
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1373598 13f79535-47bb-0310-9956-ffa450edef68
2012-08-15 19:44:27 +00:00
Mark Robert Miller 12cbfaf62a SOLR-3730: Rollback is not implemented quite right and can cause corner case fails in SolrCloud tests.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1373398 13f79535-47bb-0310-9956-ffa450edef68
2012-08-15 13:34:34 +00:00
Uwe Schindler 86afe66472 LUCENE-3312: Merged revision(s) 1372429-1373335 from lucene/dev/trunk:
move class to o.a.l.index and make pkg-private, silence java7 warnings
........
SOLR-3727: improve solrcloud close/shutdown
........
LUCENE-4303 Use ResourceLoader not Class.forName
........
LUCENE-4302: Fix facet userguide to have HTML loose doctype like all other javadocs
........
LUCENE-4152: add one syllable method to enumerate subreaders
........
LUCENE-4152: use simpler sugar
........
SOLR-3670: New CountFieldValuesUpdateProcessorFactory
........
SOLR-3727: improve solrcloud close/shutdown
........
Ignore process reaper (forked subprocess on unixish systems).
........
document what IW.close is doing and how to 'actually close' if you want that
........
LUCENE-4304: remove PayloadProcessorProvider, map facet ords using a FilterAtomicReader
........
LUCENE-4304: Make CompositeReader.getSequentialSubReaders() protected
........
solrcloud: improve some logging, improve some testing, other minor tweaks
........
LUCENE-4307: rename IR.getTopReaderContext to IR.getContext
........
SOLR-3572: Make schema-browser show custom similarities
........
better failures from MDW if you have unclosed indexwriter, even if you setLockFactory
........
Improve Javadocs, fix wrong getContext() javadocs (contained outdated info, leaves() throws UOE if not top-level), remove lucene.experimental from contexts, as this is now the official API to walk reader tree.
........


git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene3312@1373337 13f79535-47bb-0310-9956-ffa450edef68
2012-08-15 11:23:02 +00:00
Greg Bowyer 8a5bab3e1d SOLR-3572: Make schema-browser show custom similarities
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1373117 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 21:16:17 +00:00
Robert Muir 796fb31c89 LUCENE-4307: rename IR.getTopReaderContext to IR.getContext
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1373072 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 20:43:16 +00:00
Mark Robert Miller c607f548bb solrcloud: improve some logging, improve some testing, other minor tweaks
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1372981 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 17:16:43 +00:00
Uwe Schindler 2573a23996 LUCENE-4304: Make CompositeReader.getSequentialSubReaders() protected
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1372866 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 12:54:46 +00:00
Mark Robert Miller d4b66af3b3 SOLR-3727: improve solrcloud close/shutdown
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1372701 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 01:31:27 +00:00
Chris M. Hostetter 680449363f SOLR-3670: New CountFieldValuesUpdateProcessorFactory
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1372687 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 00:35:55 +00:00