Commit Graph

7034 Commits

Author SHA1 Message Date
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
Shalin Shekhar Mangar 83cca5cd06 SOLR-12133: Fix failures in TriggerIntegrationTest.testEventQueue due to race conditions 2018-03-30 16:42:35 +05:30
Shalin Shekhar Mangar 0e5374e963 SOLR-12152: Extracted TriggerIntegrationTest.testEventFromRestoredState into its own test class 2018-03-30 12:41:18 +05:30
Shalin Shekhar Mangar 1aafc90cbe SOLR-12152: Fix compilation error due to missing import 2018-03-30 12:23:06 +05:30
Shalin Shekhar Mangar ac8cbaac06 SOLR-12152: Fix node count to 2 for TriggerSetPropertiesIntegrationTest 2018-03-30 12:19:13 +05:30
Shalin Shekhar Mangar ed9e5eb75b SOLR-12152: Split up TriggerIntegrationTest into multiple tests to isolate and increase reliability 2018-03-30 11:08:56 +05:30
Erick Erickson 23707314dd SOLR-12028: BadApple and AwaitsFix annotations usage 2018-03-29 21:41:03 -07:00
Erick Erickson e55b7e9911 SOLR-12162: CorePropertiesLocator Exception message contains a typo when unable to create Solr Core 2018-03-29 18:01:38 -07:00
Andrzej Bialecki 668b81721f SOLR-12145: ConcurrentModificationException in SimNodeStateProvider.getReplicaInfo. 2018-03-29 13:42:19 +02:00
Cao Manh Dat d7197b2565 SOLR-12087: Check for exception message of request recovery to remove LIR node 2018-03-29 18:38:07 +07:00
Dawid Weiss e96811c7a5 LUCENE-8228: removed obsolete IndexDeletionPolicy clone() requirements from the javadoc. 2018-03-29 08:58:28 +02:00
Andrzej Bialecki 7260d9ce71 SOLR-11882: SolrMetric registries retained references to SolrCores when closed. 2018-03-28 11:23:47 +02:00
Shalin Shekhar Mangar 3be8cfb356 SOLR-10734: Clone the original solr document each time we retry 2018-03-28 12:56:34 +05:30
Shalin Shekhar Mangar ab32506243 SOLR-10734: AtomicUpdateRequestProcessor can cause wrong/old values to be set under concurrent updates for the same document. Multithreaded test for AtomicUpdateRequestProcessor was also beefed up and fixed. 2018-03-28 12:40:57 +05:30
Tomas Fernandez Lobbe 3e29c7dbd5 SOLR-12035: edimax should include charfilters in nostopanalyzer
This closes #329
2018-03-27 21:37:19 -07:00
Tomas Fernandez Lobbe f8af274783 SOLR-12153: Remove Thread.sleep from ZkSolrClientTest.testMultipleWatchesAsync 2018-03-27 20:21:02 -07:00
Shalin Shekhar Mangar 89e337ed3d SOLR-10734: Marking test with BadApple once again until the new failures can be fixed 2018-03-27 19:53:07 +05:30
Shalin Shekhar Mangar 64c110c58d SOLR-10734: Fix Multithreaded test/support for AtomicURP 2018-03-27 15:05:23 +05:30
Cao Manh Dat 160faaf594 SOLR-12146: LIR should skip deleted replicas 2018-03-27 15:55:43 +07:00
Shalin Shekhar Mangar ecb94ba442 SOLR-7736: Fix ZkController.publishAndWaitForDownStates 2018-03-27 10:28:34 +05:30
Varun Thacker bea6e2307b SOLR-7887: Log4J2 upgrade fixes 2018-03-26 11:32:03 -07:00
Shalin Shekhar Mangar b0f677c383 SOLR-12087: Fixed bug in TimeOut.waitFor that can cause an infinite loop and added javadocs 2018-03-26 16:58:56 +05:30
Erick Erickson 624d128b5e SOLR-7887: Upgrade Solr to use log4j2 -- log4j 1 now officially end of life 2018-03-25 19:16:09 -07:00
Jason Gerlowski c4abbfd5f7 SOLR-11551: Standardize CoreAdmin API status codes 2018-03-24 10:48:15 -04:00
Noble Paul e364f5be31 SOLR-12015: fixed typo in CHANGES.txt 2018-03-23 13:52:25 +11:00
Noble Paul e340cef68d SOLR-12015: Add support "add-distinct" in AtomicURP so that we can use the 'add-distict' as a request parameter e.g: atomic.add-distict=<multival-field-name> 2018-03-23 13:48:28 +11:00
Cao Manh Dat 92f1cdebfa SOLR-12087: Deleting replicas sometimes fails and causes the replicas to exist in the down state 2018-03-22 16:11:47 +07:00
David Smiley 8e87a3e336 Remove obsolete comment 2018-03-21 11:41:36 -04:00
Cao Manh Dat d2ef38d784 SOLR-12110: Remove debug log for test 2018-03-21 11:25:53 +07:00
Cao Manh Dat 63a145aa7b SOLR-12129: After the core is reloaded, term of the core will not be watched 2018-03-21 09:35:51 +07:00
Chris Hostetter 8bd7e5c9d2 SOLR-11891: DocStreamer now respects the ReturnFields when populating a SolrDocument
This is an optimization that reduces the number of unneccessary fields a ResponseWriter will see if documentCache is used

This commit also includes fixes for SOLR-12107 & SOLR-12108 -- two bugs that were previously dependent on the
un-optimized behavior of DocStreamer in order to function properly.

- SOLR-12107: Fixed a error in [child] transformer that could ocur if documentCache was not used
- SOLR-12108: Fixed the fallback behavior of [raw] and [xml] transformers when an incompatble 'wt' was specified,
  the field value was lost if documentCache was not used.
2018-03-19 12:28:54 -07:00
Andrzej Bialecki ed2d358330 SOLR-11670: Make sure defaults are applied in simulated cluster. 2018-03-19 15:16:50 +01:00
Andrzej Bialecki 9980f05ac3 SOLR-11911: Check for thread interrupted and stop looping. 2018-03-19 14:52:18 +01:00
Erick Erickson c48177b4b6 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-03-17 19:25:18 -07:00
David Smiley 4b08efcf1c SOLR-11731: LatLonPointSpatialField now supports docValue retrieval
Closes #323
2018-03-17 12:21:53 -04:00
Cao Manh Dat be8dca3c7b SOLR-12110: Replica which failed to register in Zk can become leader 2018-03-17 06:54:55 +07:00
Varun Thacker c4d0223ad4 SOLR-12083: Fix PeerSync, Leader Election failures and CDCR checkpoint inconsistencies on a cluster running CDCR 2018-03-16 14:03:48 -07:00
markrmiller 7330010e1d SOLR-12103: Raise CryptoKeys.DEFAULT_KEYPAIR_LENGTH from 1024 to 2048. 2018-03-16 11:50:52 -05:00
Andrzej Bialecki 0dfe19880c SOLR-12091: Rename TimeSource.getTime to getTimeNs. 2018-03-15 16:54:41 +01:00
Ishan Chattopadhyaya fbdf7fa736 SOLR-11920: Differential file copy for IndexFetcher 2018-03-15 19:31:15 +05:30
Shalin Shekhar Mangar dab739ae4c SOLR-11702: Minor edits to log and exception messages 2018-03-15 16:58:59 +05:30
Shalin Shekhar Mangar cb453ce110 SOLR-12078: Fixed reproducable Failure in TestReplicationHandler.doTestIndexFetchOnMasterRestart that happened due to using stale http connections 2018-03-15 02:22:25 +05:30
Varun Thacker 57524f1d41 SOLR-12083: Fix RealTime GET to work on a cluster running CDCR when using Solr's in-place updates 2018-03-14 12:58:30 -07:00
Andrzej Bialecki 5e02c18769 SOLR-11911: Wait a while for left-behind threads from executors. 2018-03-14 14:27:51 +01:00
Shalin Shekhar Mangar 941351a5c2 SOLR-12090: Move DistribStateManager, NodeStateProvider and SolrCloudManager interfaces out of the autoscaling package 2018-03-14 16:29:56 +05:30
Shalin Shekhar Mangar 9de0ebe797 SOLR-12086: Fix format problem in FastLRUCache description string shown on Cache Statistics page 2018-03-14 10:26:45 +05:30
Andrzej Bialecki b6fcf4157b SOLR-12070: Make sure searcher beans are registered. 2018-03-13 16:00:27 +01:00
Andrzej Bialecki ed6feded6d SOLR-11670: Use TimeSource's value of NOW consistently when parsing date math.
Add a unit test for TimeSource's epochTime.
2018-03-13 13:47:14 +01:00
Shalin Shekhar Mangar 536e16d3af SOLR-12067: Fix AutoAddReplicasIntegrationTest by using solr.xml which has autoReplicaFailoverWaitAfterExpiration set to 10 seconds 2018-03-13 18:15:21 +05:30
Cao Manh Dat 0cd9f7f35a SOLR-12028: Remove BadApples for ZkShardTermsTest.testParticipationOfReplicas 2018-03-13 10:32:10 +07:00
yonik 68d8eb4504 SOLR-12064: resize reused accs to fix bugs with limit:-1 and missing:true 2018-03-12 21:56:02 -04:00
Andrzej Bialecki b82ce515f0 Fix precommit (stray import). 2018-03-12 20:00:13 +01:00
Varun Thacker 2a0b7767ab SOLR-12076: Remove unnecessary printLayout usage in CDCR tests 2018-03-12 11:07:39 -07:00
Andrzej Bialecki 28ddb5f355 Remove BadApple from this test for now - the bugUrl wasn't valid anymore and
the test seems to pass.
2018-03-12 16:36:46 +01:00
David Smiley bf6503ba58 SOLR-11617: rename alias metadata to properties 2018-03-12 10:36:37 -04:00
Andrzej Bialecki 55ba89ef42 SOLR-12070: Fix testJmxIntegration that used obsolete APIs. 2018-03-12 14:28:10 +01:00
Cao Manh Dat a9fd0754ba SOLR-12028: Remove BadApples for LIRRollingUpdatesTest 2018-03-12 17:39:36 +07:00
Mikhail Khludnev 8f1350af20 SOLR-11673: specifying exact ticket in @BadApple 2018-03-11 11:00:55 +03:00
Mikhail Khludnev fa55f0c2f2 SOLR-9510: introducting {!filter param=$fq excludeTags=t,q}foo:bar, also adding
filters and excludeTags local params into {!parent} and {!child}
2018-03-11 08:25:05 +03:00
Cao Manh Dat e926f435d7 SOLR-11702: Remove noise of exception messages on failed to ping leader 2018-03-11 07:05:46 +07:00
Erick Erickson f1f929b15a SOLR-12028: BadApple and AwaitsFix annotations usage 2018-03-10 10:58:15 -08:00
Jason Gerlowski 971bd26df6 SOLR-11629: Add new CloudSolrClient.Builder ctors
CloudSolrClient.Builder can be pointed at a Solr cluster in two ways: a
ZK connection string, or one or more Solr base URLs.  One of these two
values must be provided to create a working CloudSolrClient.

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

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

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

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

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

This commit changes this behavior to correctly parse the param value.
2018-02-13 06:54:39 -05:00
Adrien Grand 899966b481 LUCENE-8152: Consistently use advanceExact over advance. 2018-02-13 10:40:46 +01:00
Dawid Weiss 8b3ae1be6a Typo corrected. 2018-02-13 08:51:49 +01:00
Erick Erickson b5bf3b9c38 SOLR-11898: ConcurrentModificationException when calling org.apache.solr.core.SolrInfoBean.getMetricsSnapshot 2018-02-12 19:35:11 -08:00
Chris Hostetter 034677d5ca SOLR-11978: use new SortableTextField in _default and sample_techproducts_configs configsets 2018-02-12 15:14:44 -07:00