Commit Graph

6808 Commits

Author SHA1 Message Date
Mikhail Khludnev fa55f0c2f2 SOLR-9510: introducting {!filter param=$fq excludeTags=t,q}foo:bar, also adding
filters and excludeTags local params into {!parent} and {!child}
2018-03-11 08:25:05 +03:00
Cao Manh Dat e926f435d7 SOLR-11702: Remove noise of exception messages on failed to ping leader 2018-03-11 07:05:46 +07:00
Erick Erickson f1f929b15a SOLR-12028: BadApple and AwaitsFix annotations usage 2018-03-10 10:58:15 -08:00
Jason Gerlowski 971bd26df6 SOLR-11629: Add new CloudSolrClient.Builder ctors
CloudSolrClient.Builder can be pointed at a Solr cluster in two ways: a
ZK connection string, or one or more Solr base URLs.  One of these two
values must be provided to create a working CloudSolrClient.

Since these values are required, this commit introduces two new ctors,
one for each means of CloudSolrClient setup.  It deprecates the existing
no-arg CloudSolrClient ctor.

Together, these changes make it clearer to our users that these options
are required (and mutually exclusive).
2018-03-10 10:45:43 -05:00
Shalin Shekhar Mangar e47bf8b63a SOLR-12011: Remove unused imports 2018-03-10 06:23:29 +05:30
Shalin Shekhar Mangar f0d46ead45 SOLR-12067: Increase autoAddReplicas default 30 second wait time to 120 seconds 2018-03-10 05:59:16 +05:30
Cao Manh Dat 05d4a9320c SOLR-12051: Adding error log in case of data loss 2018-03-10 07:20:05 +07:00
Andrzej Bialecki 78097d2098 SOLR-12075: BadApple TestLargeCluster until the issues can be resolved. 2018-03-09 21:25:37 +01:00
Cao Manh Dat 423a8cf69c SOLR-12051: Election timeout when no replicas are qualified to become leader 2018-03-09 18:19:09 +07:00
Cao Manh Dat dae572819b SOLR-11702: Fix precommit, only throw error to client if the replica is not in the same shard as leader 2018-03-09 10:34:59 +07:00
David Smiley 588e19eda1 SOLR-11976: TokenizerChain.normalize was only considering the first MultiTermAwareComponent 2018-03-08 22:30:39 -05:00
Andrzej Bialecki b17052e852 SOLR-11670: Implement a periodic house-keeping task. 2018-03-08 14:31:40 +01:00
David Smiley ee1c742c19 SOLR-11722: Merge CREATEDROUTEDALIAS command into CREATEALIAS. Only
an API & docs change; the implementation was already there.
2018-03-07 15:16:02 -05:00
Tomas Fernandez Lobbe 23765a9ff9 SOLR-12028, SOLR-7736: testPublishAndWaitForDownStates always fails 2018-03-07 11:04:14 -08:00
Shalin Shekhar Mangar 498927d032 SOLR-11066: Use timeZone.toZoneId instead of ZoneId.of(timeZoneString) because the latter cannot lookup short aliases 2018-03-07 17:22:36 +05:30
Shalin Shekhar Mangar 1b8651db4f SOLR-12011: Remove unused import 2018-03-07 11:23:56 +05:30
Cao Manh Dat 3c153ccd0e SOLR-12011: FORCELEADER should also remove recovering flag of a replica so it can win the election 2018-03-07 09:09:52 +07:00
Shalin Shekhar Mangar 8b9a1adbae SOLR-11066: Renamed the internal ScheduledTriggers.ScheduledTrigger inner class to TriggerWrapper to avoid confusion with the ScheduledTrigger added in this issue 2018-03-07 00:26:03 +05:30
Shalin Shekhar Mangar 9cec2221a6 SOLR-11066: Added examples of startTime in ref guide. Added null check for processor and code comments to explain skipped events and lastRunAt initialization. Moved default preferredOp value to ComputePlanAction. Extracted a constant. 2018-03-06 21:27:05 +05:30
Cao Manh Dat 4bdc99a465 SOLR-12047: Increase checkStateInZk timeout 2018-03-06 08:51:38 +07:00
Tomas Fernandez Lobbe c1a44251fe SOLR-11960: Add collection-level properties
Similar to cluster properties, but apply to a single collection.
2018-03-05 16:59:56 -08:00
Tomas Fernandez Lobbe c4c391ad15 SOLR-12020: Remove unused import 2018-03-05 16:56:33 -08:00
yonik fc2fd1dc25 SOLR-12020: fix refinement of terms facet on date field (don't use Date.toString) 2018-03-05 11:03:48 -05:00
Noble Paul 50a04c077f SOLR-11267: Add support for "add-distinct" atomic update operation 2018-03-05 21:37:10 +11:00
Cao Manh Dat 27eb6ba062 SOLR-12011: Remove FORCEPREPAREFORLEADERSHIP 2018-03-05 16:33:45 +07:00
Shalin Shekhar Mangar 3344306473 SOLR-11066: Fix TriggerIntegrationTest.testScheduledTrigger by ensuring number of jetties is always 2 before start of test 2018-03-05 14:27:10 +05:30
Cao Manh Dat 9de4225e9a SOLR-12011: Consistence problem when in-sync replicas are DOWN 2018-03-04 12:57:05 +07:00
Erick ad7e94afb2 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-03-03 21:42:14 -08:00
Shalin Shekhar Mangar 78f11d05ac SOLR-11066: Marking the test as AwaitsFix until the test failures on jenkins are investigated and fixed 2018-03-04 00:27:16 +05:30
Mark Miller 18edca0fb2 SOLR-12053: RestartWhileUpdatingTest and HdfsRestartWhileUpdatingTest are incredibly slow. 2018-03-03 10:09:09 -06:00
Shalin Shekhar Mangar 71fc9cd43d SOLR-11066: Implement a scheduled autoscaling trigger that runs on a fixed interval beginning with a given start time 2018-03-03 01:06:21 +05:30
Cao Manh Dat f1ce5419ee SOLR-11702: Remove old LIR call in SolrCmdDistributor and let DistributedUpdateProcessor handle it on finish() 2018-03-02 14:29:18 +07:00
noble 23aee00213 SOLR-12031: Refactor Policy framework to make simulated changes affect more than a single node
SOLR-12050: UTILIZENODE does not enforce policy rules
2018-03-02 17:01:22 +11:00
Chris Hostetter 0424d9c06b SOLR-12050: mark TestUtilizeNode as AwaitsFix as well as adding additional logging/assertions to help see what the bug is 2018-03-01 17:06:26 -07:00
Erick Erickson b732f06775 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-03-01 11:58:58 -08:00
Chris Hostetter 60984536b0 fix leaked SolrClient in SSLMigrationTest
this doesn't garuntee that this test will pass, but it eliminates the garuntee that it will fail
2018-02-28 15:26:39 -07:00
Andrzej Bialecki b26d67e722 SOLR-11407: Explicitly create policy violations to force non-empty plan. 2018-02-28 21:29:32 +01:00
David Smiley ef989124f3 SOLR-11769: optimize useFilterForSortedQuery=true when no filter queries 2018-02-28 12:38:20 -05:00
Andrzej Bialecki 1485b7a4d7 SOLR-12031: Fix a confusion in index size units in the simulator framework. 2018-02-28 13:18:27 +01:00
Andrzej Bialecki eb80ca968e SOLR-11407: Wait for collections to recover before starting the test. 2018-02-28 13:12:51 +01:00
Erick Erickson 1fe45606b9 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-02-26 20:35:12 -08:00
noble 1fc3ca0cbb SOLR-11067: AwaitsFix. The test fails often as the target node some times is same as the source node 2018-02-27 11:00:04 +11:00
Chris Hostetter 8760e3225f SOLR-11067: improve tests logging 2018-02-26 16:37:24 -07:00
Joel Bernstein 50c17b92bd SOLR-11923: Add bicubicSpline Stream Evaluator 2018-02-26 15:18:11 -05:00
Shalin Shekhar Mangar e08eac421a SOLR-11201: Fix bad assumptions made in testMetricTrigger 2018-02-26 22:22:02 +05:30
Andrzej Bialecki a2eb7f3880 SOLR-11407: Use all details of the query response in the handler response.
More consistency in debug info from the test.
2018-02-26 13:56:55 +01:00
Andrzej Bialecki 86be873915 SOLR-11911: Add more details to failure logs, modify the test to create a single event
that contains all affected nodes.
2018-02-26 10:56:22 +01:00
Erick Erickson 6164643882 SOLR-10809: Get precommit lint warnings out of Solr core 2018-02-25 22:13:47 -08:00
Shalin Shekhar Mangar 6f2d99e574 SOLR-10720: Aggressive removal of a collection breaks cluster status API 2018-02-26 11:22:38 +05:30
Ishan Chattopadhyaya b212f2e9b7 SOLR-8327: Cluster state caching for nodes not hosting the collection 2018-02-25 11:54:33 +05:30
Erick bd3f30b9a9 SOLR-12017: Remove BadApple and AwaitsFix annotations that link to closed JIRAs 2018-02-23 12:49:26 -08:00
Andrzej Bialecki 364b680afa SOLR-11407: Increase the imbalance of the cluster to increase the pressure to
relocate replicas - in some test runs the policy decided not to move any replicas.
2018-02-22 17:43:50 +01:00
Shalin Shekhar Mangar 4446545de6 Revert "SOLR-11066: Implement a scheduled autoscaling trigger that runs on a fixed interval beginning with a given start time"
This reverts commit 137e647
2018-02-22 20:02:35 +05:30
Jason Gerlowski 7a17f5a36f SOLR-11525: Add cloud/standalone check to 'AssertTool'
The 'bin/solr assert' tool provides the capability to programmatically
test basic assertions about a running Solr instance.  Is it running on
a particular host or port?  Is it running as a specified user?  etc.

This commit adds a new type of check: the mode Solr is running in
(standalone vs. cloud).
2018-02-22 06:44:37 -05:00
Shalin Shekhar Mangar 137e647f2c SOLR-11066: Implement a scheduled autoscaling trigger that runs on a fixed interval beginning with a given start time 2018-02-22 09:59:23 +05:30
Andrzej Bialecki 82a9984071 SOLR-11912: Clean up left-over collections and defaults between tests. 2018-02-21 17:36:38 +01:00
Varun Thacker a9f0272380 SOLR-12006: Add a '*_t' and '*_t_sort' dynamic field for single valued text fields 2018-02-20 17:31:00 -08:00
Andrzej Bialecki 26e7af1015 SOLR-11407: Make sure that the .system collection is not affected by cluster changes.
Wait specifically for listeners to run.
2018-02-20 20:15:32 +01:00
Joel Bernstein e746d7a001 SOLR-11588: Add matrixMult Stream Evaluator to support matrix multiplication 2018-02-19 19:27:25 -05:00
Jason Gerlowski b4f8cd7ea6 SOLR-11108: Shorten/improve _default-configset msg
The bin/solr scripts print a warning message when a user creates a
collection that makes use of the default config (which has settings
not recommended for production).

While helpful, this warning was a little too noisy.  It also suggested
users resolve the issue with a provided curl command, but bin/solr is
also capable of performing the same action.

This commit cleans up the error message a bit.
2018-02-17 19:08:26 -05:00
Joel Bernstein 6c0f9ac8c7 SOLR-11689: Add l1norm, l2norm and linfnorm Stream Evaluators 2018-02-16 19:07:37 -05:00
Chris Hostetter ee51b658ec SOLR-11988: Fix exists() method in EphemeralDirectoryFactory/MockDirectoryFactory to prevent false positives 2018-02-16 11:28:09 -07:00
Andrzej Bialecki 32f3570f08 SOLR-11912: Fix precommit. 2018-02-16 19:11:41 +01:00
Andrzej Bialecki 26a037636d SOLR-11912: Improve TriggerIntegrationTest to avoid side-effects between tests (spurious autoscaling events).
Add a convenience method to DistribStateManager to remove data recursively.
2018-02-16 11:28:57 +01:00
Tomas Fernandez Lobbe 250e5b2aba SOLR-11739: Remove cast no longer needed 2018-02-15 16:22:28 -08:00
Tomas Fernandez Lobbe 61ea8f60b1 SOLR-11739: Don't accept duplicate async IDs in collection API operations 2018-02-15 16:14:16 -08:00
Adrien Grand 4fb7e3d02c LUCENE-8135: Implement block-max WAND. 2018-02-15 15:13:58 +01:00
Adrien Grand 890e8a51f8 LUCENE-8134: Index options are no longer automatically downgraded. 2018-02-15 15:13:58 +01:00
Andrzej Bialecki 0231d5cdba SOLR-11899 Fix a race condition when testing removal of ephemeral nodes. 2018-02-13 17:58:45 +01:00
Jason Gerlowski 9040307787 SOLR-11950: Parse CLUSTERSTATUS 'shard' param as comma-delim list
The documentation for the 'shard' parameter on CLUSTERSTATUS requests,
indicates that users should be able to provide a comma-separated list
of shards they are interested in.  However, prior to this commit the
parameter value was parsed as a single shard name, causing requests
with more than one shard to return as a 400.

This commit changes this behavior to correctly parse the param value.
2018-02-13 06:54:39 -05:00
Adrien Grand 899966b481 LUCENE-8152: Consistently use advanceExact over advance. 2018-02-13 10:40:46 +01:00
Dawid Weiss 8b3ae1be6a Typo corrected. 2018-02-13 08:51:49 +01:00
Erick Erickson b5bf3b9c38 SOLR-11898: ConcurrentModificationException when calling org.apache.solr.core.SolrInfoBean.getMetricsSnapshot 2018-02-12 19:35:11 -08:00
Chris Hostetter 034677d5ca SOLR-11978: use new SortableTextField in _default and sample_techproducts_configs configsets 2018-02-12 15:14:44 -07:00
Adrien Grand b3ea634d7d SOLR-11974: Disable test. 2018-02-12 20:32:58 +01:00
Christine Poerschke af5acc898e LUCENE-8167: fix some incompleteEnumSwitch warnings in solr/core 2018-02-12 17:43:28 +00:00
Uwe Schindler 3019913c85 SOLR-10338: Remove test class / command line program that was only used during development 2018-02-12 17:26:06 +01:00
Adrien Grand aa157f1833 LUCENE-8152: Improve consumption of doc-value iterators. 2018-02-12 14:49:49 +01:00
Ishan Chattopadhyaya 1a4627d385 SOLR-10261: Failure in replica didn't cause LIR; now it does 2018-02-10 21:38:54 +05:30
Ishan Chattopadhyaya 1f3d971a75 SOLR-3089: RequestBuilder now exposes isDistrib() method 2018-02-10 19:48:11 +05:30
Christine Poerschke b6f683d30b SOLR-11349: Remove deprecated ResponseBuilder.getQueryCommand() method. 2018-02-09 16:50:34 +00:00
Christine Poerschke d39751a754 SOLR-11349: Rename ResponseBuilder's getQueryCommand to createQueryCommand. 2018-02-09 16:50:28 +00:00
David Smiley 5a26381424 SOLR-11722: Rename max-future-ms to maxFutureMs 2018-02-09 11:24:58 -05:00
David Smiley 1527ce57d4 SOLR-11925: Rename RoutedAliasCreateCollectionCmd as MaintainRoutedAliasCmd (internal Cmd) 2018-02-08 23:16:12 -05:00
David Smiley 02b5172ea2 SOLR-11925: Time Routed Aliases: router.autoDeleteAge feature 2018-02-08 23:12:09 -05:00
Mikhail Khludnev c508068240 SOLR-11459: Fix in-place nonexistent doc update following existing doc update 2018-02-06 20:00:29 +03:00
David Smiley 812d400807 SOLR-11722 SOLR-11617: Alias tests: Ensure zkStateReader's view is up to date before acting 2018-02-05 23:45:47 -05:00
Andrzej Bialecki 8d27412e5a SOLR-11778 Add per-stage RequestHandler metrics. 2018-02-02 13:02:43 +01:00
Chris Hostetter 95122e1448 SOLR-11916: new SortableTextField which supports analysis/searching just like TextField, but also sorting/faceting just like StrField 2018-02-01 10:40:29 -07:00
Andrzej Bialecki 8418081c4a Revert "SOLR-11882: SolrMetric registries retain references to SolrCores when closed"
This reverts commit f0509c19c1.
2018-02-01 18:14:13 +01:00
David Smiley f0854ce11f SOLR-11722: Dial down threads in ConcurrentCreateRoutedAliasTest 2018-02-01 12:06:53 -05:00
Adrien Grand f410df8113 LUCENE-4198: Give codecs the opportunity to index impacts. 2018-01-31 14:54:52 +01:00
Noble Paul 3ad61d2f9c SOLR-11067: REPLACENODE should identify appropriate nodes if targetNode is not provided 2018-01-31 21:49:02 +11:00
Tomas Fernandez Lobbe b310514bec SOLR-11782: Use await(millis, TimeUnit.MILLIS) in LatchWatcher.await 2018-01-30 14:28:27 -08:00
Christine Poerschke abf3d11332 SOLR-11480: Remove unused "Admin Extra" files and mentions. (Eric Pugh, Christine Poerschke) 2018-01-30 12:39:44 +00:00
Christine Poerschke a296092341 SOLR-11926: correct/extend TermsComponentTest.testUnlimitedRows logic 2018-01-30 12:33:04 +00:00
Noble Paul e2a5d46b9c SOLR-11879: moved the peek() call inside the for loop 2018-01-30 18:25:48 +11:00
Cao Manh Dat c56d774eb6 SOLR-11661: New HDFS collection reuses unremoved data from a deleted HDFS collection with same name causes inconsistent view of documents 2018-01-30 11:30:24 +07:00
markrmiller 13773755b8 SOLR-11873: Use time based expiration cache in all necessary places in HdfsDirectoryFactory. 2018-01-29 11:00:53 -06:00
Andrzej Bialecki d3d7b0034d SOLR-11376: Support computing plans for only specific collections. 2018-01-29 12:16:16 +01:00