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
e31ddf3554
use sendToLeaders rather than replicas != null to determine if we add repicas to end of the list
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1378922 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 13:18:29 +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
Sami Siren
96767652d7
SOLR-3726 allow more flexibility in configuring solr http clients
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1374964 13f79535-47bb-0310-9956-ffa450edef68
2012-08-20 10:32:52 +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
Uwe Schindler
5a940c12d8
Don't use IOUtils in SolrJ! Sorry, hope maven build did not start in this time frame *g*
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1374079 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 21:57:13 +00:00
Uwe Schindler
00167f1514
Fix bug in test by using a local file instead of HTTP URL. Also fix unclosed file in FileStream.getContentType(), remove dead code.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1374072 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 21:50:41 +00:00
Uwe Schindler
a59f38a03a
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?
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1374022 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 19:53:45 +00:00
Robert Muir
2a83b58506
use assertEquals so we will see whats going on when this fails
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1373994 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 19:24:31 +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
Mark Robert Miller
2c31ae30e5
SOLR-3727: improve solrcloud close/shutdown
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1372626 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 21:22:08 +00:00
Sami Siren
1d27c0364b
SOLR-3649: fix bug in JavabinLoader that caused deleteById(List<String> ids) to not work in SolrJ
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1372346 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 09:56:33 +00:00
Dawid Weiss
cebfa0b9b9
LUCENE-3985: Upgrade to randomizedtesting 2.0.0. Added support for thread leak detection. Added support for suite timeouts. (Dawid Weiss)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1372068 13f79535-47bb-0310-9956-ffa450edef68
2012-08-12 11:23:11 +00:00
Yonik Seeley
932901bb01
SOLR-3715: remove sync around tlog serialization
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1371379 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 18:53:19 +00:00
Mark Robert Miller
e528549a3b
still favor leaders with CloudSolrServer, but also fall back to replicas after leaders
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1370864 13f79535-47bb-0310-9956-ffa450edef68
2012-08-08 18:01:11 +00:00
Mark Robert Miller
fec289ee99
SOLR-3710: Change CloudSolrServer so that update requests are only sent to leaders by default.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1369484 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 22:03:42 +00:00
Mark Robert Miller
238c4274b6
SOLR-3709: Cache the url list created from the ClusterState in CloudSolrServer on each request.
...
SOLR-3708: Add hashcode to ClusterState so that structures built based on the ClusterState can be easily cached.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1369465 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 21:22:45 +00:00
Mark Robert Miller
de3d41432c
rename CloudState to ClusterState
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1369396 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 18:32:33 +00:00
Mark Robert Miller
7add2f7c62
LUCENE-3985: add close methods to Overseer and ConnectionManager and use them
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1369236 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 22:34:08 +00:00
Mark Robert Miller
66dac680fe
assume that sometimes the zk state can be stale vs our watcher based state when checking our state matches zk state
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1369189 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 20:03:16 +00:00
Mark Robert Miller
45030e76eb
SOLR-3639: Update ZooKeeper to 3.3.6
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1369025 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 15:22:17 +00:00
Yonik Seeley
e397d26dea
SOLR-3154: add murmurhash3 that can work directly on a string
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1367800 13f79535-47bb-0310-9956-ffa450edef68
2012-07-31 22:08:32 +00:00
Robert Muir
6d2a288be3
LUCENE-4262: add ivy sync=true, so when resolve runs, only jars that should be there are there
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1366509 13f79535-47bb-0310-9956-ffa450edef68
2012-07-27 19:18:49 +00:00
Mark Robert Miller
6578d7f512
SOLR-3663: There are a couple of bugs in the sync process when a leader goes down and a new leader is elected.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1364429 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 20:30:37 +00:00
Mark Robert Miller
b1fb39754b
don't treat 404 special and lost the http response code
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1363330 13f79535-47bb-0310-9956-ffa450edef68
2012-07-19 13:49:55 +00:00
Mark Robert Miller
24dae70408
SOLR-3639: Update ZooKeeper to 3.3.5 for a variety of bug fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1363024 13f79535-47bb-0310-9956-ffa450edef68
2012-07-18 17:26:47 +00:00
Mark Robert Miller
83e07fec09
SOLR-3215: Clone SolrInputDocument when distrib indexing so that update processors after the distrib update process do not process the document twice.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1363013 13f79535-47bb-0310-9956-ffa450edef68
2012-07-18 16:52:42 +00:00
Mark Robert Miller
e7d1278836
Add reload command to collections api - also improve tests.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1361017 13f79535-47bb-0310-9956-ffa450edef68
2012-07-13 00:35:54 +00:00
Mark Robert Miller
46021d4575
SOLR-3460: Add cloud-scripts directory and a zkcli.sh|bat tool for easy scripting and interaction with ZooKeeper.
...
SOLR-3609: Change Solr's expanded webapp directory to be at a consistent path called solr-webapp rather than a temporary directory.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1360416 13f79535-47bb-0310-9956-ffa450edef68
2012-07-11 21:45:43 +00:00
Robert Muir
33e06a219d
LUCENE-4199: dont use ioutils here
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1359324 13f79535-47bb-0310-9956-ffa450edef68
2012-07-09 18:15:52 +00:00
Robert Muir
aa13466422
LUCENE-4199: disallow deprecated jdk methods
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1359322 13f79535-47bb-0310-9956-ffa450edef68
2012-07-09 18:11:36 +00:00
Robert Muir
123b645157
LUCENE-4199: fix remaining violations
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4199@1359188 13f79535-47bb-0310-9956-ffa450edef68
2012-07-09 14:22:20 +00:00
Robert Muir
46cb8b9780
LUCENE-4199: fix more default locale/charset violations
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4199@1359181 13f79535-47bb-0310-9956-ffa450edef68
2012-07-09 14:06:17 +00:00
Robert Muir
9df919c5ba
LUCENE-4199: fix more charset/locale usages
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4199@1358890 13f79535-47bb-0310-9956-ffa450edef68
2012-07-09 01:17:15 +00:00
Robert Muir
b6a4748f21
make Locale.ENGLISH/US -> ROOT for locale-independent operations, now that we are on java6
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4199@1358594 13f79535-47bb-0310-9956-ffa450edef68
2012-07-07 15:42:40 +00:00
Michael McCandless
fccd1be5e7
escape javadoc generics
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1356522 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 23:43:49 +00:00
Robert Muir
ea4d4cf670
remove no-arg @return
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1356469 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 20:28:43 +00:00
Mark Robert Miller
38fc03163a
fix javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1356435 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 19:43:52 +00:00
Mark Robert Miller
3bbbd0bea3
SOLR-3488: Added a Collection management API for SolrCloud.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1356313 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 15:57:12 +00:00
Dawid Weiss
51c387731b
LUCENE-4181: Change the semantics of @Slow on tests.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1355310 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 10:55:26 +00:00
Steven Rowe
fd16190940
LUCENE-4172: clean up redundant throws clauses
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1355069 13f79535-47bb-0310-9956-ffa450edef68
2012-06-28 16:39:25 +00:00
Mark Robert Miller
306081e328
SOLR-3582: Our ZooKeeper watchers respond to session events as if they are change events, creating undesirable side effects.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1355004 13f79535-47bb-0310-9956-ffa450edef68
2012-06-28 13:23:49 +00:00
Mark Robert Miller
1fc4347e41
SOLR-1770: Move the default core instance directory into a collection1 folder
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1354308 13f79535-47bb-0310-9956-ffa450edef68
2012-06-27 01:48:00 +00:00
Sami Siren
0cf9ac0833
SOLR-3558 change SnapPuller to use solrj
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1353889 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 09:28:03 +00:00
Jan Høydahl
59313cd115
SOLR-3351: eDismax: ps2 and ps3 params
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1352726 13f79535-47bb-0310-9956-ffa450edef68
2012-06-21 23:40:05 +00:00
David Wayne Smiley
f12b94ab86
SOLR-3313 Rename Query Type to Request Handler
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1351932 13f79535-47bb-0310-9956-ffa450edef68
2012-06-20 04:23:07 +00:00
David Wayne Smiley
96d5d8e481
SOLR-2724 deprecate DefaultSearchField and defaultOperator
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1351931 13f79535-47bb-0310-9956-ffa450edef68
2012-06-20 04:17:04 +00:00
Sami Siren
a440c1c1ad
SOLR-139 add solrj test that exercises field update and optimistic locking
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1350464 13f79535-47bb-0310-9956-ffa450edef68
2012-06-15 05:33:30 +00:00
Sami Siren
53a1ce8d69
SOLR-3543 do not catch exceptions in JavaBinLoader
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1350199 13f79535-47bb-0310-9956-ffa450edef68
2012-06-14 11:37:42 +00:00