Commit Graph

2324 Commits

Author SHA1 Message Date
Joel Bernstein 17fca051c5 SOLR-13046: Suppress SSL for StreamingTest 2018-12-07 09:19:40 -05:00
Jason Gerlowski a5fb6f8adc Add 'prelim_sort' helper to SolrJ's TermsFacetMap 2018-12-04 14:29:29 -05:00
markrmiller 33c40a8da4 SOLR-13027: Change retries to work across JVM impls properly by looking for an IOException. 2018-12-01 00:26:15 -06:00
markrmiller d8f482f5fb SOLR-13030: Update executor usage to work correctly with Java 11 and update Mockito & HttpComponents to work with Java 11 and fix get remote info retry to work across jvms better. 2018-12-01 00:26:02 -06:00
markrmiller 75b1831967 SOLR-12801: Make massive improvements to the tests.
SOLR-12804: Remove static modifier from Overseer queue access.

SOLR-12896: Introduce more checks for shutdown and closed to improve clean close and shutdown. (Partial)

SOLR-12897: Introduce AlreadyClosedException to clean up silly close / shutdown logging. (Partial)

SOLR-12898: Replace cluster state polling with ZkStateReader#waitFor. (Partial)

SOLR-12923: The new AutoScaling tests are way too flaky and need special attention. (Partial)

SOLR-12932: ant test (without badapples=false) should pass easily for developers. (Partial)

SOLR-12933: Fix SolrCloud distributed commit.
2018-11-29 11:58:51 -06:00
Joel Bernstein c2cac88770 SOLR-12984: The search Streaming Expression should properly support and push down paging when using the /select handler 2018-11-27 11:22:02 -05:00
Moshe a346ba0d3c SOLR-5211: Always populate _root_ (if defined).
And, small refactor: Clarified how _version_ is transferred from root to children.
2018-11-25 21:47:49 -05:00
Noble Paul 492c3440de SOLR-13006: ZkNodeProps to be able to load from both javabin and JSON 2018-11-21 18:20:03 +11:00
Noble Paul 25bca6f165 SOLR-12992: When using binary format, ExportWriter to directly copy BytesRef instead of creating new String 2018-11-20 14:58:32 +11:00
Jason Gerlowski d17c6d8897 SOLR-12981: Introduce SolrJ type for JSON facet response parsing
Recent JIRA's (SOLR-12947, SOLR-12965) have added support making it
easier to compose JSON query/faceting requests using SolrJ.  But neither
made parsing the responses to these queries any easier.

This commit introduces NestableJsonFacet (along with several companion
types) which are Java representations of the JSON faceting response.
They can be accessed via the new QueryResponse method:
`getJsonFacetingResponse()`.
2018-11-17 17:14:40 -05:00
Erick Erickson 763e64260f SOLR-12881: Remove unneeded import statements 2018-11-14 17:48:15 -08:00
Noble Paul e81dd4e870 SOLR-12977: fixed bug 2018-11-13 00:10:04 +11:00
Noble Paul cd1e829732 SOLR-12978: In autoscaling NPE thrown for nodes where value is absent 2018-11-12 18:53:16 +11:00
Noble Paul 605c3f6f1a SOLR-12977: Autoscaling tries to fetch metrics from dead nodes 2018-11-12 18:39:05 +11:00
Jason Gerlowski 52998fa50e SOLR-12965: Add facet support to JsonQueryRequest 2018-11-10 21:44:25 -05:00
Jason Gerlowski 4410ef941a SOLR-12947: Misc JsonQueryRequest code cleanup 2018-11-09 13:15:08 -05:00
Chris Hostetter 77a4bfaa90 SOLR-12962: Added a new 'uninvertible' option for fields and fieldtypes. This defaults to 'true' for backcompat allowing a FieldCache to be built for indexed fields as needed, but users are encouraged to set this to false (using docValues as needed) to reduce the risk of large fluxuations in heap size due to unexpected attempts to sort/facet/function on non-docValue fields. 2018-11-09 08:30:04 -07:00
Jason Gerlowski 1b084db901 SOLR-12947: Add MapWriter compatibility to JsonQueryRequest
JsonQueryRequest had `setQuery` methods that took in a query either as a
String or as a Map.  But no such overload for MapWriter, a SolrJ
interface used to transmit Maps via "push writing" over the wire.  This
commit adds an overload taking this type, so that users can specify
their queries this way as well.

This commit also changes JsonQueryRequest writes out the request, to
ensure it uses "push writing" in non-MapWriter cases as well.
2018-11-07 21:40:06 -05:00
Joel Bernstein 2d0e565c62 SOLR-12975: Add ltrim and rtrim Stream Evaluators 2018-11-07 20:47:07 -05:00
Gus Heck 53482e510c SOLR-12938 - fix test case for handling of bogus collection names
that was failing when HttpClusterStateProvider is used instead of
ZkClusterStateProvider
2018-11-07 20:05:32 -05:00
Joel Bernstein 259925d12f SOLR-12795: Require bucketSorts 2018-11-07 08:58:57 -05:00
Joel Bernstein 80efc23999 SOLR-12971: Add pivot Stream Evaluator to pivot facet co-occurrence counts into a matrix 2018-11-07 08:14:17 -05:00
Joel Bernstein b230543b47 SOLR-12795: Fix precommit 2018-11-06 11:53:00 -05:00
Joel Bernstein 3d94213110 SOLR-12795: Introduce 'rows' and 'offset' parameter in FacetStream 2018-11-06 11:23:40 -05:00
Jason Gerlowski 2d95b740db SOLR-12947: Add SolrJ helper for making JSON DSL requests
The JSON request API is great, but it's hard to use from SolrJ.  This
commit adds 'JsonQueryRequest', which makes it much easier to write
JSON API requests in SolrJ applications.
2018-11-06 07:34:53 -05:00
Noble Paul 08fcce4c98 SOLR-11997: Suggestions API/UI should show an entry where a violation could not be resolved 2018-11-06 22:27:26 +11:00
Gus Heck 45b772f4a9 SOLR-12938 - Cluster status now returns results for aliases instead of
throwing an exception
2018-11-04 12:01:51 -05:00
Noble Paul eb359ca079 SOLR-12023: Autoscaling policy engine shuffles replicas needlessly 2018-11-04 19:23:56 +11:00
Andrzej Bialecki 3ed64375ef SOLR-12942: Add an option in IndexSizeTrigger to select the split shard method. 2018-10-31 18:47:34 +01:00
Joel Bernstein 856e28d8cf SOLR-11572: Add recip Stream Evaluator to support reciprocal transformations 2018-10-30 09:42:24 -04:00
Joel Bernstein ac1925045d SOLR-12936: Allow percentiles Stream Evaluator to accept an array of percentiles to calculate 2018-10-29 16:29:04 -04:00
Joel Bernstein e618e831d3 SOLR-12935: Suppress SSL for StreamExpressionTest and StreamDecoratorTest 2018-10-29 13:49:31 -04:00
Noble Paul a298802516 SOLR-12868: test was making wrong assumption 2018-10-27 11:11:54 +11:00
Marvin Bredal Lillehaug 6c419454a2 SOLR-7557: Fix parsing of child documents using queryAndStreamResponse 2018-10-26 14:59:31 +02:00
Noble Paul f33be7a172 SOLR-12868: Request forwarding for v2 API is broken 2018-10-26 12:50:45 +11:00
Christine Poerschke c277674f0e SOLR-12873: Replace few remaining occurrences of LUCENE_CURRENT with LATEST for luceneMatchVersion. 2018-10-24 19:28:12 +01:00
David Smiley 3e89b7a771 SOLR-12754: New hl.weightMatches for UnifiedHighlighter WEIGHT_MATCHES
(defaults to true in master/8)
2018-10-23 13:28:10 -04:00
noble 576d28f643 SOLR-11522: Moved the _get methods to a separate interafce and keep MapWriter clean 2018-10-23 12:35:23 +11:00
Anshum Gupta d799fd53c7 SOLR-5004: Allow a shard to be split into 'n' sub-shards using the collections API 2018-10-22 15:01:24 -07:00
Joel Bernstein fcaea07f3c SOLR-12829: Add plist (parallel list) Streaming Expression 2018-10-22 15:20:13 -04:00
Noble Paul c31a95d261 SOLR-12846: Added support for "host" variable in autoscaling policy rules 2018-10-23 00:03:59 +11:00
Noble Paul 5de6332209 SOLR-12892: MapWriter to use CharSequence instead of String 2018-10-22 11:14:41 +11:00
Andrew Lundgren 1a8188d92b SOLR-10981: Support for stream.url or stream.file pointing to gzipped data 2018-10-18 19:53:21 -04:00
Jason Gerlowski e6f6f352cf SOLR-12856: Small improvements to SolrJ javadocs 2018-10-17 19:10:56 -04:00
Christine Poerschke 95af8d6ac2 SOLR-12876: remove @BadApple from ShardParamsTest.testGetShardsTolerantAsBool 2018-10-16 10:52:51 -04:00
Christine Poerschke 7fa19d2676 SOLR-12876: upon failure report exception message in ShardParamsTest.testGetShardsTolerantAsBool 2018-10-16 10:52:11 -04:00
Noble Paul f1a30bfb00 SOLR-12792: extract test data into separate files in autoscaling tests 2018-10-16 19:11:08 +11:00
Shalin Shekhar Mangar aa0a5289e6 SOLR-12739: Clear all collections in TestCollectionStateWatchers setup so that the collections created by test methods are spread evenly in the cluster. 2018-10-16 12:14:22 +05:30
Noble Paul 9c7b8564d8 SOLR-12806: use autoscaling policies with strict=false to prioritize node allocation 2018-10-16 16:56:51 +11:00
Joel Bernstein 73a413cd85 SOLR-12862: Fix TestLang 2018-10-15 15:47:03 -04:00
Joel Bernstein 6c0fbe5a9d SOLR-12862: Add log10 Stream Evaluator and allow the pow Stream Evaluator to accept a vector of exponents 2018-10-15 15:47:03 -04:00
Christine Poerschke 1ccd555862 Fix couple of typos. 2018-10-15 15:08:17 -04:00
Erick Erickson 6c5df58b5a SOLR-12028: BadApple and AwaitsFix annotations usage 2018-10-14 21:13:33 -04:00
Jason Gerlowski 6d1b2e2f38 SOLR-8808: Add null/empty check to SolrClient.deleteByIds 2018-10-13 22:15:36 -04:00
Jason Gerlowski 42ac07d11b SOLR-12565: Add SolrJ snippet to 'Using ZooKeeper to manage config' ref-guide page 2018-10-11 14:30:43 -04:00
Joel Bernstein a0bb501772 SOLR-12851: Improvements and fixes to let and select Streaming Expressions 2018-10-11 10:43:57 -04:00
Shalin Shekhar Mangar 9f34a7c776 SOLR-12739: Fix failures in AutoAddReplicasIntegrationTest and its sub-class.
This test too makes assumptions about how replicas are placed. In the legacy assignment strategy, the replica of a given collection are spread equally across all nodes but with the new policy based strategy, all cores across collections are spread out. Therefore the assumptions in this test were wrong. I've changed this test to use the legacy assignment policy because testing the autoAddReplicas feature doesn't have to depend on new replica assignment strategies. This change also fixes a bug in Assign which used "collection" key instead of "cluster" to figure out which strategy to use.
2018-10-10 15:38:52 +05:30
Shalin Shekhar Mangar a66a7f3197 SOLR-12739: Fix CloudSolrClientTest.testNonRetryableRequests failures.
The testNonRetryableRequests test makes an assumption that a collection's replicas are equally distributed among all nodes but with the policy engine it is not true. Instead the policy engine spreads out the cores belonging to all collections equally among all nodes. This is fixed by only creating the collection needed by tests in this class just-in-time.
2018-10-10 13:12:26 +05:30
Noble Paul 3629e76011 SOLR-12843: precommit errors 2018-10-10 15:38:20 +11:00
Steve Rowe 8d205ecd1c SOLR-12843: fix precommit 2018-10-09 17:42:41 -04:00
Noble Paul a52d47a1a5 SOLR-12843: precommit errors 2018-10-09 23:17:09 +11:00
Noble Paul b4d9b25f44 SOLR-12843: Implement a MultiContentWriter in SolrJ to post multiple files/payload at once 2018-10-09 17:44:40 +11:00
Shalin Shekhar Mangar dbed8bafe6 SOLR-12739: Autoscaling policy framework is now used as the default strategy to select the nodes on which new replicas or replicas of new collections are created.
Previously, the maxShardsPerNode parameter was not allowed on collections when autoscaling policy was configured. Also if an autoscaling policy was configured then the default was to set an unlimited maxShardsPerNode automatically. Now the maxShardsPerNode parameter is always allowed during collection creation and maxShardsPerNode should be set correctly (if required) regardless of whether autoscaling policies are in effect or not. The default value of maxShardsPerNode continues to be 1 as before. It can be set to -1 during collection creation to fall back to the old behavior of unlimited maxShardsPerNode when using autoscaling policy. This patch also fixes PolicyHelper to find the free disk space requirements of a new replica from the leader only if said leader node is alive.
2018-10-09 12:10:28 +05:30
Joel Bernstein 6a702ee16b SOLR-12840: Add pairSort Stream Evaluator 2018-10-08 12:53:23 -04:00
Jason Gerlowski 367bdf7f74 SOLR-12803: Ensure CUSC routes docs to right cores
ConcurrentUpdateSolrClient can batch together many documents when making
an indexing request to Solr.  When adding an update request to the
current batch being made, it checks that the query-parameters of the
docs being added match those already in the batch.  But prior to this
commit it never checked that the collections/cores were the same.

This could result in documents being sent to the wrong collection if the
same client is used to index documents to two different
cores/collections simultaneously.

This commit addresses this problem, ensuring that documents aren't added
to a batch directed at a different core/collection.
2018-10-07 10:08:50 -04:00
Noble Paul 14e6eb2c24 use MapWriter._get() 2018-10-05 08:32:00 +10:00
Jan Høydahl 5fb384c989 SOLR-12814: Metrics history causing "HttpParser URI is too large >8192" when many collections
This fixes #461
2018-10-04 18:32:38 +02:00
Joel Bernstein a0487b04ea SOLR-12811: Add enclosingDisk and associated geometric Stream Evaluators 2018-10-04 10:36:27 -04:00
Shalin Shekhar Mangar 152fd966a7 SOLR-12827: Migrate cluster wide defaults syntax in cluster properties to a nested structure
The cluster wide defaults structure has changed from {collectionDefaults: {nrtReplicas : 2}} to {defaults : {collection : {nrtReplicas : 2}}}.  The old format continues to be supported and can be read from ZK as well as written using the V2 set-obj-property syntax but it is deprecated and will be removed in Solr 9. We recommend that users change their API calls to use the new format going forward.
2018-10-04 16:12:55 +05:30
Shalin Shekhar Mangar 05949a32c9 SOLR-12648: Use the information whether custom preferences were specified in the CloudUtil.usePolicyFramework method instead of comparing directly against default preferences. Comparing against default preferences was wrong because it ignores the case where the user explicitly added the same preferences as the default ones. 2018-10-04 13:26:51 +05:30
Tomas Fernandez Lobbe 46f753d7c6 SOLR-12767: Always include the achieved rf in the response
This commit deprecates the min_rf parameter. Solr now always includes the achieved replication
factor in the update requests (as if min_rf was always specified). Also, reverts the changes
introduced in SOLR-8034, replicas that don't ack an update will have to recover to prevent
inconsistent shards.
2018-10-03 09:40:15 -07:00
Joel Bernstein 751bf7db20 SOLR-12828: Add oscillate Stream Evaluator to support sine wave analysis 2018-10-03 12:25:35 -04:00
Noble Paul d8e40796e2 SOLR-12822: /autoscaling/suggestions to include suggestion to add-replica for lost replicas 2018-10-03 23:37:58 +10:00
Shalin Shekhar Mangar 84683b6aa0 SOLR-12750: Migrate API should lock the collection instead of shard 2018-10-03 16:24:26 +05:30
Shalin Shekhar Mangar 65105aa81b SOLR-12648: Autoscaling framework based replica placement is not used unless a policy is specified or non-empty cluster policy exists 2018-10-03 15:52:51 +05:30
Noble Paul 961d565955 SOLR-12824: NamedList to implement MapWriter interface 2018-10-02 17:34:58 +10:00
Noble Paul 86e00405b0 SOLR-12792: extract out test data 2018-10-01 22:00:09 +10:00
Joel Bernstein 3ece536d81 SOLR-11907: Change error message if ConvexHull2D is not provided as the first parameter 2018-09-30 21:11:23 -04:00
Joel Bernstein 3fc58f4a98 SOLR-11907: Add convexHull and associated geometric Stream Evaluators 2018-09-30 20:56:03 -04:00
Andrzej Bialecki 2369c89634 SOLR-12709: Add TestSimExtremeIndexing for testing simulated large indexing jobs.
Several important improvements to the simulator.
2018-09-27 14:49:43 +02:00
Shalin Shekhar Mangar c587410f99 SOLR-12756: Refactor Assign and extract replica placement strategies out of it.
Now, assignment is done with the help of a builder class instead of calling a method with large number of arguments. The number of special cases that had to be handled have been cut down as well.
2018-09-27 16:15:38 +05:30
Noble Paul a6d39ba859 targetNode is not required for move-replica 2018-09-27 15:27:08 +10:00
Noble Paul e16d7d6993 SOLR-11522: /autoscaling/suggestions now include rebalance options as well even if there are no violations 2018-09-26 00:47:03 +10:00
noble 3f2975c27c SOLR-11522: /autoscaling/suggestions now include rebalance options as well even if there are no violations 2018-09-25 00:34:21 +10:00
Shalin Shekhar Mangar 4bcace571e SOLR-9317: ADDREPLICA command should be able to add more than one replica to a collection,shard at a time.
The API now supports 'nrtReplicas', 'tlogReplicas', 'pullReplicas' parameters as well 'createNodeSet' parameter. As part of this change, the CREATESHARD API now delegates placing replicas entirely to the ADDREPLICA command and uses the new parameters to add all the replicas in one API call.
2018-09-21 15:12:21 +05:30
Erick Erickson dd088fb83e SOLR-12028: BadApple and AwaitsFix annotations usage 2018-09-20 22:31:49 -07:00
Noble Paul 1d604d1b3f SOLR-12792: extract test data into separate files in autoscaling tests 2018-09-21 13:26:52 +10:00
Noble Paul 6adeb5bc44 SOLR-12792: extract test data into separate files in autoscaling tests 2018-09-21 12:55:41 +10:00
Andrzej Bialecki 0dd7b70447 Add toString() to help debugging. 2018-09-20 15:32:42 +02:00
Alan Woodward c0d2975970 LUCENE-8498: Remove LowerCaseTokenizer 2018-09-20 11:57:05 +01:00
Erick Erickson 910a1c0312 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-09-15 21:26:19 -07:00
Varun Thacker d35d2063a8 SOLR-11836: FacetStream works with bucketSizeLimit of -1 which will fetch all the buckets 2018-09-11 10:58:04 -07:00
Noble Paul 8fbeedf27f SOLR-12738: removed unused method 2018-09-10 23:54:16 +10:00
Noble Paul 4f0320c3f3 SOLR-12738: Incorrect Suggestions in autoscaling framework and refactoring 2018-09-10 12:24:24 +10:00
Joel Bernstein f5ce384fb8 SOLR-11943: Change location... to latlon... 2018-09-07 15:42:34 -04:00
Erick Erickson 0dc66c236d SOLR-12028: BadApple and AwaitsFix annotations usage 2018-09-06 20:43:51 -07:00
David Smiley 21d130c3ed SOLR-12357: TRA preemptiveCreateMath option.
Simplified test utility TrackingUpdateProcessorFactory.
Reverted some attempts the TRA used to make in avoiding overseer communication (too complicated).
Closes #433
2018-09-06 23:38:44 -04:00
Joel Bernstein 98611d33a7 SOLR-12749: timeseries() expression missing sum() results for empty buckets 2018-09-06 20:34:26 -04:00
Tomas Fernandez Lobbe 0af269fb49 SOLR-12612: Accept custom keys in cluster properties
Cluster properties restriction of known keys only is relaxed, and now unknown properties starting with "ext."
will be allowed. This allows custom to plugins set their own cluster properties.
2018-09-06 14:07:30 -07:00
Joel Bernstein b8e87a1010 SOLR-11943: Add machine learning functions for location data 2018-09-06 14:01:09 -04:00
Joel Bernstein 0113adebce SOLR-11863: Add knnRegress to RefGuide 2018-09-05 11:20:30 -04:00
David Smiley e4f256be15 SOLR-12722: [child] transformer now processes 'fl' 2018-09-05 10:50:14 -04:00
David Smiley b1b0963947 SOLR-11861 baseConfigSet default 2018-09-04 14:02:46 -04:00
Andrzej Bialecki e0eb7bac02 SOLR-12723: Reduce object creation in HashBasedRouter. 2018-09-04 18:16:00 +02:00
Shalin Shekhar Mangar 34a85014d5 SOLR-12715: NodeAddedTrigger should support adding replicas to new nodes by setting preferredOperation=addreplica
This commit adds support for preferredOperation configuration parameter which defaults to movereplica. Changes ComputePlanAction to add all (collection,shard) pair as hints to AddReplicaSuggester when addreplica is selected as the preferred operation.
2018-09-04 17:05:44 +05:30
Varun Thacker 606e529f93 SOLR-10697: HttpShardHandler now uses a default of 100k as maxConnections (10k previously) and default maxConnectionsPerHost as 100k (20 previously). They are now consisent with the UpdateShardHandler defaults 2018-09-01 07:20:15 -06:00
Steve Rowe 098f475a67 SOLR-12662: Eliminate possible race conditions by moving Type-by-name map construction to Variable.Type, accessible via Variable.Type.get(name) 2018-08-29 11:26:31 -04:00
David Smiley 5a0e7a615a SOLR-12519: child doc transformer can now produce a nested structure.
Fixed SolrDocument's confusion of field-attached child documents in addField()
Fixed AtomicUpdateDocumentMerger's confusion of field-attached child documents in isAtomicUpdate()
2018-08-29 10:02:09 -04:00
Steve Rowe 6430749d46 SOLR-12662: Reproducing TestPolicy failures: NPE and NoClassDefFoundError 2018-08-28 12:42:59 -04:00
Andrzej Bialecki 8d1dce933f SOLR-12392: Fix several bugs in tests and in trigger event serialization.
Add better support for converting MapWriter instances to JSON.
2018-08-28 15:11:18 +02:00
Joel Bernstein 94503719ec SOLR-12702: Add zscores Stream Evaluator 2018-08-27 10:54:36 -04:00
Joel Bernstein b72ff3babb SOLR-12687: Add functions to cache data structures and mathematical models 2018-08-26 19:48:56 -04:00
Erick Erickson aa10cb7802 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-08-23 16:59:58 -07:00
Erick Erickson 8cde1277ec SOLR-12690: Regularize LoggerFactory declarations 2018-08-22 15:26:37 -07:00
Varun Thacker 3e4545219e SOLR-12674: RollupStream should not use the HashQueryParser for 1 worker 2018-08-19 11:59:38 -07:00
Erick Erickson 9f615fbae7 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-08-17 14:40:16 -07:00
Joel Bernstein 52f9cee97b SOLR-12671: Add robust flag to knnRegress Stream Evaluator 2018-08-17 14:26:17 -04:00
Noble Paul 124be4e202 SOLR-12014: Cryptic error message when creating a collection with sharding that violates autoscaling policies 2018-08-18 00:37:50 +10:00
Andrzej Bialecki 9572e129f8 SOLR-12668: Autoscaling trigger listeners should be executed in the order of their creation. 2018-08-16 21:44:10 +02:00
Noble Paul 60257ea276 SOLR-12649: CloudSolrClient retries requests unnecessarily exception from server 2018-08-16 00:26:23 +10:00
Noble Paul a059c944c1 SOLR-12665: Autoscaling policy not being refreshed due to caching 2018-08-16 00:02:27 +10:00
Joel Bernstein a2bbeec27c SOLR-12660: Refine output form and register stream function 2018-08-14 09:50:34 -04:00
Joel Bernstein baf3b8f20c SOLR-12660: Fix TestLang 2018-08-13 18:43:16 -04:00
Joel Bernstein 9d57963f41 SOLR-12660: Add outliers Stream Evaluator to support outlier detection 2018-08-13 15:21:51 -04:00
Noble Paul be4a33938d SOLR-12592: added more validation and tests 2018-08-14 01:11:01 +10:00
Joel Bernstein 17eb8cd14d SOLR-12634: Add gaussfit Stream Evaluator 2018-08-11 14:17:44 -04:00
Joel Bernstein cb1db48252 SOLR-11863: Add knnRegress Stream Evaluator to support nearest neighbor regression 2018-08-08 21:05:21 -04:00
Noble Paul 9b418a4593 SOLR-12618: AutoScalingHandlerTest failing in jenkins 2018-08-09 01:24:03 +10:00
Jan Høydahl 9306922d65 SOLR-7767: "ZK Status" sub menu under "Cloud" tab to see status of zookeeper ensemble 2018-08-08 12:43:19 +02:00
Moshe 38bf976cd4 SOLR-12485: Solr-Update XML format now accepts child documents under a field
thus providing a semantic relationship.  (like allowed for JSON).
Improved XML.java a bit
Closes #430
2018-08-07 13:52:11 -04:00
Joel Bernstein 2ca5a6d12e SOLR-12629: The predict evaluator should work with the polyfit function 2018-08-07 10:31:53 -04:00
Noble Paul ffedb99dc8 SOLR-12592: added javadoc 2018-08-05 11:56:22 +10:00
noble 664187f73a SOLR-12592: added support for range , percentage and decimal 2018-08-04 16:34:23 +10:00
Jan Høydahl 17a02c1089 SOLR-8207: Add "Nodes" view to the Admin UI "Cloud" tab, listing nodes and key metrics 2018-08-03 13:55:11 +02:00
Erick 6afd3d1192 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-08-02 17:40:59 -07:00
Noble Paul 868e970816 SOLR-12592: support #EQUAL function in cores in autoscaling policies 2018-08-02 15:20:46 +10:00
Andrzej Bialecki 1133bf98a5 SOLR-12509: Improve SplitShardCmd performance and reliability. 2018-08-01 16:30:59 +02:00
Christine Poerschke 8a4482805b SOLR-12609: include actual value in two MathExpressionTest.testMultiVariateNormalDistribution asserts 2018-07-31 19:29:50 +01:00
Cassandra Targett ecad9198d8 SOLR-12448: Fix outdated docs that say autoAddReplicas is for shared FS only in Ref Guide and v2 API specs 2018-07-31 12:25:45 -05:00
Alexandre Rafalovitch abd6b07ea9 SOLR-12574: Fix the SignificantTermStream to use the new bucket format 2018-07-31 08:18:39 -04:00
Noble Paul 4602e4de45 SOLR-12601: Refactor the autoscaling package to improve readability 2018-07-31 13:12:34 +10:00
Shalin Shekhar Mangar 179c8f9b48 SOLR-11990: Make it possible to co-locate replicas of multiple collections together in a node.
A collection may be co-located with another collection during collection creation time by specifying a
'withCollection' parameter. It can also be co-located afterwards by using the modify collection API.
The co-location guarantee is enforced regardless of future cluster operations whether they are invoked
manually via the Collection API or automatically by the Autoscaling framework.

Squashed commit of the following:

commit 3827703b38c598f1247c90ab57d3d640ab3a9e21
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Sat Jul 28 11:54:10 2018 +0530

    SOLR-11990: Added change log entry

commit 7977222e07ba47274062cb8d8a69e7956d644000
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Sat Jul 28 11:52:17 2018 +0530

    SOLR-11990: Added change log entry

commit 1857075fdb9d535b6149ad4369fed8b64b0c01f6
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Sat Jul 28 11:49:51 2018 +0530

    SOLR-11990: Added note about co-location guarantees being one way only

commit 8557cbc8a511f21d1fcad99e11ea9d2104d0bef4
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Sat Jul 28 10:43:37 2018 +0530

    SOLR-11990: Remove unused import

commit 864b013fd744edca9b6b84a8a7573fab3c5310d5
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Sat Jul 28 10:21:59 2018 +0530

    SOLR-11990: Fixing compilation issues after merging master

commit dd840a2f7e765ee96c899d4d9ea89b6b67c5ae62
Merge: bb4ffb3 828d281
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Sat Jul 28 10:03:50 2018 +0530

    Merge branch 'master' into jira/solr-11990

    # Conflicts:
    #	solr/solr-ref-guide/src/collections-api.adoc
    #	solr/solrj/src/java/org/apache/solr/client/solrj/cloud/autoscaling/Clause.java
    #	solr/solrj/src/java/org/apache/solr/client/solrj/cloud/autoscaling/Suggestion.java

commit bb4ffb32c4960a2809ac8927e214e1e012204a73
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Fri Jul 27 14:09:44 2018 +0530

    SOLR-11990: Ensure that the suggestion are validated by the policy engine otherwise move to the next candidate replica or the next candidate node

commit a97d45b22f9c232e939f979502c761001be9ae24
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Fri Jul 27 13:22:10 2018 +0530

    SOLR-11990: Autoscaling suggestions for withCollection violations should prefer moving replicas before adding replicas

commit 7b5a84338dfe7335599a5e96aff2d26cb4eeaac6
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Fri Jul 27 12:22:45 2018 +0530

    SOLR-11990: Fix statement about the behavior of the modify collection API when modifying the withCollection parameter

commit 63aec4fe0de7025c16b6ebc47dad1004531ecee1
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Thu Jul 26 07:29:07 2018 +0530

    SOLR-11990: Added new page to the reference guide describing how to colocate collections together including guarantees and limitations

commit 6bfcd0786bb30353de9c26a01ec97ce3191b58f8
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Wed Jul 25 21:42:25 2018 +0530

    SOLR-11990: Added another test which creates two collections which are colocated with two different collections and ensures that create collection and add replica operations work correctly

commit 4cead778f0044b6fb4012b085abf7b60350f495b
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Wed Jul 25 21:07:47 2018 +0530

    SOLR-11990: Stop or start jettys in test setup to ensure that we always have exactly 2 replicas running before a test starts

commit 70dbfd042c2164fcd76d406eeab1518e4d3147fb
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Wed Jul 25 19:19:07 2018 +0530

    SOLR-11990: Added description of the new withCollection parameter in the reference guide

commit 9d8260852b9d667d4d8e026432fd7727b7789393
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Wed Jul 25 19:16:46 2018 +0530

    SOLR-11990: Reset count down latch during test setup

commit ae508165571b1afde54337859b8d5fdbb1d67312
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Wed Jul 25 15:43:54 2018 +0530

    SOLR-11990: Add support for withCollection in simulated create collection API

commit 84f026b8c4cc25edb548430b8f5ad09d2486b3b5
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Tue Jul 24 17:21:33 2018 +0530

    SOLR-11990: Ported the refactoring made in CreateCollectionCmd to the simulated version so that simulation tests are able to create collections correctly

commit defe111c9d31c8e4f0f00b4f2f3c875f5b2fa602
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Tue Jul 24 16:17:52 2018 +0530

    SOLR-11990: Add missing javadoc for return statement

commit 8e47d5bc4545548c5441909c3fcc1a7901b38185
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Tue Jul 24 16:11:45 2018 +0530

    SOLR-11990: Replace usage of forbidden Charsets with StandardCharsets class

commit 2d1b9eb25ea96a3a42c000ae654400ed44c17554
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Tue Jul 24 16:07:36 2018 +0530

    SOLR-11990: Extract ConditionType to an interface VarType along with a WithCollectionVarType implementation

commit 1de2a4f52a59afca28de75bfa5156a3d6567a4f5
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Tue Jul 24 12:53:26 2018 +0530

    SOLR-11990: Pass strict-ness parameter to the ConditionType so that WITH_COLLECTION can choose not to project add replica in strict mode.

    This ensures that add replica or move replica suggesters always choose nodes that already have withCollection replicas first unless there are violations in doing so. Only if the first pass fails to find a suitable replica, do we go to the other nodes in the cluster. This also removes the need for the majority of changes in AddReplicaSuggester and so they've been reverted.

commit 0d616ed9e9bad791548c87086cba7760d724350d
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Tue Jul 24 11:36:34 2018 +0530

    SOLR-11990: Minor changes to formatting and code comments

commit 1228538f934f35f15797d89c2c66f2deb9cddd8c
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Mon Jul 23 14:26:19 2018 +0530

    SOLR-11990: Added a test which simulates a lost node and asserts that move replica suggester moves the replica on the lost node to a node already having the withCollection present

commit 582f1fd98de93ab73c74a1f623749dd031beb381
Author: Noble Paul <noble@apache.org>
Date:   Mon Jul 23 18:35:22 2018 +1000

    SOLR-11990: NPE removing unnecessary System.out.println

commit 501bc6c1d066321b344bbb8b1de3c2ead52f8c49
Author: Noble Paul <noble@apache.org>
Date:   Mon Jul 23 18:31:07 2018 +1000

    SOLR-11990: NPE during class init

commit acbf4a69321e16cff11cc7cf0a1f076fd9ac0037
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Mon Jul 23 13:55:30 2018 +0530

    SOLR-11990: Added asserts on the nodes that should be selected by the add replica suggester

commit 4824933fd6eb7d1773acbff1a1a0c5e670226e0b
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Fri Jul 20 14:30:52 2018 +0530

    SOLR-11990: Added WITH_COLLECTION to global tags. Fixed implementation of addViolatingReplicas and getSuggestions in the clause impl. Added more asserts in testWithCollectionSuggestions.

commit dbadb33211c190026e08d8e3ea587b6f8df8720b
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Fri Jul 20 13:44:36 2018 +0530

    SOLR-11990: Added support for comparing violations, generating suggestions and adding violating replicas

commit ada1f17d5c93a4186260473e4822d2bee1da0e16
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Wed Jul 18 19:14:56 2018 +0530

    SOLR-11990: Fix mock node state provider in TestPolicy to use the right cluster state. Added nocommits to ensure that we return the right suggestions for this feature.

commit ef2d61812e0d96eb2275b3411906d9de57ab835e
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Wed Jul 18 18:39:51 2018 +0530

    SOLR-11990: Add missing node in nodeValues configuration

commit 34841fc01fea4a9f1e6a9f64050e576f2247a72b
Author: Shalin Shekhar Mangar <shalin@apache.org>
Date:   Wed Jul 18 16:32:57 2018 +0530

    SOLR-11990: Make it possible to co-locate replicas of multiple collections together in a node
2018-07-29 07:26:13 +05:30
Shalin Shekhar Mangar 3119fbb947 SOLR-12597: Migrate API should fail requests that do not specify split.key parameter 2018-07-27 11:53:53 +05:30
Noble Paul d87ea6b1cc SOLR-12536: autoscaling policy support to equally distribute replicas on the basis of arbitrary properties 2018-07-26 21:32:45 +10:00
Erick Erickson 1bea1da5dc SOLR-12028: BadApple and AwaitsFix annotations usage 2018-07-20 13:37:05 -07:00
Varun Thacker 9d9c3a0cd8 SOLR-11598: Support more than 4 sort fields in the export writer 2018-07-20 11:38:07 -07:00
Noble Paul be475bbc7e SOLR-12522: forbidden api 2018-07-17 16:37:36 +10:00
Noble Paul 49b1fe2b6d SOLR-12522: Support a runtime function `#ALL` for 'replica' in autoscaling policies 2018-07-17 15:40:22 +10:00
Uwe Schindler c97f27b06c Merge branch 'remove-constructor-wrapper-classes' of https://github.com/michaelbraun/lucene-solr:
LUCENE-8345, GitHub PR #392: Remove instantiation of redundant wrapper classes for primitives; add wrapper class constructors to forbiddenapis.
This closes #392
2018-07-16 12:24:45 +02:00
Noble Paul 11b22b441a SOLR-11986: Allow percentage in freedisk attribute in autoscaling policy rules 2018-07-16 17:36:02 +10:00
Noble Paul 09526a560c Revert "OLR-11986: Allow percentage in freedisk attribute in autoscaling policy rules"
This reverts commit 5b9f4f3
2018-07-16 17:33:51 +10:00
Noble Paul 5b9f4f3ecf OLR-11986: Allow percentage in freedisk attribute in autoscaling policy rules 2018-07-16 17:29:25 +10:00
Michael Braun abdbd9c996 Update to trunk 2018-07-14 14:08:05 -04:00
Michael Braun f0e1864ceb Merge remote-tracking branch 'source/master' into remove-constructor-wrapper-classes 2018-07-14 13:39:37 -04:00
Erick Erickson 93ae3669b5 SOLR-12008: Settle a location for the log4j2.xml file 2018-07-11 20:57:38 -07:00
Jason Gerlowski 98768d9825 SOLR-12309: Improve CloudSolrClient.Builder constructor Javadocs 2018-07-05 09:31:37 -04:00
Alexandre Rafalovitch 2aae3fb3d2 SOLR-2834: Handle CharacterFilters in Solr
Impacts Document and Field Analyzes and was previously a class cast error
2018-07-04 22:05:45 -04:00
Noble Paul f86c477521 SOLR-12495: An #EQUALS function for replica in autoscaling policy to equally distribute replicas 2018-07-05 00:39:52 +10:00
Christine Poerschke 067a6633ed SOLR-12537: remove some unused (private static) loggers 2018-07-04 11:37:56 +01:00
Christine Poerschke 1a4b1358ea SOLR-12395: Make 'significantTerms' the SignificantTermsQParserPlugin's name and deprecate its old 'sigificantTerms' name.
(Tobias Kässmann, Christine Poerschke)
2018-07-03 18:09:35 +01:00
Noble Paul 62b9cbc6f9 SOLR-11985: added validation and test 2018-06-29 14:53:14 +10:00
Alan Woodward 0fbe3d257e LUCENE-8356: Remove StandardFilter from Solr schemas 2018-06-27 12:05:23 +01:00
Andrzej Bialecki 7bb9990654 SOLR-12091: Fix the test to avoid larger jitter on Windows. 2018-06-27 12:16:26 +02:00
noble 7fb36c5906 SOLR-11985 : Added a test for pecentage with replica type 2018-06-26 22:48:46 +10:00
Noble Paul 980354da8e SOLR-12474: use javadoc style comment 2018-06-26 18:26:05 +10:00
Noble Paul 1eb2676f27 SOLR-11985: Support percentage values in replica attribute in autoscaling policy
SOLR-12511: Support non integer values for replica in autoscaling policy

SOLR-12517: Support range values for replica in autoscaling policy
2018-06-26 16:28:17 +10:00
Shalin Shekhar Mangar 8c714348ae SOLR-12506: Add SolrJ support for the modify collection API 2018-06-25 19:09:57 +05:30
Shalin Shekhar Mangar 6b4e9340d8 SOLR-12507: Support deleting properties using a blank parameter value 2018-06-25 16:34:52 +05:30
Steve Rowe 25e7631b90 SOLR-12482: Config API returns status 0 for failed operations 2018-06-21 23:21:13 -04:00
David Smiley 7c28d57973 SOLR-12413: Ensure pre-loaded aliases in ZK are considered.
(fix use of zk version in Aliases.EMPTY)
2018-06-21 14:00:12 -04:00
Shalin Shekhar Mangar fabc408d3b SOLR-12507: Modify collection API should support un-setting properties 2018-06-21 15:45:24 +05:30
Varun Thacker 3d20e8967b SOLR-12489: User specified replicationFactor and maxShardsPerNode is used when specified during a restore operation.
A user can now specify nrtReplicas/tlogReplicas/pullReplicas while restoring the collection.

Specifying replicationFactor or nrtReplicas have the same effect and only one can be specified
2018-06-19 19:45:08 +05:30
Varun Thacker 81906d31a6 SOLR-11676: Fix a SolrJ test to not expect replicationFactor that is not being set anymore 2018-06-19 16:13:45 +05:30
Varun Thacker 11fcb23906 SOLR-11676: Keep nrtReplicas and replicationFactor in sync while creating a collection and modifying a collection 2018-06-18 12:09:53 +04:00
Erick 2519025fda LUCENE-7976: Make TieredMergePolicy respect maxSegmentSizeMB and allow singleton merges of very large segments 2018-06-15 12:33:02 -07:00
David Smiley 4799bc5a4a SOLR-12362: JSON parsing: upgrade to List on end of array not start. And fix TestJsonRecordReader assumptions RE null keys 2018-06-15 00:46:17 -04:00
Erick Erickson a98fcda9c6 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-06-14 13:16:39 -07:00
user 21fe4164de SOLR-12362: Uploading docs in JSON now supports child documents as field values 2018-06-14 12:14:49 -04:00
Noble Paul 377f16de5e SOLR-12208: added a testcase for fetching arbitrary replica info 2018-06-14 00:07:30 +10:00
Andrzej Bialecki 7c4bad0e8f SOLR-12208: Add simulator support for properly tracking INDEX.sizeInBytes and INDEX.sizeInGB. 2018-06-12 16:22:00 +02:00
Noble Paul 98a4dd29ef SOLR-12208: Renamed the autoscaling variable 'INDEX.sizeInBytes' to 'INDEX.sizeInGB' 2018-06-12 13:47:12 +10:00
David Smiley 8095139da3 SOLR-12361: Allow nested child documents to be in field values of a SolrInputDocument.
* AddUpdateCommand and it's relationship with DirectUpdateHandler2 was reworked substantially.

Fixes #385
2018-06-11 10:48:30 -04:00
Noble Paul 0242409fae SOLR-12474: Add an UpdateRequest Object that implements RequestWriter.ContentWriter 2018-06-11 13:04:54 +10:00
Noble Paul b7e9fb43d0 SOLR-12455: Use the new serializarion in V2 and schema requests 2018-06-10 14:05:00 +10:00
broustant a06256ccee SOLR-11865: QueryElevationComponent changes
* new useConfiguredElevatedOrder setting
* more extensible (customizable via subclass)
** ElevationProvider
** handleInitializationException with cause enum
* use BytesRef for uniqueKey ID pervasively instead of String.
* ElevatorComparatorSource now reuses getBoostedDocs logic
* setSort will short-circuit if there are no elevated Ids
* extensive refactoring and affects some interrelated components
2018-06-09 11:32:24 -04:00
Noble Paul 944b24fab8 SOLR-12455: Refactor JSON serialization code into SolrJ package 2018-06-09 23:40:55 +10:00
Noble Paul 7ffdbf15f5 SOLR-12449: Response /autoscaling/diagnostics shows improper json 2018-06-09 23:35:16 +10:00
Noble Paul 9b65d7e1a2 SOLR-12142: EmbeddedSolrServer should use req.getContentWriter 2018-06-08 02:38:50 +10:00
Michael Braun 78079fc552 Merge remote-tracking branch 'source/master' into remove-constructor-wrapper-classes 2018-06-05 18:48:55 -04:00
Noble Paul f9d807af75 SOLR-12387: fixing a test failure 2018-06-05 23:14:11 +10:00
Noble Paul add77d2725 SOLR-12444: Updating a cluster policy fails 2018-06-05 22:29:06 +10:00
Andrzej Bialecki 2ef3d07561 SOLR-11911: Fix a number of synchronization issues in the simulator. Enable this test for now. 2018-06-04 14:20:19 +02:00
Michael Braun fb6574100e LUCENE-8345 - add wrapper class constructors to forbiddenapis 2018-06-03 15:40:50 -04:00
Noble Paul 12269abe34 SOLR-12387: cluster-wide defaults for numShards, nrtReplicas, tlogReplicas, pullReplicas
SOLR-12389: support deeply nested json objects in clusterprops.json
2018-06-01 00:50:52 +10:00
Cao Manh Dat 6084da559c SOLR-12338: Replay buffering tlog in parallel 2018-05-30 11:05:48 +07:00
Andrzej Bialecki 6bbce38b77 SOLR-11779: Basic long-term collection of aggregated metrics. 2018-05-29 10:35:39 +02:00
Joel 11cfb86489 SOLR-12401: Add getValue() and setValue() Stream Evaluators 2018-05-28 13:29:26 -04:00
Noble Paul 18ad8d137a SOLR-12294: update processors loaded from runtime jars fail to load if they are specified in an update processor chain 2018-05-26 00:25:39 +10:00
Steve Rowe 54a63d0d0c SOLR-12388: Enable a strict ZooKeeper-connected search request mode, in which search requests will fail when the coordinating node cant communicate with ZooKeeper, by setting the "shards.tolerant" param to "requireZkConnected" 2018-05-25 01:03:54 -04:00
Noble Paul d32ce81eab SOLR-12358: Autoscaling suggestions fail randomly with sorting 2018-05-24 01:26:50 +10:00