Commit Graph

512 Commits

Author SHA1 Message Date
Mark Robert Miller 31da6a3535 SOLR-8279: Add a new SolrCloud test that stops and starts the cluster while indexing data.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1714216 13f79535-47bb-0310-9956-ffa450edef68
2015-11-13 14:46:58 +00:00
Alan Woodward eb0da10bb4 SOLR-8278: Use NIO2 APIs in ConfigSetService
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1713996 13f79535-47bb-0310-9956-ffa450edef68
2015-11-12 09:43:26 +00:00
Alan Woodward 9cbae39ab8 SOLR-8259: Add getCoreContainer() method to JettySolrRunner
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1713601 13f79535-47bb-0310-9956-ffa450edef68
2015-11-10 10:06:49 +00:00
Alan Woodward be10d9e501 SOLR-8260: Use nio2 API in core discovery
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1713490 13f79535-47bb-0310-9956-ffa450edef68
2015-11-09 17:50:19 +00:00
Alan Woodward 4921f13576 SOLR-8255: MiniSolrCloudCluster should use a thread-safe list to hold its child nodes
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1713457 13f79535-47bb-0310-9956-ffa450edef68
2015-11-09 15:24:42 +00:00
Alan Woodward ccfdb5dce2 SOLR-8253: Ensure ZK server is always shutdown in AbstractDistribZkTestBase
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1713443 13f79535-47bb-0310-9956-ffa450edef68
2015-11-09 14:34:18 +00:00
Varun Thacker b5b4292afc SOLR-8215: Only active replicas should handle incoming requests against a collection
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1712601 13f79535-47bb-0310-9956-ffa450edef68
2015-11-04 17:59:37 +00:00
Alan Woodward 2018b052db SOLR-8221: Ensure that SSL config is passed to MiniSolrCloudCluster
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1711112 13f79535-47bb-0310-9956-ffa450edef68
2015-10-28 19:57:58 +00:00
Alan Woodward cb234d3c6b SOLR-8221: MiniSolrCloudCluster creates subdirectories for its child nodes
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1711041 13f79535-47bb-0310-9956-ffa450edef68
2015-10-28 15:43:51 +00:00
Christine Poerschke 676a0e4f2f SOLR-8196: TestMiniSolrCloudCluster.testStopAllStartAll case plus necessary MiniSolrCloudCluster tweak
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1710824 13f79535-47bb-0310-9956-ffa450edef68
2015-10-27 14:13:40 +00:00
Mark Robert Miller 9981ce1749 SOLR-8129: Raise no kill by monkey warning from 30 to 45.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1710371 13f79535-47bb-0310-9956-ffa450edef68
2015-10-24 18:22:23 +00:00
Jan Høydahl b831a14ba5 SOLR-7888: Analyzing suggesters can now filter suggestions by a context field
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1707907 13f79535-47bb-0310-9956-ffa450edef68
2015-10-10 19:01:59 +00:00
Yonik Seeley f3910125c8 tests: minor formatting
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1704893 13f79535-47bb-0310-9956-ffa450edef68
2015-09-23 16:42:57 +00:00
Uwe Schindler 8d44733846 Revert the AbstractZkTestCase changes for now
was: LUCENE-6795: Fix Solr tests that break RamUsageTester on Java 9 Jigsaw

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1702831 13f79535-47bb-0310-9956-ffa450edef68
2015-09-13 21:32:48 +00:00
Uwe Schindler b57234a745 LUCENE-6795: Fix Solr tests that break RamUsageTester on Java 9 Jigsaw
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1702770 13f79535-47bb-0310-9956-ffa450edef68
2015-09-13 12:25:40 +00:00
Gregory Chanan 679dd8f790 SOLR-7789: Introduce a ConfigSet management API
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1698043 13f79535-47bb-0310-9956-ffa450edef68
2015-08-27 02:18:36 +00:00
Uwe Schindler 1331a57e3d LUCENE-6732: Remove tabs in JS and XML files
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1695395 13f79535-47bb-0310-9956-ffa450edef68
2015-08-11 23:00:39 +00:00
Ramkumar Aiyengar b4aafbb606 SOLR-7859: Clamp down on use of System.currentTimeMillis
- Use RTimer where currentTimeMillis is used for timing
 - Abstract out a new class TimeOut for when currentTimeMillis/nanoTime
   is used to timeout operations.
 - Used `new Date()` in some cases where that is the logical intent.
 - Deprecated a couple of APIs which were publicly exposing epoch time,
   in favour of Date objects to make the intent clearer.
 - A couple of cases had currentTimeMillis in dead code.
 - In some cases where currentTimeMillis was used to just generate a name,
   used nanoTime instead (really it should be some sequence/random number
   in such a case).
 - In some other cases where stamps were used for SQL queries, HTTP headers,
   comparing against data in external files, ZK etc., used SuppressForbidden.
 - Also currently allow the use of currentTimeMillis in commit data,
   this is then used in replication -- this is concerning since absolute
   times are being compared, but that can be dealt with separately.



git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1694798 13f79535-47bb-0310-9956-ffa450edef68
2015-08-08 13:39:58 +00:00
Noble Paul db2ccb1d41 SOLR-7757: Improved security framework where security components can be edited/reloaded, Solr now watches /security.json. Components can choose to make their configs editable
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1694552 13f79535-47bb-0310-9956-ffa450edef68
2015-08-06 18:57:34 +00:00
Gregory Chanan 589a27eb27 SOLR-7855: OverseerCollectionProcessor: separate general task management from collection message handling
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1694406 13f79535-47bb-0310-9956-ffa450edef68
2015-08-06 06:07:32 +00:00
Christine Poerschke 2de2e0a16f SOLR-7766: support creation of a coreless collection via createNodeSet=EMPTY
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1694181 13f79535-47bb-0310-9956-ffa450edef68
2015-08-05 11:34:46 +00:00
Noble Paul 40e2cded26 SOLR-6625: Remove the HttpContext which provides our request
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1693931 13f79535-47bb-0310-9956-ffa450edef68
2015-08-03 16:23:01 +00:00
Shalin Shekhar Mangar 2a8bef841a SOLR-7854: Remove unused ZkStateReader.updateClusterState(false) method
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1693681 13f79535-47bb-0310-9956-ffa450edef68
2015-08-01 06:24:04 +00:00
Christine Poerschke 22d67a637a SOLR-7823: TestMiniSolrCloudCluster.testCollectionCreateSearchDelete async collection-creation (sometimes)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1693616 13f79535-47bb-0310-9956-ffa450edef68
2015-07-31 15:35:10 +00:00
Anshum Gupta 9cb8523c59 SOLR-6625: Set HttpClientImpl in SolrTestCaseJ4 for tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1693483 13f79535-47bb-0310-9956-ffa450edef68
2015-07-30 19:29:20 +00:00
Noble Paul b09a4553f7 SOLR-6625: Enable registering interceptors for the calls made using HttpClient and make the
request object available at the interceptor context

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1693432 13f79535-47bb-0310-9956-ffa450edef68
2015-07-30 14:28:20 +00:00
Jan Høydahl 2d5f162bb8 SOLR-7735: Look for solr.xml in Zookeeper by default
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1692673 13f79535-47bb-0310-9956-ffa450edef68
2015-07-26 00:15:27 +00:00
Shalin Shekhar Mangar 8649f3f3bd SOLR-7825: Forbid all usages of log4j and java.util.logging classes in Solr
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1692624 13f79535-47bb-0310-9956-ffa450edef68
2015-07-25 14:34:47 +00:00
Uwe Schindler 50f168ed4c SOLR-7803: Prevent class loading deadlock in TrieDateField; refactor date formatting and parsing out of TrieDateField and move to static utility class DateFormatUtil
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1691893 13f79535-47bb-0310-9956-ffa450edef68
2015-07-20 09:07:50 +00:00
Noble Paul 422694f9c0 SOLR-7793: Refactor some utility methods to a separate utility class
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1690935 13f79535-47bb-0310-9956-ffa450edef68
2015-07-14 13:55:46 +00:00
Michael McCandless a6301dd900 LUCENE-6659: remove IWC's max thread states limit
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1690299 13f79535-47bb-0310-9956-ffa450edef68
2015-07-10 18:09:58 +00:00
Noble Paul eb1542030e SOLR-7651: New response format added wt=smile
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1687256 13f79535-47bb-0310-9956-ffa450edef68
2015-06-24 12:50:19 +00:00
Ramkumar Aiyengar b255b716c3 SOLR-7714: Reduce SearchHandler's use of ShardHandler objects across shards in a search
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1687143 13f79535-47bb-0310-9956-ffa450edef68
2015-06-23 22:08:22 +00:00
Anshum Gupta 4b16875058 SOLR-5886: Store async call results in zk so that they can be returned by the REQUESTSTATUS API. Also, restrict the number of stored response to 10,000 each as a safety net.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1686089 13f79535-47bb-0310-9956-ffa450edef68
2015-06-17 18:46:10 +00:00
Ramkumar Aiyengar f9cca2eba1 SOLR-7680: Use POST instead of GET when finding versions for mismatches with CloudInspectUtil
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1685488 13f79535-47bb-0310-9956-ffa450edef68
2015-06-14 23:40:43 +00:00
Mark Robert Miller ed6fd884b0 SOLR-7512: SolrOutputFormat creates an invalid solr.xml in the solr home zip for MapReduceIndexerTool.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1684494 13f79535-47bb-0310-9956-ffa450edef68
2015-06-09 18:18:10 +00:00
Uwe Schindler 20c022e0ab LUCENE-6530: Fix iptables helper (was broken because of more strict error checking, sorry!). I tested it on my linux box, works fine!
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1684045 13f79535-47bb-0310-9956-ffa450edef68
2015-06-07 16:43:07 +00:00
Uwe Schindler a8cf56b222 LUCENE-6530: Refactoring: Simplify ProcessBuilder code at various places
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1684040 13f79535-47bb-0310-9956-ffa450edef68
2015-06-07 15:49:10 +00:00
Shalin Shekhar Mangar 18c72d87b5 SOLR-7599: Remove invokeCollectionAPI method from base test class and use solrj classes throughout
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1683417 13f79535-47bb-0310-9956-ffa450edef68
2015-06-03 19:22:49 +00:00
Mark Robert Miller e9cc66e0a3 tests: raise 'concern' limit
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1682479 13f79535-47bb-0310-9956-ffa450edef68
2015-05-29 14:15:20 +00:00
Mark Robert Miller d38212a458 SOLR-7601: We should only check that tests have properly closed resources if the tests passed.
Speeds up test fails and cleans up Jenkin's failure reports.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1682454 13f79535-47bb-0310-9956-ffa450edef68
2015-05-29 13:18:09 +00:00
Shalin Shekhar Mangar 8ea0d522ed SOLR-7599: Inline startCloudJetty method into ShardRoutingCustomTest
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1682340 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 21:29:12 +00:00
Shalin Shekhar Mangar c6afa72f07 SOLR-7599: More clean up of duplicate methods, renamed some methods and variable names
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1682258 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 14:58:47 +00:00
Mark Robert Miller 88640a507c SOLR-7361: Slow loading SolrCores should not hold up all other SolrCores that have finished loading from serving requests.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1682060 13f79535-47bb-0310-9956-ffa450edef68
2015-05-27 15:37:29 +00:00
Mark Robert Miller feb1f86d84 SOLR-7590: Finish and improve MDC context logging support.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1682020 13f79535-47bb-0310-9956-ffa450edef68
2015-05-27 13:33:32 +00:00
Shalin Shekhar Mangar 60298db833 SOLR-7146: MiniSolrCloudCluster based tests can fail with ZooKeeperException NoNode for /live_nodes
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1682002 13f79535-47bb-0310-9956-ffa450edef68
2015-05-27 12:48:28 +00:00
Mark Robert Miller a545b66008 SOLR-7589: A few improvements to the ObjectReleaseTracker to make test fail debugging a little easier.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1681585 13f79535-47bb-0310-9956-ffa450edef68
2015-05-25 12:42:41 +00:00
Ramkumar Aiyengar 852e04e3d0 SOLR-7081: TestMiniSolrCloudCluster.testBasics tidies up after itself, adds collection create/delete/create test case.
TestMiniSolrCloudCluster.testBasics now re-creates the server it removed for test purposes,
thus restoring the original NUM_SERVERS count. TestMiniSolrCloudCluster.testBasics now also deletes
the collection it created for test purposes (this revision adds MiniSolrCloudCluster.deleteCollection
and AbstractDistribZkTestBase.waitForCollectionToDisappear methods).

Sometimes TestMiniSolrCloudCluster.testBasics runs its create-collection/search-collection/delete-collection
logic twice, thus creating a create/delete/create-collection test case.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1675590 13f79535-47bb-0310-9956-ffa450edef68
2015-04-23 12:29:52 +00:00
Uwe Schindler f4207755d9 LUCENE-6420: Add missing suppressAnnotation declaration on forbiddenapis ANT task in test-frameworks
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1674939 13f79535-47bb-0310-9956-ffa450edef68
2015-04-20 16:26:26 +00:00
Shalin Shekhar Mangar 2c9ae41b78 SOLR-7381: Improve logging by adding node name in MDC in SolrCloud mode and adding MDC to all thread pools
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1673116 13f79535-47bb-0310-9956-ffa450edef68
2015-04-13 06:09:53 +00:00