Commit Graph

564 Commits

Author SHA1 Message Date
Alan Woodward 06d2f6368d SOLR-8323: Add CollectionStateWatcher API 2016-05-13 21:43:43 +01:00
Chris Hostetter 1d7094c931 SOLR-8970: Change SSLTestConfig to use a keystore file that is included as a resource in the test-framework jar so users subclassing SolrTestCaseJ4 don't need to preserve magic paths
(cherry picked from commit 76063648ae)
2016-05-11 16:35:23 -07:00
Mikhail Khludnev 75a84b7d2d SOLR-8208: [subquery] document transformer executes separate requests per result document. 2016-05-09 19:48:47 +03:00
Chris Hostetter 7144984e16 SOLR-9068 / SOLR-5776: replace NullSecureRandom w/ NotSecurePsuedoRandom
(cherry picked from commit ac0e73a521)
2016-05-06 22:46:41 -07:00
Chris Hostetter 7e2f9f506d SOLR-9068 / SOLR-5776: Alternate (psuedo random) NullSecureRandom for Constants.SUN_OS
(cherry picked from commit a5586d29b2)

Conflicts:
	solr/test-framework/src/java/org/apache/solr/util/SSLTestConfig.java
2016-05-06 15:32:13 -07:00
Shalin Shekhar Mangar 7bfaa51079 SOLR-9014: Deprecate ClusterState.getCollections and introduce a new ClusterState.getCollectionsMap instead
(cherry picked from commit f5497a3)
2016-05-05 16:03:11 +05:30
Chris Hostetter f1ed73de11 SOLR-5776: javadoc typo
(cherry picked from commit c0a287cb76)
2016-05-03 18:27:59 -07:00
Chris Hostetter 98b0da47ad SOLR-5776: refactor SSLConfig so that SSLTestConfig can provide SSLContexts using a NullSecureRandom to prevent SSL tests from blocking on entropy starved machines
(cherry picked from commit f45bd03ca2cc301dcec4e68c49d961c306d8f434)

Conflicts:
	solr/test-framework/src/java/org/apache/solr/util/SSLTestConfig.java
2016-05-03 15:31:47 -07:00
David Smiley dac044c94a SOLR-5750: Add /admin/collections?action=BACKUP and RESTORE
(cherry picked from commit 70bcd56)
2016-05-02 22:46:06 -04:00
Chris Hostetter 8e8f6c1fa8 SOLR-9028: Fix 2 SSL test related bugs...
1) SolrTestCaseJ4 should always reset the HttpClientConfigurer in afterClass, regardless of wether ssl was used
   (when SSL is not used, the active configurer explicitly excludes SSL)
2) HttpClientUtilTest.testSSLSystemProperties made no sense as written.  setSSLSystemProperties() didn't have any
   effect on what was being tested, even if it was useful it would only have affected what keystore/truststore were
   used, not wether HTTPS was supported or not.
2016-04-30 22:22:09 -07:00
Chris Hostetter 7aecf344b1 SOLR-9028: Fixed some test related bugs preventing SSL + ClientAuth from ever being tested
(cherry picked from commit 791d1e7)

Conflicts:
	solr/core/src/test/org/apache/solr/cloud/SSLMigrationTest.java
	solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpClientUtil.java
	solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
	solr/test-framework/src/java/org/apache/solr/util/SSLTestConfig.java
2016-04-29 10:08:41 -07:00
Noble Paul f82a27aa5c SOLR-8995: Replace anonymous implementations of SAM interfaces with Lambdas 2016-04-15 19:04:44 +05:30
Timothy Potter af8a962417 SOLR-8908: Fixed OnReconnect listener management in ZkController to allow for de-registering listeners.
Here's what this commit includes:
* Added the removeOnReconnectListener method to ZkController to allow OnReconnect listener implementations to de-register; avoids a memory leak
* Updated ZkIndexSchemaReader to add a CloseHook to the SolrCore it supports to de-register as an OnReconnect listener
* Added unit test to verify that after reloading and deleting a SolrCore in managed schema mode, the associated ZkIndexSchemaReader gets de-registered correctly
2016-04-14 10:25:14 -07:00
Anshum Gupta f479f16d3a SOLR-8097: Implement builder pattern design for constructing SolrJ clients and deprecate direct construction of clients 2016-04-08 13:14:27 -07:00
Noble Paul d67ec54932 SOLR-8750: replace anonymous inner class for callable, Runnable etc 2016-04-05 23:20:55 +05:30
David Smiley 72f5eac2c5 SOLR-8904: switch from SimpleDateFormat to Instant.parse and format.
[value] and ms() and contrib/analytics now call DateMathParser to parse.  DateFormatUtil is now removed.
(cherry picked from commit 94c0423) (cherry picked from commit 39932f5)
2016-03-30 14:37:55 -04:00
Uwe Schindler 0a89ffaf96 SOLR-8874: Make Solr tests work with Java 9 Jigsaw 2016-03-19 14:54:58 +01:00
Chris Hostetter 0739f9155b SOLR-8849: improve reproducibility in random order of chaosmonkey actions 2016-03-15 11:04:49 -07:00
Shalin Shekhar Mangar dd04b61739 SOLR-8745: Deprecate costly ZkStateReader.updateClusterState(), replace with a narrow forceUpdateCollection(collection)
(cherry picked from commit 093a8ce)
2016-03-07 18:38:09 +05:30
Noble Paul 8d835f1231 SOLR-8750 : Use lambdas in code where SAM type interfaces are used 2016-03-04 18:55:29 +05:30
Steve Rowe 8bbb1dcace SOLR-8764: Remove deprecated methods and classes 2016-03-02 09:26:26 -05:00
Alan Woodward 9a3458f693 SOLR-8758: Add SolrCloudTestCase base class 2016-02-29 18:44:27 +00:00
Shalin Shekhar Mangar 41eb5e8542 SOLR-8746: Renamed Overseer.getInQueue to getStateUpdateQueue, getInternalQueue to getInternalWorkQueue and added javadocs 2016-02-27 13:10:51 +05:30
Tomas Fernandez Lobbe 730d10f145 SOLR-8420: Fix long overflow in sumOfSquares for Date statistics
Casted operations to double. Changed the test to support a percentage error given the FUZZY flag in doubles
2016-02-24 19:02:17 -08:00
Christine Poerschke b14fb50b7f SOLR-8674: solr.tests.mergePolicy[Factory] tests now randomly choose between <mergePolicy> and <mergePolicyFactory>
* This increases <mergePolicy> vs. <mergePolicyFactory> test coverage.
* This temporarily also adds a little test setup complexity but when SOLR-8668 removes support for <mergePolicy> then test setup will return to its original complexity.
2016-02-22 15:22:55 +00:00
markrmiller 0bba332549 SOLR-7339: Jetty 9.3 upgrade. 2016-02-16 16:01:10 -05:00
Christine Poerschke b2e47984f4 SOLR-8621: add (test-framework) RandomForceMergePolicyFactory for existing (test-framework) RandomForceMergePolicy 2016-02-11 17:46:44 +00:00
Christine Poerschke 5d32609cdc SOLR-8621: add IndexSchema arg to MergePolicyFactory constructor 2016-02-10 16:28:06 +00:00
markrmiller 899f1fcf74 SOLR-8551: Make collection deletion more robust. 2016-02-08 21:39:01 -05:00
Shai Erera fc5b1ac279 SOLR-8621: deprecate <mergePolicy> in favor of <mergePolicyFactory> 2016-02-08 22:41:51 +02: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
Shai Erera 813ca77250 LUCENE-7013: Move license header to top of file 2016-02-04 15:51:19 +02:00
Shai Erera 30455f728b LUCENE-7010: add MergePolicyWrapper 2016-02-04 09:24:24 +02:00
Mike McCandless 84f44589f6 migrate current patch from svn 2016-02-02 15:53:16 -05:00
Shai Erera 2311c7fee1 SOLR-8560: Add RequestStatusState enum
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1726144 13f79535-47bb-0310-9956-ffa450edef68
2016-01-22 05:39:54 +00:00
Yonik Seeley fa3b4c9623 SOLR-8472: tests - pull up common errorHook code
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1724069 13f79535-47bb-0310-9956-ffa450edef68
2016-01-11 15:54:38 +00:00
Mark Robert Miller 7986b8248f SOLR-8468: Raise some test zk connection timeouts up from 10 seconds and remove some test timeout magic numbers.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1723888 13f79535-47bb-0310-9956-ffa450edef68
2016-01-09 22:42:46 +00:00
Shalin Shekhar Mangar 96360c78c4 SOLR-7339: Revert Jetty 9.3 upgrade
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1723604 13f79535-47bb-0310-9956-ffa450edef68
2016-01-07 17:51:57 +00:00
Mark Robert Miller 84005ad61f SOLR-8279: One of two tests was not calling TestInjection#clear after using it. Call clear in the Solr base test class instead.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1720841 13f79535-47bb-0310-9956-ffa450edef68
2015-12-18 19:02:30 +00:00
Mark Robert Miller d74968d925 SOLR-8279: Do not fail tests due to searcher tracking - just use that for waiting and use ObjectReleaseTracker for the fail since it has more detailed info.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1720631 13f79535-47bb-0310-9956-ffa450edef68
2015-12-17 19:08:43 +00:00
Mark Robert Miller 8043424046 SOLR-8279: end searcher tracking before object release tracker.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1720627 13f79535-47bb-0310-9956-ffa450edef68
2015-12-17 18:42:00 +00:00
Mark Robert Miller fe7ef38b2e SOLR-8279: Add a new test fault injection approach and a new SolrCloud test that stops and starts the cluster while indexing data and with random faults.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1720613 13f79535-47bb-0310-9956-ffa450edef68
2015-12-17 17:08:10 +00:00
Christine Poerschke f81f939b54 SOLR-8414: AbstractDistribZkTestBase.verifyReplicaStatus could throw NPE
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1719981 13f79535-47bb-0310-9956-ffa450edef68
2015-12-14 18:16:44 +00:00
Christine Poerschke 8575e3fb3a LUCENE-6925: add ForceMergePolicy class in lucene test-framework and RandomForceMergePolicy class in solr test-framework, plus Test[Random]ForceMergePolicy test classes.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1719449 13f79535-47bb-0310-9956-ffa450edef68
2015-12-11 15:19:29 +00:00
Christine Poerschke bd777ac22d Remove outdated comment line in RandomMergePolicy.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1717660 13f79535-47bb-0310-9956-ffa450edef68
2015-12-02 18:15:51 +00:00
Anshum Gupta 6caaa0c454 SOLR-8330: Standardize and fix logger creation and usage so that they aren't shared across source files.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1717590 13f79535-47bb-0310-9956-ffa450edef68
2015-12-02 09:22:22 +00:00
Christine Poerschke c4404701b5 ${message}
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1717526 13f79535-47bb-0310-9956-ffa450edef68
2015-12-01 20:52:57 +00:00
Shalin Shekhar Mangar c10dd7daa7 SOLR-7339: Upgrade Jetty to v9.3.6.v20151106
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1717377 13f79535-47bb-0310-9956-ffa450edef68
2015-12-01 04:21:34 +00:00
Alan Woodward e5be9136a6 SOLR-8336: CoreDescriptor takes a Path for its instance dir, rather than a String
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1717254 13f79535-47bb-0310-9956-ffa450edef68
2015-11-30 14:02:45 +00:00
David Wayne Smiley 0442747f05 LUCENE-6900: Grouping sortWithinGroup shouldn't be null; use Sort.RELEVANCE.
Enhanced related Solr side a bit.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1716569 13f79535-47bb-0310-9956-ffa450edef68
2015-11-26 04:56:47 +00:00