Commit Graph

7165 Commits

Author SHA1 Message Date
Erick Erickson 5cd8aa4ff9 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-06-21 16:02:56 -07:00
Chris Hostetter 08e3141f6c Fix a silly test bug that was assuming numFound=0 would mean no facet results, even though these facet requests always use an explicit query domain.
Also fix the expected/actual facet response checks to ensure there are no 'extra' keys, since not checking that is how the the previous problem slipt through the cracks until it just hapened to affect a testBespoke query (because the randomized index didn't have any matches for that query) and manifested as 0 buckets being checked
2018-06-21 12:05:26 -07:00
Gus Heck bc9ac994a4 SOLR-11654 TimePartitionedUpdateProcessor.lookupShardLeaderOfCollection should route to the ideal shard 2018-06-21 11:45:59 -04:00
David Smiley 8eb006e4ed SOLR-12471: testLLPDecodeIsStableAndPrice -- raise threshold some more 2018-06-21 09:29:27 -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
David Smiley f5508505f2 SOLR-12361: Fix test AddBlockUpdateTest.indexSolrInputDocumentsDirectly 2018-06-18 23:59:44 -04:00
Ishan Chattopadhyaya 4138ad662e SOLR-12428: Solr LTR jar now included in _default configset's solrconfig.xml 2018-06-18 15:02:20 +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
Andrzej Bialecki 28967e0f67 SOLR-12392: BadApple this test for now. 2018-06-18 08:51:25 +02:00
Uwe Schindler e21d4937e0 SOLR-12450: Don't allow referal to external resources in various config files 2018-06-17 13:15:29 +02: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 c22da7d7a9 SOLR-12416: When creating a time routed alias, the router.autoDeleteAge option wasn't considered. 2018-06-15 07:41:03 -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
Andrzej Bialecki 481a1f859d SOLR-11779: Reduce logging, fix index size conversion bug. 2018-06-13 19:44:55 +02:00
Noble Paul 377f16de5e SOLR-12208: added a testcase for fetching arbitrary replica info 2018-06-14 00:07:30 +10:00
Steve Rowe ba62472bd3 SOLR-12434: bin/solr {config,healthcheck} ignore ZK_HOST in solr.in.{sh,cmd} 2018-06-12 20:01:20 -04:00
yonik 23da90813c SOLR-9685: fix parsing of tagged sub-queries 2018-06-12 16:06:46 -04: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
Andrzej Bialecki 87d9343a9b SOLR-12392: Don't create conflicting ops when docs / index size criteria conflict. 2018-06-12 10:43:13 +02:00
Noble Paul d9da757bc5 SOLR-12208: ignored the test , because it fails now 2018-06-12 18:33:56 +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
Andrzej Bialecki 16e0c234ed SOLR-11779: Improve stability of this test - use predictable timestamps and avoid sampling races. 2018-06-11 12:23:07 +02:00
Noble Paul 0242409fae SOLR-12474: Add an UpdateRequest Object that implements RequestWriter.ContentWriter 2018-06-11 13:04:54 +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 8f9eeb1e2c SOLR-12449: Response /autoscaling/diagnostics shows improper json 2018-06-09 23:35:53 +10:00
Noble Paul 7ffdbf15f5 SOLR-12449: Response /autoscaling/diagnostics shows improper json 2018-06-09 23:35:16 +10:00
Adrien Grand 15078ccc83 SOLR-12392: Bad-apple IndexSizeTriggerTest.test(Split|Merge)Integration. 2018-06-08 16:37:06 +02:00
Adrien Grand d6d24ecfd2 SOLR-12075: Disable TestLargeCluster again. 2018-06-08 16:29:29 +02:00
Jan Høydahl 30bf6b657f SOLR-12350: Do not use docValues as stored for _str (copy)fields in _default configset 2018-06-08 15:12:48 +02:00
Andrzej Bialecki 417940cdd7 SOLR-12438: Improve status reporting of metrics history API. 2018-06-07 22:26:47 +02:00
Noble Paul 9b65d7e1a2 SOLR-12142: EmbeddedSolrServer should use req.getContentWriter 2018-06-08 02:38:50 +10:00
David Smiley 7c6d74376a SOLR-12376: AwaitsFix testStopWords pending LUCENE-8344 2018-06-06 14:45:17 -04:00
Andrzej Bialecki c1f42906ef SOLR-11911: Move simulator reset to @Before method. 2018-06-06 11:48:42 +02:00
Cao Manh Dat 0358fcb175 SOLR-12250: Fix precommit 2018-06-06 15:52:15 +07:00
Cao Manh Dat 2f19ae1907 SOLR-12250: Create the temporary tlog file properly 2018-06-06 15:50:19 +07:00
Noble Paul 9ff3f5a136 SOLR-12444: added more assertions to the test 2018-06-06 13:13:20 +10:00
Michael Braun 78079fc552 Merge remote-tracking branch 'source/master' into remove-constructor-wrapper-classes 2018-06-05 18:48:55 -04:00
Jeff 0c6f38a315 SOLR-12233: QParserPlugin's static registry of builtins can be optimized
to avoid needless ClassLoader activity on SolrCore load.
2018-06-05 15:11:32 -04:00
David Smiley cf63392183 SOLR-12376: New TaggerRequestHandler (SolrTextTagger). 2018-06-05 14:04:55 -04:00
David Smiley c587598096 LUCENE-7960: fix Solr test to include mandatory args 2018-06-05 12:30:34 -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 6624773613 SOLR-11911: Make sure all processing is completed before asserting. 2018-06-05 12:32:35 +02: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
Noble Paul 727da63f4a SOLR-12354: Register the /admin/info/key end-point at the startup time to avoid 404 2018-06-04 22:14:37 +10:00
Simon Willnauer e7a0a12926 LUCENE-8335: Enforce soft-deletes field up-front
Soft deletes field must be marked as such once it's introduced
and can't be changed after the fact.

Co-authored-by: Nhat Nguyen <nhat.nguyen@elastic.co>
2018-06-04 08:28:38 +02:00
Cao Manh Dat ab316bbc91 SOLR-9922: Write buffering updates to another tlog 2018-06-04 11:32:31 +07:00
Michael Braun fb6574100e LUCENE-8345 - add wrapper class constructors to forbiddenapis 2018-06-03 15:40:50 -04:00
Simon Willnauer 3dc4fa199c Revert "LUCENE-8335: Enforce soft-deletes field up-front."
This reverts commit a2d9276674.
2018-06-02 13:47:24 +02:00
Simon Willnauer a2d9276674 LUCENE-8335: Enforce soft-deletes field up-front.
Soft deletes field must be marked as such once it's introduced
and can't be changed after the fact.
2018-06-02 13:14:53 +02:00
markrmiller 1ff24bbb28 SOLR-12290,SOLR-12391: Do not close any servlet streams and improve our servlet stream closing prevention code for users and devs. 2018-06-02 00:16:28 -05:00
David Smiley 4888adf08a SOLR-12337: Remove the obsolete QueryWrapperFilter 2018-06-01 17:12:21 -04:00
Cao Manh Dat 1d33130fcb SOLR-12433: Recovering flag of a replica is set equals to leader even it failed to receive update on recovering 2018-06-01 09:23:10 +07:00
Steve Rowe 252a8145d9 SOLR-12388: Add an expected exception message to SearchHandlerTest.testRequireZkConnectedDistrib() 2018-05-31 16:09:11 -04:00
David Smiley 1e63b32731 * SOLR-12366: A slow "live docs" implementation was being used instead of a bitset.
Affects classic faceting enum method, JSON Facets enum method, UnInvertedField faceting, GraphTermsQParser, JoinQParser.
  Renamed SolrIndexSearcher.getLiveDocs to getLiveDocSet.
2018-05-31 10:55:12 -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
Andrzej Bialecki 0e4512c231 SOLR-11779: Use fixed Locale for graph labels. 2018-05-30 17:37:33 +02:00
Andrzej Bialecki d27a2e8996 SOLR-12392: Fix waitForElapsed logic and state restoration. Enable the test. 2018-05-30 15:44:19 +02:00
Steve Rowe bd14de24e9 SOLR-12388: print out exception when assert fails 2018-05-30 00:39:26 -04:00
Cao Manh Dat 6084da559c SOLR-12338: Replay buffering tlog in parallel 2018-05-30 11:05:48 +07:00
David Smiley 6e0da7e2f8 SOLR-12374 Add SolrCore.withSearcher(lambda accepting SolrIndexSearcher) 2018-05-29 16:27:11 -04:00
Andrzej Bialecki 64e4dda64e Don't restart Overseer when picking a node randomly. Enable this test for now. 2018-05-29 21:52:31 +02:00
Andrzej Bialecki 6bbce38b77 SOLR-11779: Basic long-term collection of aggregated metrics. 2018-05-29 10:35:39 +02:00
Varun Thacker 44015e2acd SOLR-11453: Configuring slowQueryThresholdMillis logs slow requests to a separate file - solr_slow_requests.log 2018-05-28 12:43:05 -07:00
Varun Thacker 071df6e114 SOLR-12314: Use http timeout's defined in solr.xml for creating ConcurrentUpdateSolrClient during indexing requests between leader and replica 2018-05-28 11:21:49 -07:00
Noble Paul 4e12546b02 SOLR-12294: changed the package of the test file 2018-05-28 15:04:19 +10:00
Cao Manh Dat 2a5346dd29 SOLR-12399: SearchRateTriggerTest.testTrigger fail frequently 2018-05-28 09:48:22 +07:00
yonik f7500a6029 SOLR-12328: domain change using graph 2018-05-27 21:02:15 -04:00
yonik e5998fcb5d SOLR-9685: #tagging in JSON query syntax 2018-05-27 16:22:16 -04:00
Erick Erickson fd929c1d60 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-05-25 10:39:58 -07: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
Noble Paul b86a4c9297 SOLR-12294: jar file required for the testcase 2018-05-26 00:09:43 +10:00
Dawid Weiss 41ecad9897 SOLR-5351: Fixed More Like This Handler to use all fields provided in mlt.fl when used with content stream. The similarity is calculated between the content stream's value and all fields listed in mlt.fl. 2018-05-25 11:39:42 +02: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
Chris Hostetter ad143a1cec improvements/fixes to TestCloudJSONFacetJoinDomain based on lessons learned adapting TestCloudJSONFacetSKG 2018-05-24 18:02:26 -07:00
Cao Manh Dat 71ed5bafac SOLR-12247: Ensure an event will contains newly added node 2018-05-24 09:42:17 +07:00
markrmiller 48bd259516 SOLR-12378: Support missing versionField on indexed docs in DocBasedVersionConstraintsURP. 2018-05-23 15:44:37 -05:00
David Smiley 53a3de3b98 SOLR-12375: Optimize Lucene ScoreMode use:
* A non-cached filter query could be told incorrectly that scores were needed.
* The /export (ExportQParserPlugin) would declare incorrectly that scores are needed.
* Expanded docs (expand component) could be told incorrectly that scores are needed.
2018-05-23 15:37:33 -04:00
Noble Paul d32ce81eab SOLR-12358: Autoscaling suggestions fail randomly with sorting 2018-05-24 01:26:50 +10:00
Shalin Shekhar Mangar 9b1cb6646f SOLR-3567: Spellcheck custom parameters not being passed through due to wrong prefix creation 2018-05-23 11:12:39 +05:30
Cao Manh Dat 0a730d4c1a SOLR-12247: NodeAddedTriggerTest.testRestoreState() failure: Did not expect the processor to fire on first run 2018-05-23 09:30:19 +07:00
David Smiley af59c46363 SOLR-12386: Apply AwaitsFix to ConcurrentCreateRoutedAliasTest 2018-05-22 17:08:09 -04:00
Chris Hostetter f9091473e0 SOLR-9480: minor cleanup of nits found by sarowe 2018-05-22 10:41:51 -07:00
Shalin Shekhar Mangar 5a47ed4209 SOLR-11880: Avoid creating new exceptions for every request made to MDCAwareThreadPoolExecutor by distributed search and update operations 2018-05-22 19:26:42 +05:30
Mikhail Khludnev 0f14e7fe5c SOLR-12377: Don't spin off overseer when Zk controller is closed.
enable TestLeaderElectionZkExpiry
2018-05-22 11:26:44 +03:00
Chris Hostetter 0bf1eae92c SOLR-9480 followup: remove/abstract deprecated implementations on master 2018-05-21 16:18:27 -07:00
Chris Hostetter 669b9e7a53 SOLR-9480: A new 'relatedness()' aggregate function for JSON Faceting to enable building Semantic Knowledge Graphs 2018-05-21 08:22:54 -07:00
Andrzej Bialecki 93926e9c83 Fix API change and add javadoc. 2018-05-21 12:26:31 +02:00
Cao Manh Dat 4603541d18 SOLR-11452: Remove BadApple annotation 2018-05-21 15:03:30 +07:00
Cao Manh Dat a4f83f66ea SOLR-10841: Remove BaddApples annotation 2018-05-21 09:12:45 +07:00
Cao Manh Dat 39256e8348 SOLR-10841: TestTlogReplica.testRecovery sometimes fails 2018-05-21 09:05:13 +07:00
Steve Rowe d91273ddf0 LUCENE-8273: Rename TermExclusionFilter -> ProtectedTermFilter. Allow ProtectedTermFilterFactory to be used outside of CustomAnalyzer, including in Solr, by allowing wrapped filters and their parameters to be specified on construction. Add tests for ProtectedTermFilterFactory in lucene/common/analysis/ and in solr/core/. Add Solr ref guide documentation for ProtectedTermFilterFactory. Improve javadocs for CustomAnalyzer, ConditionalTokenFilter, and ProtectedTermFilter. 2018-05-20 19:52:07 -04:00
Anshum Gupta 27c6275c48 SOLR-11277: Synchronize UpdateLog.getCurrentLogSizeFromStream and return size of tlog as 0 to avoid NPE 2018-05-18 09:56:52 -07:00
Cao Manh Dat 4a9a8397e4 SOLR-12028: Remove BadApple for TestCloudRecovery 2018-05-18 10:36:14 +07:00
Simon Willnauer e7cf4929f8 SOLR-12181: Fix JavaDoc Lint 2018-05-16 16:04:13 +02:00
Andrzej Bialecki b809d633ce SOLR-12181: Improve test stability. 2018-05-16 13:59:55 +02:00
Mikhail Khludnev 414fcb8e88 SOLR-12200: abandon OverseerExitThread when ZkController is closed. 2018-05-16 13:11:56 +03:00
Cao Manh Dat 25ebe0e35f SOLR-12028: Remove TestCloudConsistency BadApples after beasting 2018-05-16 14:55:11 +07:00
Mikhail Khludnev a0acc63d02 SOLR-12307: abandon OverseerTriggerThread on Zk expiration noiseless 2018-05-12 11:37:52 +03:00
Mikhail Khludnev d020ba84e4 SOLR-12333: drop redundant lines in JSON response writers 2018-05-12 11:22:48 +03:00
markrmiller ab58b7f9ba SOLR-12290: Update assert messages about closing request / response streams. 2018-05-12 00:15:19 -05:00
markrmiller 4c09a13afb SOLR-12290: Update assert messages about closing request / response streams. 2018-05-11 23:32:25 -05:00
yonik 1067cabc19 SOLR-12170: fix date format exceptions for terms facet on date field 2018-05-09 15:42:58 -04:00
David Smiley c3d28a5b0f SOLR-12258: A V2 request referencing a collection or alias may fail to resolve it if it was just recently created.
Now we sync with ZooKeeper and try one more time.  V1 partially did this but only for aliases; now it does both.
2018-05-08 15:10:07 -04:00
Dawid Weiss 85c00e77ef LUCENE-8267: removed references to memory codecs. 2018-05-08 10:32:11 +02:00
David Smiley 08ee037ff8 SOLR-12308: LISTALIASES is now assured to return an up-to-date response
* MiniSolrCloudCluster.deleteAllCollections will now first delete aliases
* Minor refactorings to AliasesManager, AliasIntegrationTest, CreateRoutedAliasTest
2018-05-07 22:17:30 -04:00
David Smiley 81f611209c SOLR-12312: Replication's IndexFetcher buf size should be initialized
to an amount no greater than the size of the file being transferred.
2018-05-07 14:54:11 -04:00
Jason Gerlowski 6521d86dde SOLR-12279: Reject invalid 'blockUnknown' values for 'bin/solr auth' 2018-05-07 07:41:13 -04:00
markrmiller 5fc7251540 SOLR-12290: We must close ContentStreams because we don't know the source of the inputstream - use a CloseShield to prevent tripping our close assert in SolrDispatchFilter. 2018-05-06 14:25:59 -05:00
Uwe Schindler fb5b42a0e4 SOLR-12316: Fix test to work on linux and test also windows in a better way 2018-05-06 15:53:07 +02:00
Uwe Schindler 1b76011421 SOLR-12316: Do not allow to use absolute URIs for including other files in solrconfig.xml and schema parsing 2018-05-06 14:21:34 +02:00
Erick Erickson 89fc02a3b0 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-05-04 22:30:18 -07:00
Mark Miller 3a2572db79 SOLR-12293: Updates need to use their own connection pool to maintain connection reuse and prevent spurious recoveries. 2018-05-04 20:02:56 -05:00
Mark Miller 296201055f SOLR-12290: Do not close any servlet streams and improve our servlet stream closing prevention code for users and devs. 2018-05-04 18:02:06 -05:00
Anshum Gupta b617489638 SOLR-11277: Add auto hard commit setting based on tlog size (this closes #358) 2018-05-03 15:00:47 -07:00
Varun Thacker 8b9c2a3185 SOLR-12288: Add more MDC logging information to core admin requests 2018-05-02 23:36:50 -07:00
Varun Thacker 84925ba9ab SOLR-12289: Add more MDC logging information to collection admin requests 2018-05-02 19:01:07 -07:00
Adrien Grand af680af77f LUCENE-8142: Make postings APIs expose raw impacts rather than scores. 2018-05-02 14:49:32 +02:00
Cao Manh Dat 555b7ef270 SOLR-12278: Add IgnoreLargeDocumentProcessFactory 2018-05-02 17:43:29 +07:00
Mikhail Khludnev ee7b52f4c6 SOLR-8998: uniqueBlock() aggreagation for singlevalue string fields in json.facet 2018-05-01 20:19:15 +03:00
jdyer1 d92b891f95 SOLR-12284: Stop adding parenthesis to word-break suggestions, unless query uses boolean operators. 2018-04-30 13:47:19 -05:00
Mikhail Khludnev e3a9817174 SOLR-12275: test cleanup 2018-04-26 20:17:44 +03:00
Cao Manh Dat e331c068df SOLR-12250: Remove the usage of mockito 2018-04-26 17:57:41 +07:00
Mikhail Khludnev d4d21028e9 SOLR-12275: fix caching for \{!filters} and {{filters}} in \{!parent} and \{!child} 2018-04-26 09:40:35 +03:00
Andrzej Bialecki 34170272e1 SOLR-12181: Reset simulator cache state when shard becomes inactive. 2018-04-25 12:24:52 +02:00
David Smiley 1370f6b520 SOLR-12261: Collection deletion's check for alias membership should
sync() aliases with ZK before throwing an error.
2018-04-24 23:25:11 -04:00
Andrzej Bialecki 0d969ab85d SOLR-11833: Allow searchRate trigger to delete replicas. 2018-04-23 22:19:01 +02:00
David Smiley 1409ab8f84 SOLR-11914: Deprecated some SolrParams methods.
* toSolrParams(nl) moved to a NamedList method, which is more natural.
2018-04-23 13:26:49 -04:00
Simon Willnauer 4136fe0e65 SOLR-12250: Add missing assumeWorkingMockito call 2018-04-23 10:13:53 +02:00
Cao Manh Dat f8c210f148 SOLR-12250: NegativeArraySizeException on TransactionLog if previous document more than 1.9GB 2018-04-23 08:42:03 +07:00
Chris Hostetter 4e0e8e979b SOLR-9304: Fix Solr's HTTP handling to respect '-Dsolr.ssl.checkPeerName=false' aka SOLR_SSL_CHECK_PEER_NAME 2018-04-22 13:38:37 -07:00
David Smiley 8f296d0ccf SOLR-12256: AliasesManager.update() should call ZooKeeper.sync()
* SetAliasPropCmd now calls AliasesManager.update() first.
* SetAliasPropCmd now more efficiently updates multiple values.
* Tests: Commented out BadApple annotations on alias related stuff.
2018-04-20 16:22:16 -04:00
Dawid Weiss 4eead83a83 SOLR-11200: A new CMS config option 'ioThrottle' to manually enable/disable ConcurrentMergeSchedule.doAutoIOThrottle. (Amrit Sarkar, Nawab Zada Asad iqbal) 2018-04-20 11:34:04 +02:00
Erick Erickson 5ef43e900f SOLR-12028: BadApple and AwaitsFix annotations usage 2018-04-19 13:14:12 -07:00
Steve Rowe 46037dc674 SOLR-6286: TestReplicationHandler.doTestReplicateAfterCoreReload(): stop checking for identical commits before/after master core reload; and make non-nightly mode test 10 docs instead of 0. 2018-04-19 14:49:10 -04:00
noble 1c8ab330d6 SOLR-12142: EmbeddedSolrServer should use req.getContentWriter 2018-04-19 13:37:31 +10:00
Mikhail Khludnev dbdedf3e3f SOLR-12155: making TestUnInvertedFieldException more thread-safe 2018-04-18 14:57:49 +03:00
Mikhail Khludnev 507c439558 SOLR-12187: fix precommit 2018-04-18 12:43:25 +03:00
Cao Manh Dat 1d2441441b SOLR-12187: ZkStateReader.Notification thread should only catch Exception 2018-04-18 08:40:06 +07:00
Simon Willnauer d904112428 LUCENE-8253: Don't create ReadersAndUpdates for foreign segments
IndexWriter#numDeletesToMerge was creating a ReadersAndUpdates
for all incoming SegmentCommitInfo even if that info wasn't private
to the IndexWriter. This is an illegal use of this API but since it's
transitively public via MergePolicy#findMerges we have to be conservative
with regestiering ReadersAndUpdates. In IndexWriter#numDeletesToMerge we
can only use existing ones. This means for soft-deletes we need to react
earlier in order to produce accurate numbers.

This change partially rolls back the changes in LUCENE-8253. Instead of
registering the readers once they are pulled via IndexWriter#numDeletesToMerge
we now check if segments are fully deleted on flush which is very unlikely and
can be done in a lazy fashion ie. it's only paying the extra cost of opening a
reader and checking all soft-deletes if soft deletes are used and present
in the flushed segment.

This has the side-effect that flushed segments that are 100% hard deleted are also
cleaned up right after they are flushed, previously these segments were sticking
around for a while until they got picked for a merge or received another delete.

This also closes LUCENE-8256
2018-04-17 16:26:52 +02:00
Cao Manh Dat 09db13f4f4 SOLR-12187: Replica should watch clusterstate and unload itself if its entry is removed 2018-04-17 20:16:31 +07:00
Alan Woodward f7f12a51f3 LUCENE-8253: Mute test while a fix is worked on 2018-04-17 11:58:59 +01:00
Ishan Chattopadhyaya 72ee0f64d4 SOLR-11920: Adding a file exists check before skipping a file for replication 2018-04-17 10:48:36 +05:30
Erick Erickson a417a2cd6a SOLR-10169: PeerSync will hit an NPE on no response errors when looking for fingerprint. 2018-04-16 21:51:02 -07:00
Alan Woodward 37e065007f SOLR-12147: Don't use memory-intensive codecs to test uninvert limits
This separates out TestDocTermOrds.testTriggerUninvertLimit into its own
test class, and suppresses Memory codec on it
2018-04-16 15:24:04 +01:00
Andrzej Bialecki 1e759bc505 SOLR-12181: Fix test failures. 2018-04-16 13:16:05 +02:00
Cao Manh Dat 3028f3e9ea SOLR-12028: Remove BadApple for CollectionsAPIDistributedZkTest.testCollectionReload() 2018-04-16 10:26:22 +07:00
David Smiley dad2d1076d SOLR-11731: revert to 7 decimal places so we can maintain the round-trip property.
Add test that we round-trip random numbers at 7 decimal places.  Would fail at 8.
2018-04-14 10:51:51 -04:00
Varun Thacker 93f9a65b1c SOLR-11724: Cdcr bootstrapping should ensure that non-leader replicas should sync with the leader 2018-04-13 15:38:26 -07:00
David Smiley e4eb8a870c SOLR-11731: one more decimal place (8) and we get the target/theoretical precision 2018-04-13 17:05:51 -04:00
Mike McCandless 7c0387ad3f LUCENE-8248: MergePolicyWrapper is renamed to FilterMergePolicy and now also overrides getMaxCFSSegmentSizeMB 2018-04-13 15:45:19 -04:00
jdyer1 12bd5f9448 SOLR-10513: Implement .equals() for LuceneLevenshteinDistance. 2018-04-13 11:12:46 -05:00
David Smiley 9a149ad7e7 SOLR-11913: SolrParams now implements Iterable<Map.Entry<String,String[]>>
and has stream()
2018-04-13 12:05:23 -04:00
Andrzej Bialecki dfc05faa35 SOLR-12181: Fix NPE. Disable the test until it's fixed. 2018-04-13 12:45:54 +02:00
Erick Erickson 0014f3af88 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-04-12 17:58:32 -07:00
Varun Thacker 2a2a0b6acd SOLR-12150: Fix a test bug in CdcrBidirectionalTest.testBiDir 2018-04-12 15:35:34 -07:00
David Smiley 3d5f2f24c3 SOLR-11336: DocBasedVersionConstraints URP is now more extensible; versionField is a list 2018-04-12 14:04:28 -04:00
Varun Thacker 7a57ca8c0d SOLR-12065: A successful restore collection should mark the shard state as active and not buffering 2018-04-12 08:20:28 -07:00
Simon Willnauer 19b4483ca0 Fix lint error of unused imports in LeaderVoteWaitTimeoutTest 2018-04-12 12:44:34 +02:00
Cao Manh Dat 11d54b0cc4 SOLR-12214: Leader may skip publish itself as ACTIVE even its last published state is DOWN 2018-04-12 12:28:00 +07:00
yonik 8d20fc575b SOLR-12190: properly escape output in GraphMLResponseWriter 2018-04-11 23:00:03 -04:00
Tomas Fernandez Lobbe 8927d469cb SOLR-11982: Add support for indicating preferred replica types for queries 2018-04-11 16:23:00 -07:00
Andrzej Bialecki 376f6c4946 SOLR-12181: Add trigger based on document count / index size. 2018-04-11 15:38:54 +02:00
Steve Rowe fe0da9e8d5 SOLR-12201: TestReplicationHandler.doTestIndexFetchOnMasterRestart(): handle unexpected replication failures 2018-04-10 22:15:31 -04:00
Mark Miller b93e24cb83 SOLR-12211: HdfsDirectoryFactoryTest can fail by trying to allocate too much direct memory. 2018-04-10 16:16:23 -05:00
Christine Poerschke e513c95377 SOLR-12151: Add abstract MultiSolrCloudTestCase class. 2018-04-10 21:09:06 +01:00
Christine Poerschke e8f862ea44 SOLR-12036: Factor out DefaultStreamFactory solrj class. 2018-04-10 20:45:58 +01:00
Mikhail Khludnev a39a6ce672 SOLR-12155: awake threads awaiting UIF.<init> despite of exception. 2018-04-10 21:32:25 +03:00
Mikhail Khludnev 764dcc336b SOLR-12207: rethowing AssertionError from jdk reflection bug 2018-04-10 20:34:07 +03:00
Ishan Chattopadhyaya a70b257c80 SOLR-12096: Fix test failure, using deterministic sort order 2018-04-10 12:35:05 +05:30
Mark Miller 5e2a5a5b8c SOLR-10783: Add support for Hadoop Credential Provider as SSL/TLS store password source. 2018-04-09 21:57:56 -05:00
David Smiley f0aed933a6 SOLR-12139: eq() now works on strings and perhaps anything 2018-04-09 12:17:48 -04:00
Alan Woodward 798d351034 LUCENE-8242: Deprecate createNormalizedWeight 2018-04-09 15:07:04 +01:00
Ishan Chattopadhyaya ea08bd3b67 SOLR-12096: Fixed inconsistent results format of subquery transformer for distributed search (multi-shard) 2018-04-09 16:36:07 +05:30
Alan Woodward 2ae488aae2 SOLR-12147: Don't use MemoryPostingsFormat for TestDocTermOrds.testTriggerUnInvertLimit
This can lead to OOM on nightly runs, as it needs to create a very large index,
and the CI machines don't have huge amounts of RAM.
2018-04-07 18:34:25 +01:00
Steve Rowe 5c37b07a3d SOLR-12199: TestReplicationHandler.doTestRepeater(): TEST_PORT interpolation failure: Server refused connection at: http://127.0.0.1:TEST_PORT/solr 2018-04-06 14:50:21 -04:00
Joel Bernstein d2845b033e SOLR-12175: Fix TestConfigSetsAPI 2018-04-05 14:00:07 -04:00
Steve Rowe 8e276b90f5 SOLR-11929: UpdateLog metrics are not initialized on core reload 2018-04-04 11:19:21 -04:00
Andrzej Bialecki 2bbd193691 SOLR-12095: Missed a few calls to init(). 2018-04-04 17:13:24 +02:00
Cao Manh Dat 34b83ed869 SOLR-12176: Improve FORCELEADER to handle the case when a replica win the election but does not present in clusterstate 2018-04-04 03:41:57 +07:00
Varun Thacker 56f80c0dc7 SOLR-12154: Disallow explicit usage of Log4j2 logger via forbidden APIs 2018-04-03 18:21:14 -07:00
Andrzej Bialecki a8b42300c0 SOLR-12095: Fix precommit issues. 2018-04-03 17:19:56 +02:00
Andrzej Bialecki a14980c479 SOLR-12095: AutoScalingHandler should validate triggers before updating zookeeper. 2018-04-03 15:59:50 +02:00
Tomas Fernandez Lobbe 2c1f110b6b SOLR-12172: Fixed race condition in collection properties 2018-04-02 15:56:25 -07:00
Joel Bernstein 269a676940 SOLR-12133: Fix precommit 2018-04-02 12:53:12 -04:00
Joel Bernstein d89a90067b SOLR-12174: Refactor Streaming Expression function registration 2018-04-02 12:32:31 -04:00
Shalin Shekhar Mangar 805438c59d SOLR-12133: Removing BadApple annotation 2018-04-02 21:20:40 +05:30
Shalin Shekhar Mangar 8189e4f972 SOLR-12133: Fix race conditions that caused NodeMarkersRegistrationTest.testNodeMarkersRegistration to fail 2018-04-02 21:15:09 +05:30
Mikhail Khludnev a4789db477 SOLR-7736: break OverseerTriggerThread when interrupted. 2018-04-01 18:37:18 +03:00
Mikhail Khludnev 7a920cb0f6 SOLR-11673: Slave doesn't commit empty index if new index appears on master by deafult. 2018-04-01 16:47:23 +03:00
Cao Manh Dat ab092942cf SOLR-12066: Move test to DeleteInactiveReplicaTest 2018-03-31 14:50:28 +07:00
Shalin Shekhar Mangar bd85fd389f SOLR-12169: Fix ComputePlanActionTest.testSelectedCollections fails on jenkins by aggressively cleaning up trigger state left by other test methods in the test setup 2018-03-30 22:56:58 +05:30
Shalin Shekhar Mangar e3c67b1980 SOLR-12169: Update jira number in BadApple annotation 2018-03-30 19:42:13 +05:30
Cao Manh Dat 35bfe89790 SOLR-12066: Cleanup deleted core when node start 2018-03-30 20:11:39 +07:00
Cao Manh Dat d483108a15 SOLR-12168: LIROnShardRestartTest failures 2018-03-30 19:54:18 +07:00