Commit Graph

31066 Commits

Author SHA1 Message Date
Dawid Weiss 3203e99d8f Make the nightly test smaller so that it does not fail with GC overhead exceeded (OOM). Clean up random number fetching to make it shorter. 2018-08-01 14:05:02 +02:00
Adrien Grand 5dffff7df7 LUCENE-8437: CheckIndex shouldn't duplicate SegmentInfos' serialization logic. 2018-08-01 10:11:40 +02:00
Adrien Grand 99dbe93681 LUCENE-8060: IndexSearcher's search and searchAfter methods now only compute total hit counts accurately up to 1,000. 2018-08-01 09:01:21 +02:00
Cao Manh Dat 0dc124aa78 SOLR-12412: Fix precommit 2018-08-01 07:14:41 +07:00
Cao Manh Dat eada799f57 SOLR-12412: Leak transaction log on tragic event 2018-08-01 07:13:41 +07:00
Varun Thacker c9e3c456e3 SOLR-11807: Simply testing of createNodeSet with restoring collection and fixing the test failure 2018-07-31 15:19:23 -07:00
Adrien Grand 96e985a348 LUCENE-8391: Make TestUpgradeIndexMergePolicy faster when merging a TieredMergePolicy. 2018-07-31 21:33:11 +02:00
Christine Poerschke 1a870876c2 Fix 'redundant cast to long' warning in TestTieredMergePolicy. 2018-07-31 19:29:50 +01:00
Christine Poerschke 8a4482805b SOLR-12609: include actual value in two MathExpressionTest.testMultiVariateNormalDistribution asserts 2018-07-31 19:29:50 +01:00
Christine Poerschke 4a1ee046c3 SOLR-12402: Factor out SolrDefaultStreamFactory class. 2018-07-31 19:29:43 +01:00
Cassandra Targett 13960594e4 SOLR-11870: Ref Guide: Add docs on filter param for ICU filters 2018-07-31 13:17:14 -05: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
Christine Poerschke 6fbaf698b9 SOLR-12557: standardise solr/core (private) logger names 2018-07-31 17:00:11 +01:00
Christine Poerschke 9262ed7e56 SOLR-12558: solr/core (private) logger renames 2018-07-31 16:58:51 +01: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
Steve Rowe a08eadb480 Fix InfixSuggestersTest.testShutdownDuringBuild() failures 2018-07-30 22:49:49 -04:00
Varun Thacker 8d28bbc905 SOLR-12477: Return server error(500) for AlreadyClosedException instead of client Errors(400) . This closes PR #402 2018-07-30 17:42:03 -07:00
Cassandra Targett ea221069c3 SOLR-12164: Ref Guide - improve index.adoc so it's a nicer landing page for the Guide 2018-07-30 14:11:55 -05:00
Christine Poerschke 3583bdb324 SOLR-12558: solr/core (private) logger rename - ExportWriter 2018-07-30 18:48:58 +01:00
Christine Poerschke e1063b7f4b SOLR-12558: solr/core (private) logger rename - JettySolrRunner 2018-07-30 18:46:12 +01:00
Adrien Grand 61e89e3ca0 LUCENE-8431: Top-docs collectors now collect lower bounds of the hit count. 2018-07-30 16:38:05 +02:00
Adrien Grand 9ca053712a LUCENE-8430: TopDocs.totalHits may now be a lower bound of the hit count. 2018-07-30 16:38:05 +02:00
Adrien Grand 3a837ca374 LUCENE-8412: Further simplification. 2018-07-30 16:20:36 +02:00
Alexandre Rafalovitch e264d03920 SOLR-12574: Use a common bucket for all significantTerms outputs 2018-07-29 12:02:07 -04: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
Varun Thacker 828d2815f1 SOLR-12599: Add more query routing params to the ref guide 2018-07-27 14:31:55 -07:00
Nicholas Knize 1888bb5d3e LUCENE-8418: Fix tessellation failure on polygon with holes due to
vertex index clashing.
2018-07-27 11:00:46 -05:00
Adrien Grand d78feb2236 LUCENE-8429: Avoid stack overflows in DaciukMihovAutomatonBuilder. 2018-07-27 11:11:28 +02:00
Adrien Grand 534204890a LUCENE-8423: Make generation carrying more robust. 2018-07-27 11:11:28 +02:00
Adrien Grand 5f539442a9 LUCENE-8420: Fix soft-deletes optimization. 2018-07-27 11:11:28 +02:00
Adrien Grand 914e264165 LUCENE-8428: PriorityQueue takes sentinels via a Supplier as a constructor argument. 2018-07-27 11:11:28 +02:00
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 dfb18a6d72 SOLR-12536: ref guide typo fixed 2018-07-27 14:27:51 +10:00
Noble Paul 90424cbe27 SOLR-12536: ref guide 2018-07-27 12:37:32 +10:00
David Smiley e2b08a4d47 SOLR-11542: Add more logging via @LogLevel to diagnose rare failures 2018-07-26 12:22:26 -04:00
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
Nicholas Knize 6ab3ff8392 LUCENE-7314: Graduate LatLonPoint and query classes to core 2018-07-25 18:10:26 -05: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
David Smiley 528e8bceac SOLR-10243: Apply @AwaitsFix on TestExtractionDateUtil.testParseDate to be fixed by SOLR-12593 2018-07-25 11:10:32 -04:00
Dawid Weiss d25f62634b LUCENE-8415: test quirk follow up. MockDirectoryWriter uses AccessDeniedException (a subclass of IOException) to signal files still open for writing when read access is requested. 2018-07-25 11:34:31 +02:00
Adrien Grand 65f6e6c150 LUCENE-8427: Fix bug in BlockMaxConjunctionScorer.
In case a scorer would return information about a block that doesn't contain
any matches, BlockMaxConjunctionScorer could use invalid score bounds. This
would never occur when building a conjunction of term queries but possibly when
building a conjunction of phrase queries for instance.
2018-07-25 10:57:11 +02:00
Simon Willnauer 35fa0b4f55 LUCENE-8425: Expose hard live docs on SegmentReader level
Today if soft deletes are used we expose a union of hard and soft deletes
via LeafReader#getLiveDocs. Yet, if a users wants to take advantage of
searching also soft-deleted documents the only option today is to search
all documents even though some of them are hard deleted. The recommendation
is to not mix those but in exceptional cases ie. when a document hits a
non-aborting exception during indexing the document is marked as hard
deleted which is the correct action. In order to filter those out having
access to the hard live docs on the segment reader level allows to filter out
these documents.
2018-07-25 09:34:36 +02:00
Varun Thacker a254e7d7bc SOLR-11598: Fix test failure due to ordering of sub-tests 2018-07-24 13:09:04 -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
Nhat Nguyen d66c05ce4f LUCENE-8414: Make segmentInfos private in IndexWriter
Today IW#SegmentInfos is package-private and can be accessed directly.
Unlike the production code which accesses the SegmentInfo with IW lock,
tests can access it without holding IW lock. This causes these tests
sometimes fail because they are checking an inconsistent view of
SegmentInfos due to a concurrent modification.

This commit makes SegmentInfos private in IndexWriter and ensures that
we snapshot SegmentInfos in our tests.
2018-07-24 12:39:27 -04:00
Adrien Grand d010cdd87e LUCENE-8412: Fix TestDistributedGrouping failure. 2018-07-24 12:10:25 +02:00
Dawid Weiss 8892c0d9af LUCENE-8415: Clean up Directory contracts (write-once, no reads-before-write-completed). Minor test improvements and cleanups. 2018-07-24 08:47:50 +02:00
Erick Erickson 9d7aef6e77 SOLR-12576: Update ref guide for additional information displayed in cloud view 2018-07-23 20:58:32 -07:00
Jason Gerlowski 6ed9607f74 SOLR-12555: Add add'l expectThrows() test helper 2018-07-23 20:37:04 -04:00