Commit Graph

583 Commits

Author SHA1 Message Date
Alan Woodward 66a51b76b3 SOLR-9344: Allow multiple HttpClientConfigurers to be set on HttpClientUtil 2016-09-12 09:08:35 +01:00
Alan Woodward 5b0bf4ab74 SOLR-9344: Move BasicAuthIntegrationTest to SolrCloudTestCase 2016-09-07 09:17:52 +01:00
Alan Woodward 53c37dc9a5 SOLR-9474: MiniSolrCloudCluster restarts jetties using different ports by default 2016-09-06 13:34:33 +01:00
Alan Woodward 54300e4a9b SOLR-9469: Allow JettySolrRunner to restart using a different port 2016-09-06 13:34:26 +01:00
Alan Woodward d8a2600cc6 SOLR-8961: Add a test-the-tests module for solr-test-framework 2016-09-06 13:34:19 +01:00
yonik 5d29fd87f1 SOLR-9432: JSON Facet refactoring to support refinement 2016-08-23 12:55:32 -04:00
Shalin Shekhar Mangar bb7742ebc7 SOLR-9290: TCP-connections in CLOSE_WAIT spike during heavy indexing and do not decrease 2016-07-15 12:23:49 +05:30
Christine Poerschke 85c8f22ca9 SOLR-9090: Add directUpdatesToLeadersOnly flag to solrj CloudSolrClient. (Marvin Justice, Christine Poerschke) 2016-07-13 14:19:26 +01:00
Erick 90b572bce6 Merge remote-tracking branch 'origin/branch_6x' into branch_6x
# Conflicts:
#	solr/CHANGES.txt
2016-07-06 21:03:05 -07:00
Erick 602a72ddad SOLR-9277: Clean up some more remnants of supporting old and new style solr.xml in tests
(cherry picked from commit 7743718)
2016-07-06 21:02:20 -07:00
Shalin Shekhar Mangar a942de68fc SOLR-9207: PeerSync recovery failes if number of updates requested is high. A new useRangeVersions config option is introduced (defaults to true) to send version ranges instead of individual versions for peer sync.
(cherry picked from commit 380c5a6)
2016-07-07 02:35:20 +05:30
Mike McCandless 45d2d2e7d3 LUCENE-6171: pass the StandardOpenOption.CREATE_NEW so the filesystem ensures Lucene really is write-once 2016-06-14 15:16:22 -04:00
Adrien Grand 6d1bb14077 LUCENE-7319: Remove more unused imports so that precommit passes. 2016-06-13 15:45:54 +02:00
Christine Poerschke 21bc7ef104 LUCENE-7319: remove unused imports 2016-06-13 12:35:49 +01:00
Noble Paul ff6475c3a7 SOLR-8744: Minimize the impact on ZK when there are a lot of blocked tasks 2016-06-12 13:13:40 +05:30
Steve Rowe ded16f8f18 SOLR-9107: When creating a randomized SSL test config, 100% effective odds of using SSL and/or client auth should never be trumped by chance. 2016-06-08 14:43:19 -04:00
Chris Hostetter 8481d6f47f SOLR-9107: new @RandomizeSSL annotation for more fine grained control of SSL testing
(cherry picked from commit 09372acb66)

Conflicts:
	solr/CHANGES.txt
2016-06-03 11:12:42 -07:00
Alan Woodward ec40824bfd SOLR-9107: Make SolrTestCaseJ4.beforeClass() / .afterClass() public 2016-06-03 14:32:58 +01:00
Alan Woodward f1e870c016 SOLR-9132: Move some tests to SolrCloudTestBase 2016-05-19 16:59:08 +01:00
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