Commit Graph

4594 Commits

Author SHA1 Message Date
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
Chris Hostetter 71c0bddd14 SOLR-12581: the JSON Facet 'relatedness()' aggregate function now supports a 'min_popularity' option using the extended type:func syntax 2018-07-25 10:06:30 -07:00
Chris Hostetter 98d463ae48 SOLR-12567: JSON Facet "functions" now support an extended "type:func" syntax, similar to other types of facets
This also allows additional local params to be specified for if the aggregation function can take advantage of them.
2018-07-24 10:43:49 -07:00
Erick Erickson 9d7aef6e77 SOLR-12576: Update ref guide for additional information displayed in cloud view 2018-07-23 20:58:32 -07:00
koji 995a902d1a SOLR-12570: OpenNLPExtractNamedEntitiesUpdateProcessor cannot support multi fields because pattern replacement doesn't work correctly 2018-07-23 16:58:46 +09:00
Cao Manh Dat 8c06dec16d SOLR-12305: When a replica is applying updates, some kind of updates can skip buffering for faster recovery 2018-07-23 09:33:28 +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
Alexandre Rafalovitch f6e9d00b90 SOLR-12553: Check local params in SignificantTerms Query Parser 2018-07-19 22:12:22 -04:00
Chris Hostetter 3a5d4a25df SOLR-12343: Fixed a bug in JSON Faceting that could cause incorrect counts/stats when using non default sort options
This also adds a new configurable "overrefine" option
2018-07-19 10:05:28 -07:00
Christine Poerschke e9c6effd07 SOLR-12454: Tweak Overseer leadership transition related logging for easier troubleshooting. 2018-07-17 20:16:11 +01:00
Christine Poerschke f7aed28760 SOLR-12464: Reduce Overseer.close() logging (for non-Overseer leaders) 2018-07-17 20:16:10 +01:00
Noble Paul 49b1fe2b6d SOLR-12522: Support a runtime function `#ALL` for 'replica' in autoscaling policies 2018-07-17 15:40:22 +10: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
Erick Erickson db8db0d2b6 SOLR-12551: Upgrade to Tika 1.18 2018-07-14 15:45:33 -07:00
David Smiley 424608946c SOLR-12441: Lowercase _NEST_PARENT_ and _NEST_PATH_ fields. 2018-07-13 22:51:13 -04:00
Adrien Grand e01eefe965 Add version 6.6.5. 2018-07-12 11:02:21 +02:00
Erick Erickson 93ae3669b5 SOLR-12008: Settle a location for the log4j2.xml file 2018-07-11 20:57:38 -07:00
David Smiley fe180bbd59 SOLR-12441: New NestedUpdateProcessorFactory 2018-07-10 22:59:41 -04:00
Cao Manh Dat 1197176110 SOLR-12412: Leader should give up leadership when IndexWriter.tragedy occur 2018-07-09 09:14:23 +07:00
Alexandre Rafalovitch 5f5e5dbfb5 Added name in the CHANGES.txt 2018-07-08 13:33:13 -04:00
Alexandre Rafalovitch b7d14c50fb SOLR-11694: Remove outdated UIMA module 2018-07-07 09:58:57 -04:00
Chris Hostetter 7d8ef9e39d SOLR-12516: Fix some bugs in 'type:range' Facet refinement when sub-facets are combined with non default values for the 'other' and 'include' options.
1) the optional other buckets (before/after/between) are not considered during refinement

2) when using the include option: if edge is specified, then the refinement of all range buckets mistakenly includes the lower bound of the range, regardless of whether lower was specified.
2018-07-06 09:34:05 -07: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
Uwe Schindler 5ec0a3f422 SOLR-12450: Add CVE number to changelog 2018-07-04 18:35:06 +02: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
yonik b7b6f242e8 SOLR-12533: getting index size shouldn't create directory (metrics race) 2018-07-03 22:55:38 -04:00
Christine Poerschke a444e82bab SOLR-12527: factor out a test-framework/ConfigRequest class 2018-07-03 18:27:17 +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
Jason Gerlowski ea4043b954 SOLR-12427: Correct status for invalid 'start', 'rows'
Prior to this commit we correctly handled negative start/rows param
values by returning a 400 (BAD REQUEST) with an appropriate error
message, but would return an ugly 500 with stack trace for non-numeric
input values.  This commit corrects this later case to also return
a 400 status code with a nicer error message.
2018-06-30 15:04:55 -04:00
yonik ee12253385 SOLR-12326: add more=true to terms facets with more buckets 2018-06-30 09:45:42 -04:00
Ishan Chattopadhyaya c291fa3724 SOLR-12530: Ability to disable configset upload 2018-06-29 19:12:07 +05:30
Alexandre Rafalovitch d2ac32368e SOLR-12278: Fixed JIRA number in CHANGES file
One digit off
2018-06-27 21:52:14 -04:00
Andrzej Bialecki 1023b839ae SOLR-11665: Improve error handling of shard splitting. Fix splitting of mixed replica types. 2018-06-26 20:35:34 +02: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
David Smiley 095f9eb90d SOLR-12398: Add Heatmap facet option to JSON Facet API.
* moved the preponderance of the implementation from SpatialHeatmapFacets (used by SimpleFacets) into the new API.
2018-06-25 22:37:13 -04:00
Erick Erickson 1d85cd7838 SOLR-12513 Reproducing TestCodecSupport.testMixedCompressionMode failure 2018-06-25 15:17:40 -07: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 ffd9944315 SOLR-12468: Upgrade Jetty to 9.4.11.v20180605 2018-06-25 19:02:06 +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
Gus Heck bc9ac994a4 SOLR-11654 TimePartitionedUpdateProcessor.lookupShardLeaderOfCollection should route to the ideal shard 2018-06-21 11:45:59 -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 3a2ec9baf8 SOLR-11807: Restoring collection now treats maxShardsPerNode=-1 as unlimited 2018-06-21 14:21:16 +05:30
Cao Manh Dat daff67e279 SOLR-11216: Race condition in peerSync 2018-06-20 16:26:02 +07:00
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
Ishan Chattopadhyaya 4138ad662e SOLR-12428: Solr LTR jar now included in _default configset's solrconfig.xml 2018-06-18 15:02:20 +05:30