599 Commits

Author SHA1 Message Date
Noble Paul
e6dfb76c98 SOLR-9717: Refactor '/export' to not hardcode the JSON output and to use an API 2016-11-08 13:45:59 +05:30
David Smiley
a3c701e2f6 SOLR-9621: Remove several Guava & Apache Commons calls in favor of java 8 alternatives.
(cherry picked from commit 2e21511)
2016-10-28 17:30:19 -04:00
Alan Woodward
14cfb82bf7 SOLR-9132: Cut over some collections API and recovery tests 2016-10-28 10:37:59 +01:00
yonik
bbc3189473 SOLR-9654: tests: fix overrequest test by fixing doc->shard mapping 2016-10-26 18:43:50 -04:00
Noble Paul
265d425b00 SOLR-9506: cache IndexFingerprint for each segment 2016-10-24 16:46:39 +05:30
Alan Woodward
df09867ccc SOLR-9634: Deprecate create/deleteCollection methods on MiniSolrCloudCluster 2016-10-18 12:32:42 +01:00
Alan Woodward
d6dc1321a9 SOLR-9632: Add deleteAllCollections method to MiniSolrCloudCluster 2016-10-18 12:32:10 +01:00
Alan Woodward
b58ccc3906 SOLR-9604,SOLR-9608: Ensure SSL connections are re-used.
Fix ConnectionReuseTest. Add coverage for all SolrClients.
Remove explicit cacheKey for HttpRequestContext, make it singleton.
2016-10-07 12:03:07 +03:00
Alan Woodward
23485c3377 SOLR-9132: Migrate some more tests 2016-10-04 11:13:58 +01:00
Mikhail Khludnev
cc1841cbb7 SOLR-9554: adding a test for concurrent schema upgrade in cloud. 2016-10-02 21:33:01 +03:00
Alan Woodward
11a98a89fd SOLR-9132: Cut over DeleteReplica tests
Also fixes some bugs in CollectionAdminRequest.DeleteReplica from SOLR-9319
2016-09-26 13:15:05 +01:00
Alan Woodward
45fcd396f7 SOLR-9500: Add LogLevel annotation for test-specific logging changes 2016-09-26 09:40:28 +01:00
Shalin Shekhar Mangar
2124f1250c SOLR-6090: Remove unreachable printLayout usage in cloud tests
(cherry picked from commit 3eb0f7c)
2016-09-23 18:10:51 +05:30
Alan Woodward
36b39a2c41 SOLR-9544: Give ObjectReleaseTracker more time for async closing objects 2016-09-22 14:01:12 +01:00
Alan Woodward
a4293ce7c4 Revert "SOLR-9512: CloudSolrClient tries other replicas if a cached leader is down"
This reverts commit f96017d9e10c665e7ab6b9161f2af08efc491946.
2016-09-20 14:34:44 +01:00
Alan Woodward
f96017d9e1 SOLR-9512: CloudSolrClient tries other replicas if a cached leader is down 2016-09-19 15:30:48 +01:00
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 09372acb660d21b6da01f6ea65f00493126ee32b)

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 76063648ae05a935459f2ea5ed53c4df1caa713d)
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 ac0e73a521a66fc37638e884ab386b0173f79b0f)
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 a5586d29b23f7d032e6d8f0cf8758e56b09e0208)

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 c0a287cb7601d691a33f9f0e155578e1575ab454)
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