Commit Graph

12971 Commits

Author SHA1 Message Date
Mikhail Khludnev bf69a40d16 SOLR-12330: rethow NPEs and other json.facet syntax errors properly as 400 2019-02-09 23:57:30 +03:00
yyuan2 a3a4ecd80b LUCENE-8662: Change TermsEnum.seekExact(BytesRef) to abstract 2019-02-08 15:10:38 -08:00
Cassandra Targett 32443cf8e3 Ref Guide: fix typos & abbreviated words 2019-02-08 13:10:12 -06:00
Alan Woodward b80df5bbc0 Fix escaping in Solr Reference Guide 2019-02-08 13:45:25 +00:00
Tomas Fernandez Lobbe f2b84577a2 Set types in ZkController callables 2019-02-07 22:26:39 -08:00
Konstantin Perikov 87564a3e19 Update language-analysis.adoc 2019-02-07 22:11:18 -08:00
Chris Hostetter 956772b7ef disable TestInjection in RestartWhileUpdatingTest
work around for SOLR-13189 and SOLR-13212
2019-02-07 18:27:32 -07:00
Kevin Risden 475f2fd36b
SOLR-9515 - Remove pom dependency kerby-kerb
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-02-07 11:38:18 -05:00
Jason Gerlowski f30f9b49bf SOLR-13042: Miscellaneous JSON Faceting ref-guide improvements 2019-02-06 21:09:13 -05:00
Chris Hostetter 87ad59f826 SOLR-13210: Fix TriLevelCompositeIdRoutingTest to actually make sense 2019-02-06 14:42:30 -07:00
Chris Hostetter ea2956fda3 Harden OrderedExecutorTest to use concurrent latches/barriers for testing parallelism instead of making assumpions about how milliseconds something should take in another thread 2019-02-06 14:32:12 -07:00
Tomas Fernandez Lobbe 0add3bb0ac Removed some unused variables from DistributedUpdateProcessor 2019-02-06 11:31:55 -08:00
Noble Paul 1d13d3df03 SOLR-12999: Index replication could delete segments before downloading segments from master if there is not enough disk space 2019-02-06 23:16:05 +11:00
Noble Paul b061947e91 SOLR-12999: Index replication could delete segments before downloading segments from master if there is not enough disk space 2019-02-06 23:15:07 +11:00
Jan Høydahl 430a810006 SOLR-12121: Move CHANGES entry to 8.1.0 after merge to branch_8x 2019-02-06 09:16:58 +01:00
Joel Bernstein 49dc7a9cf7 SOLR-13146: Update CHANGES.txt 2019-02-03 18:22:49 -05:00
Kevin Risden 1a23ab005b
SOLR-10199: Solr's Kerberos functionality does not work in Java9 due to dependency on hadoop's AuthenticationFilter which attempt access to JVM protected classes
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-02-02 12:03:20 -05:00
Kevin Risden e8a24bc1c9
SOLR-8182: Update TestSolrCloudWithKerberosAlt to work with JDK9+
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-02-02 12:03:00 -05:00
Kevin Risden 429481bc82
Fix precommit - unused import
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-02-01 15:32:07 -05:00
David Smiley 372d68f7f6 SOLR-5211: Document that delete-by-id (and updates) don't affect child/nested docs 2019-02-01 15:21:16 -05:00
markrmiller 4a3ddc94d8
SOLR-9515: Update to Hadoop 3 (Mark Miller, Kevin Risden)
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-02-01 15:04:56 -05:00
Kevin Risden e4f202c1e3
Revert "SOLR-9515: Update to Hadoop 3"
This reverts commit 6bb24673f4.
2019-01-31 19:46:02 -05:00
markrmiller 6bb24673f4
SOLR-9515: Update to Hadoop 3
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-01-31 13:00:20 -05:00
Chris Hostetter 806744b0f1 reduce number of nodes/shards used in TriLevelCompositeIdRoutingTest to prevent (incredibly frequent) OOM in nightly 2019-01-31 10:45:12 -07:00
Dawid Weiss 4fc218e74e SOLR-13193: LeaderTragicEventTest doesn't catch NoSuchFileException when corrupting files 2019-01-31 11:55:05 +01:00
Joel Bernstein 2beb853cb3 SOLR-13147: Update CHANGES.txt 2019-01-30 14:49:45 -05:00
Chris Hostetter 0a01b9e127 disable TestInjection in TestStressCloudBlindAtomicUpdates
work around for SOLR-13189
2019-01-29 21:23:04 -07:00
Joel Bernstein 79d0dabed4 SOLR-13104: Update CHANGES.txt 2019-01-29 22:01:05 -05:00
Joel Bernstein 25478979b1 SOLR-13134: Update CHANGES.txt 2019-01-29 21:55:21 -05:00
Joel Bernstein a10a989263 SOLR-13088: Update CHANGES.txt 2019-01-29 21:45:55 -05:00
Joel Bernstein 239905edf7 SOLR-12984: Update CHANGES.txt 2019-01-29 21:30:19 -05:00
jimczi cf39708609 Add next minor release version 8.1.0 2019-01-29 14:12:38 +01:00
Andrzej Bialecki 1cfbd3e1c8 SOLR-13072: Make sure the new overseer leader is present. 2019-01-29 11:22:28 +01:00
Chris Hostetter 8bee03f490 Add logging and impoved cleanup to TestStressCloudBlindAtomicUpdates setup/teardown codepaths that occasionally cause suite level failures in jenkins
The use of closeQuietly should hopefully prevent failures closing one HttpClient from resulting in other client objects being leaked

The setup changes are unlikey to improve test reliability, but will hopefully help diagnose where/how NPEs are coming from that currently cause some suite failures.
2019-01-28 16:22:28 -07:00
David Smiley 381a30b26c SOLR-12768: added _nest_path_ to the default schema (thereby enabling nested docs)
* new NestPathField encapsulating details for how _nest_path_ is indexed
** tweaked the analysis to index 1 token instead of variable
* TokenizerChain has new CustomAnalyzer copy-constructor
2019-01-28 13:25:06 -05:00
Dawid Weiss d7dc53ff7c LUCENE-8474: Remove deprecated RAMDirectory. 2019-01-28 13:49:03 +01:00
Mikhail Khludnev 43f2723213 SOLR-13156: support facet.sort for facet.field={!terms=foo,bar}field 2019-01-28 15:27:09 +03:00
Noble Paul 250d21da94 SOLR-13130: during the ResponseBuilder.STAGE_GET_FIELDS directly copy string bytes and avoid creating String Objects 2019-01-27 16:02:11 +11:00
Tommaso Teofili 000785e68e LUCENE-8659 - updated sha1 for OpenNLP dependency 2019-01-26 23:32:59 +01:00
Chris Hostetter ec68359065 SOLR-13168: Fixed a bug in TestInjection that caused test only code to be invoked when TLOG replicas recieved commits if java assertions were enabled
(see also: SOLR-12313)
2019-01-25 15:50:46 -07:00
Tomas Fernandez Lobbe ef81dadc7d SOLR-12373: Remove deprecated constructor 2019-01-25 13:48:40 -08:00
Tomas Fernandez Lobbe 0bd1911db6 SOLR-12373: Let DocBasedVersionConstraintsProcessor define fields to use in tombstones
A new config option, "tombstoneConfig" allows the DocBasedVersionConstraintsProcessor
to add extra fields to the tombstone generated when a document is deleted. This can
be useful when the schema has required fields.
2019-01-25 13:38:18 -08:00
Chris Hostetter e2b8b0e5b1 SOLR-12801: completely prevent tlog replicas from being used.
This follows the spirit of the change Mark intended in his previous commit to this test, but his solution wasn't covering all cases on backcompat to branch_7x

(see also: SOLR-12313)
2019-01-25 10:18:55 -07:00
Mikhail Khludnev c317119654 SOLR-13029: configure buffer size in HdfsBackupRepository. 2019-01-24 18:06:09 +03:00
Jan Høydahl d09c724a0e SOLR-12121: Fix test fails in JWTAuthPluginIntegrationTest.testMetrics 2019-01-24 12:43:27 +01:00
Andrzej Bialecki 84819c8379 SOLR-13072: Fix precommit. 2019-01-24 10:47:44 +01:00
Andrzej Bialecki 72a99e9c5c SOLR-13072: Enable this test again. 2019-01-23 15:46:25 +01:00
Andrzej Bialecki a3fe51ffac SOLR-9735: Update CHANGES and the ref guide. 2019-01-23 15:10:22 +01:00
Jan Høydahl ea2c8ba38e SOLR-12121: JWT Token authentication plugin with OpenID Connect implicit flow login through Admin UI 2019-01-23 13:03:01 +01:00
Chris Hostetter 15e5ca999f SOLR-13140: harden SearchRateTriggerIntegrationTest by using more absolute rate thresholds and latches to track when all events have been processed so we don't need to 'guess' about sleep calls
This commit also disables testDeleteNode pending an AwaitsFix on SOLR-13163
2019-01-22 11:47:11 -07:00
Mikhail Khludnev e68697a6de SOLR-13156: documenting functionality gap. 2019-01-22 14:44:33 +03:00
Joel Bernstein 2aa2c16b88 SOLR-131476: Add double value to test vector 2019-01-21 14:01:13 -05:00
Joel Bernstein 732281c4cc SOLR-131476: Add movingMAD Stream Evaluator 2019-01-21 13:46:33 -05:00
Erick Erickson 60aef389cf SOLR-11998:RebalanceLeaders API broken response format with wt=JSON 2019-01-20 23:13:19 -06:00
Jimmy Casey 8b1c7296b7 Fixed Spelling. 2019-01-20 11:50:16 -08:00
Sascha Szott 28d54d5faf fixed invalid CSS files in Solr's Angular UI 2019-01-20 11:32:29 -08:00
Joel Bernstein cbfc9cccf6 SOLR-13146: Allow derivatives to be computed for the oscillate Stream Evaluator 2019-01-20 13:19:34 -05:00
Erick Erickson a692d05a90 SOLR-13091: REBALANCELEADERS is broken 2019-01-19 19:20:39 -08:00
Mikhail Khludnev c51838479a SOLR-13139: removing illegal date range syntax from the ref guide. 2019-01-19 20:39:51 +03:00
Cassandra Targett f140971bdf Ref Guide: fix typos and clarify some language for autoscaling docs 2019-01-18 20:57:32 -06:00
Eric Pugh 512cfd886d Fix parameter name in example 2019-01-18 14:54:56 -08:00
Toke Eskildsen c13645bd4c LUCENE-8585: Create jump-tables for DocValues at index-time 2019-01-18 22:42:04 +01:00
Gus Heck 68ed797c94 SOLR-13145 fail faster and more clearly when Jekyll is not available for ref guide build 2019-01-18 11:47:06 -05:00
Erick Erickson c0d8b75be9 SOLR-13144: Reference guide section on IndexUpgraderTool needs to be updated 2019-01-18 08:05:44 -08:00
fabric8-cd 63268000fb SOLR-13053: Adding test for assert that times nodes were removed and added was actually restored 2019-01-18 11:00:15 +00:00
Cao Manh Dat 75a7827bf4 Add note about removing of LIR in Solr 8 2019-01-17 16:37:19 +00:00
Cao Manh Dat 8e7a135496 Upgrade CHANGES.txt for http2 changes 2019-01-17 16:31:09 +00:00
Jan Høydahl e515a91406 SOLR-13116: Add Admin UI login support for Kerberos 2019-01-17 14:25:08 +01:00
Tomas Fernandez Lobbe 8b54b20fc4 SOLR-12770: Make it possible to configure a host whitelist for distributed search 2019-01-15 11:44:57 -08:00
Jan Høydahl b7f99fe55a SOLR-13137: NPE when /admin/zookeeper/status endpoint hit in standalone mode 2019-01-15 16:17:10 +01:00
Chris Hostetter d970375cd2 SOLR-12923: add a latch to TestTriggerListener to harden test that use it so they can deterministically know when all events have been proceeded
This hardens several flakey tests, and allows the removal of a several arbitrary sleep calls
2019-01-14 18:16:40 -07:00
Joel Bernstein 570d573c00 SOLR-13104: Add natural and repeat Stream Evaluators 2019-01-13 13:13:33 -05:00
Joel Bernstein 292e26bc2d SOLR-13134: Allow the knnRegress Stream Evaluator to more easily perform bivariate regression 2019-01-12 15:25:45 -05:00
Gus Heck dcc9ffe186 SOLR-13051 improve TRA update processor test
- remove some timeouts
  - better async mechanism linked to SolrCore lifecycle
  - add some additional tests to be a bit more thorough
2019-01-11 14:47:57 -05:00
Cassandra Targett 4d23ca2a19 Ref Guide: fix double footer in page layout for index.html 2019-01-10 09:13:26 -06:00
Noble Paul 0635c657c1 SOLR-13016: precommit errors 2019-01-10 11:58:53 +11:00
Noble Paul 3ffc9099bf SOLR-13016: test errors fixed 2019-01-10 11:57:58 +11:00
Cassandra Targett 7112d6f061 Ref Guide: Fix leftover getting-assistance refs that are breaking the build 2019-01-09 16:32:50 -06:00
Cassandra Targett a5403a3382 SOLR-7896: add login screen info & screenshot to overview-of-the-solr-admin-ui; remove getting-assistance.adoc and move its content to same overview page 2019-01-09 16:02:05 -06:00
Andrzej Bialecki 9423bdb0cf SOLR-13072: Document the "splitFuzz" parameter. 2019-01-09 17:21:47 +01:00
Noble Paul 1e14a6c6d6 SOLR-13016: Computing suggestions when policy have "#EQUAL" or "#ALL" rules take too long 2019-01-09 23:18:05 +11:00
David Smiley df119573db SOLR-12888: Run URP now auto-registers NestedUpdateProcessor before it. 2019-01-08 23:23:02 -05:00
Noble Paul d814d862b0 SOLR-12983: Create DocValues fields directly from byte[] 2019-01-09 13:44:41 +11:00
Cao Manh Dat 951b4e4c83 SOLR-13053: Upgrade CHANGES.txt 2019-01-08 18:42:14 +00:00
Andrzej Bialecki 7db4121b45 SOLR-13072: Use the same wait in other simulated tests where the same race condition may occur. 2019-01-08 19:12:38 +01:00
Andrzej Bialecki a37e2c609c SOLR-13072: Wait for autoscaling config refresh to finish before modifying the cluster
and enable the tests for now.
2019-01-08 16:16:55 +01:00
Noble Paul 825e63c00b SOLR-12983: tests don't need to use the optimization 2019-01-08 17:26:19 +11:00
Noble Paul 3932a4cc6c SOLR-12983: JavabinLoader should avoid creating String Objects and create UTF8CharSequence fields from byte[] 2019-01-08 15:27:48 +11:00
Chris Hostetter 5a513fab83 SOLR-13118: Fix various nodeAdded/nodeLost trigger (integration) tests related to restoriung state
This includes some cleanup and refactoring of unrelated test methods in the same classes to use new helper methods
2019-01-07 17:53:04 -07:00
Andrzej Bialecki 6e745bd250 SOLR-12730: Implement staggered SPLITSHARD requests in IndexSizeTrigger. 2019-01-07 19:14:54 +01:00
Alan Woodward 906f94a8cc Remove unnecessary back compatibility 2019-01-07 13:20:01 +00:00
Alan Woodward 04f48dba8b Move to version 9.0.0 2019-01-07 13:04:01 +00:00
Jan Høydahl 0b6ea3f108 SOLR-7896: Avoid browser basicAuth dialogue when blockUnknown=false. Always show Dashboard menu. Clarify refGuide 2019-01-07 13:09:26 +01:00
Shalin Shekhar Mangar 2bd6f246b0 SOLR-11126: New Node-level health check handler at /admin/info/healthcheck and /node/health paths that checks if the node is live, connected to zookeeper and not shutdown 2019-01-06 12:41:49 +05:30
Shalin Shekhar Mangar 46592e981f SOLR-12365: Fix compilation failure in prometheus-exporter 2019-01-06 09:34:22 +05:30
David Smiley 84264c7410 SOLR-12365: moved parseLuceneVersionString to SolrConfig class 2019-01-05 17:14:37 -05:00
David Smiley ff19a3a261 SOLR-12365: Renamed class Config to XmlConfigFile 2019-01-05 10:08:36 -05:00
David Smiley ca23040baa SOLR-12365: Renamed class Config to XmlConfigFile 2019-01-05 09:51:02 -05:00
Noble Paul 000d0c1364 SOLR-12514: FIxed the test and another bug 2019-01-05 19:31:28 +11:00
Jason Gerlowski 73797f60ad SOLR-13090: Add missing CHANGES.txt entry 2019-01-04 09:53:47 -05:00
noble 669ca8f283 SOLR-12514: Adding a positive testcase also 2019-01-04 14:56:17 +11:00
noble 663fa0e17f SOLR-12514: Adding a positive testcase also 2019-01-04 14:50:52 +11:00
Mike McCandless 63dfba4c7d LUCENE-8601: attributes added to IndexableFieldType during indexing will now be preserved in the index and accessible at search time via FieldInfo attributes 2019-01-03 18:44:41 -05:00
Cassandra Targett ec43d100d1 SOLR-13050: make italicized note into a real NOTE block 2019-01-03 13:48:58 -06:00
Christine Poerschke 63a6c250d7 Update copyright year(s) in lucene/NOTICE.txt and solr/NOTICE.txt files. 2019-01-03 18:46:30 +00:00
Jan Høydahl 9488c8f688 SOLR-12237: Fix incorrect SOLR_SSL_KEYSTORE_TYPE variable in solr start script 2019-01-03 19:40:47 +01:00
Jan Høydahl 00f8f3a13a SOLR-11774: langid.map.individual now works together with langid.map.keepOrig 2019-01-03 18:27:24 +01:00
David Smiley 6342ec699e SOLR-12633: remove anonChildDocs update parameter used in nested docs in JSON. 2019-01-03 10:58:59 -05:00
Andrzej Bialecki 0a7a478c1f SOLR-12514: Properly close a SolrClient to fix the test teardown. 2019-01-03 14:59:31 +01:00
Andrzej Bialecki dbcb245062 SOLR-13050: Add a note to the ref guide. 2019-01-03 11:55:09 +01:00
Andrzej Bialecki e5fda5d6f1 SOLR-13050: Fix the test so that .system events are collected again. 2019-01-02 22:11:57 +01:00
Jan Høydahl a1c6e642aa SOLR-11853: Solr installer fails on SuSE linux 2019-01-02 17:24:22 +01:00
Jason Gerlowski c34f29a4b4 SOLR-13090: Add sysprop override for maxBooleanClauses 2019-01-02 10:58:32 -05:00
Andrzej Bialecki b9457b78d5 SOLR-13050: Fix another test that could accidentally kill the .system leader node.
Improve fallback in SystemLogListener when target collection is not present.
2019-01-02 16:55:16 +01:00
Noble Paul 302184dd7f SOLR-12514: Rule-base Authorization plugin skips authorization if querying node does not have collection replica 2019-01-02 19:49:40 +11:00
Noble Paul 619b38a19b SOLR-12514: Rule-base Authorization plugin skips authorization if querying node does not have collection replica 2019-01-02 19:44:03 +11:00
Shalin Shekhar Mangar 5016959ce8 SOLR-13082: A trigger that creates trigger events more frequently than the cool down period can starve other triggers.
This is mitigated to some extent by randomly choosing the trigger to resume after cool down. It is recommended that scheduled triggers not be used for very frequent operations to avoid this problem.
2019-01-02 11:59:00 +05:30
Gus Heck 752989fd74 SOLR-13086 improve error message in DocumentObjectBinder 2018-12-31 07:54:56 -05:00
Christine Poerschke 6a2de771bf SOLR-13096: rename TestRankQueryPlugin to RankQueryTestPlugin 2018-12-31 11:05:31 +00:00
Christine Poerschke 345a655f21 SOLR-12973: Admin UI Nodes view support for replica* replica names. (Daniel Collins, Christine Poerschke, janhoy) 2018-12-28 12:23:53 +00:00
Erick Erickson 24ae0d16cd SOLR-12028: Catching up with annotations after recent Solr test work 2018-12-27 18:03:50 -08:00
Joel Bernstein d018cd18f4 SOLR-13088: Add zplot Stream Evaluator to plot math expressions in Apache Zeppelin 2018-12-27 14:42:27 -05:00
David Smiley 106d300052 SOLR-12535: index time boosts in JSON are no longer accepted 2018-12-26 09:39:42 -05:00
David Smiley 1d0a086217 SOLR-13080: TermsQParserPlugin automaton method should (must?) sort input 2018-12-21 13:26:03 -05:00
Jason Gerlowski 207b3f4453 SOLR-13045: Sim node versioning should start at 0
Prior to this commit, new ZK nodes being simulated by the sim framework
were started with a version of -1.  This causes problems, since -1 is
also coincidentally the flag value used to ignore optimistic concurrency
locking and force overwrite values.
2018-12-21 08:04:44 -05:00
Jason Gerlowski 272178eff5 SOLR-13045: Allow SimDistribStateManager to create top-level data nodes
While working on a related issue in SimDistribStateManager, I noticed
that `createData()` only worked successfully on nodes nested more than
one level under root.  (i.e. `createData("/foo", someData, mode)` would
fail, while the same with "/foo/bar" wouldn't).  This was due to an edge
case in SimDistribStateManager's path building logic.  This commit fixes
this issue.
2018-12-20 14:09:05 -05:00
Andrzej Bialecki 846dfbef39 SOLR-13072: Fix an api change. 2018-12-20 15:49:59 +01:00
Andrzej Bialecki 1f0e875db6 SOLR-13072: Management of markers for nodeLost / nodeAdded events is broken. 2018-12-20 13:16:28 +01:00
Dawid Weiss 71f024ac8f SOLR-13074: clean up static variables properly, avoiding NPEs. 2018-12-18 23:20:55 +01:00
Chris Hostetter 73299f0f22 SOLR-13079: refactor and harden common 'suspend-trigger' patern in autoscaling test setup 2018-12-18 11:28:31 -07:00
Erick Erickson 3be5b59907 SOLR-12727: Added Dat to the credits, partly as a test of whether infra has fixed a commit attribution error 2018-12-17 16:49:21 -08:00
Andrzej Bialecki f5479383b1 SOLR-13076: TimeOut breaks the simulation framework. 2018-12-17 16:49:27 +01:00
Adrien Grand 785d02208a Remove duplicate package info. 2018-12-17 11:29:34 +01:00
Adrien Grand 6f08eee2fd Fix compilation. 2018-12-17 10:07:36 +01:00
markrmiller 5e305e2f00 SOLR-13075: Add @AwaitsFix annotation to SaslZkACLProviderTest. 2018-12-16 14:49:07 -06:00
Cao Manh Dat f80e8e1167 Merge jira/http2 branch to master 2018-12-16 16:58:20 +00:00
Steve Rowe a62b5941b0 SOLR-13060: Annotate never-terminating HDFS Nightly tests with AwaitsFix 2018-12-15 12:24:57 -05:00
Dawid Weiss e916f1fb86 LUCENE-8611: Update randomizedtesting to 2.7.2, JUnit to 4.12, add hamcrest-core dependency. 2018-12-15 09:49:36 +01:00
Simon Willnauer e974311d91 LUCENE-8609: Allow getting consistent docstats from IndexWriter
Today we have #numDocs() and #maxDoc() on IndexWriter. This is enough
to get all stats for the current index but it's subject to concurrency
and might return numbers that are not consistent ie. some cases can
return maxDoc < numDocs which is undesirable. This change adds a getDocStats()
method to index writer to allow fetching consistent numbers for these stats.

This change also deprecates IndexWriter#numDocs() and IndexWriter#maxDoc()
and replaces all their usages wiht IndexWriter#getDocStats()
2018-12-14 19:36:25 +01:00
Jason Gerlowski 1d601ed646 SOLR-13065: Harden TestSimExecutePlanAction 2018-12-14 12:22:09 -05:00
Jason Gerlowski 655e9ecf7c Fix active replica count reporting in SimClusterStateProvider
One codepath assumed all replicas were active, instead of checking the
state of each individually.
2018-12-14 12:21:47 -05:00
Jason Gerlowski dd910d1a06 Indicate collection in `clusterShape` log messages
Many of Solr's tests use CloudTestUtils' `waitForState` and
`clusterShape` methods to wait until a SolrCloud cluster matches a
particular expected shape.  The code periodically checks on the cluster
state, and logs a message if a collection doesn't match the state we
expect of it.  Prior to this commit, these log messages omitted the
collection name though, which makes things a little confusing when a
test is checking on the state of multiple collections simultaneously (as
can happen when Triggers fire in the background).
2018-12-14 12:21:19 -05:00
Erick Erickson 3ca7e65388 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2018-12-14 07:43:06 -08:00
Erick Erickson 15b36299c4 SOLR-12727: Fix tests to work with 'interesting' entries in the hosts file like 'fe80::1%lo0 localhost' 2018-12-14 07:42:57 -08:00
Jan Høydahl bfd28a8b3a SOLR-10975: New Admin UI Query does not URL-encode the query produced in the URL box 2018-12-14 15:30:39 +01:00
Jan Høydahl f8fcdbb208 Revert "SOLR-11296: Spellcheck parameters not working in new UI" due to wrong commit message
This reverts commit bb2405a
2018-12-14 15:29:27 +01:00
Jan Høydahl bb2405aec8 SOLR-11296: Spellcheck parameters not working in new UI
(cherry picked from commit 62edbf2e7d)
2018-12-14 15:27:18 +01:00
Jan Høydahl 62edbf2e7d SOLR-11296: Spellcheck parameters not working in new UI 2018-12-14 15:07:28 +01:00
Jan Høydahl 04e05782a3 SOLR-7896: Followup fix to non-working core dropdown 2018-12-14 14:40:02 +01:00
Chris Hostetter df07fb33bb SOLR-13043: cleanup suspicious ExecutorService lifecycles in MiniSolrCloudCluster 2018-12-13 19:59:35 -07:00
Chris Hostetter f844461357 SOLR-13072: disable flawed test of flawed functionality 2018-12-13 15:32:09 -07:00
Chris Hostetter 46516b7077 SOLR-13068: Update many cloud/autoscaling tests to use TimeSource.NANO_TIME (instead of CURRENT_TIME) for comparisons
as much as possible, the tests actual use the time source directly from the cluster, so that even if the cluster is changed to use an alternate time source, the tests will be consistent
2018-12-13 11:02:24 -07:00
Jason Gerlowski d7ad2f46c3 SOLR-13037: Harden TestSimGenericDistributedQueue 2018-12-13 06:27:34 -05:00
Jan Høydahl 81dbad54e0 SOLR-12799: Allow Authentication Plugins to intercept internode requests on a per-request basis
Add 'forwardCredentials' parameter to BasicAuth which will then skip using PKI on sub requests
2018-12-13 10:51:56 +01:00
markrmiller 42f13731b3 SOLR-12801: Harden SimSolrCloudTests. 2018-12-12 18:50:23 -06:00
markrmiller 44b51cd041 SOLR-13067: Harden BasicAuthIntegrationTest. 2018-12-12 18:50:23 -06:00
markrmiller 7de72c9bc7 SOLR-13066: A failure while reloading a SolrCore can result in the SolrCore not being closed. 2018-12-12 18:49:06 -06:00
Jan Høydahl 9728dbc167 SOLR-12791, SOLR-13067: Fix test failure for BasicAuthIntegrationTest
Make PkiAuthenticationIntegrationTest beast-able
2018-12-13 00:14:37 +01:00
Joel Bernstein 1e68726831 SOLR-12801: Suppress SSL and older codecs 2018-12-12 15:38:40 -05:00
Joel Bernstein 7e4555a2fd SOLR-13057: Allow search, facet and timeseries Streaming Expressions to accept a comma delimited list of collections 2018-12-12 09:16:08 -05:00
Jan Høydahl ef2f0cd88c SOLR-12791: Add Metrics reporting for AuthenticationPlugin 2018-12-12 11:33:32 +01:00
Jan Høydahl 280f67927e SOLR-7896: Add a login page to Admin UI, with initial support for Basic Auth 2018-12-12 10:37:23 +01:00
Jan Høydahl 5affe7421f SOLR-13025: SchemaSimilarityFactory fallback to LegacyBM25Similarity for luceneMatchVersion < 8.0 2018-12-12 10:33:50 +01:00
markrmiller bcdc6dadbb SOLR-13040: Fix TestSQLHandler, remove delete core calls. 2018-12-12 02:06:26 -06:00
Steve Rowe ec1bd0da2f SOLR-13060: set suite timeout on non-terminating HDFS Nightly tests to one hour 2018-12-11 18:49:06 -08:00
Gus Heck a7859ff62a SOLR-13058 Fix synchronized block 2018-12-11 18:45:42 -05:00
Chris Hostetter ade7546ad2 Merge remote-tracking branch 'refs/remotes/origin/master' 2018-12-11 13:21:52 -07:00
Chris Hostetter de65b45fca change NodeLostTrigger's initial run() log from INFO to DEBUG 2018-12-11 13:18:32 -07:00
markrmiller c852418148 SOLR-12801: Harden TestSimLargeCluster. 2018-12-11 14:17:10 -06:00
Chris Hostetter 3147c131e0 SOLR-13054: rewrite TriggerSetPropertiesIntegrationTest
test no longer depends on changing static non-final non-volatile variables used by multiple threads

test also no longer depends on arbitrary sleep calls, instead threads await/poll on concurrent signaling objects/queues
2018-12-11 10:39:00 -07:00
markrmiller 274a6eba90 SOLR-12801: Try to harden CdcrBootstrapTest. 2018-12-11 08:58:42 -06:00
markrmiller 19d968dc3d SOLR-12801: Harden OverseerTaskQueueTest and DistributedQueueTest. 2018-12-11 08:58:42 -06:00
markrmiller b9278d7c99 SOLR-12923: Harden TestSimTriggerIntegration. 2018-12-11 08:58:42 -06:00
markrmiller eb1735ece9 SOLR-12923: Harden TestSimLargeCluster. 2018-12-11 08:58:42 -06:00
markrmiller a25ddcd4f3 SOLR-12801: Harden InfixSuggestersTest#testShutdownDuringBuild. 2018-12-11 08:58:42 -06:00
markrmiller 05d728f57a SOLR-12801: Add @AwaitsFix to TestHierarchicalDocBuilder#testThreeLevelHierarchy. 2018-12-11 06:05:26 -06:00
markrmiller ab891fa472 SOLR-12801: Harden TestCloudRecovery. 2018-12-11 05:45:34 -06:00
markrmiller 496c627882 SOLR-12801: Raise this test socket timeout to 30 seconds. 2018-12-11 05:45:28 -06:00
markrmiller 3205491beb SOLR-12923: Harden TestSimTriggerIntegration. 2018-12-11 05:45:19 -06:00
markrmiller 7605427481 SOLR-12801: Harden BasicDistributedZk2Test. 2018-12-11 05:45:12 -06:00
Cao Manh Dat 40502b9ba8 SOLR-13028: Remove AwaitsFix for AutoAddReplicasPlanActionTest.testSimple to get log failure 2018-12-11 10:31:59 +00:00
Cao Manh Dat d26c237e35 Remove BadApple for TestSimTriggerIntegration.testListeners to get log failure 2018-12-11 09:53:58 +00:00
Noble Paul c651cbfd9a SOLR-12885: BinaryResponseWriter (javabin format) should directly copy from BytesRef to output 2018-12-11 18:35:57 +11:00
Chris Hostetter a2199c72d4 SOLR-13050: add workaround for issue to SystemLogListenerTest
make sure the node we kill isn't the .system collection leader
2018-12-10 19:06:42 -07:00
Jason Gerlowski f89f109ec1 SOLR-13045: Harden TestSimPolicyCloud
This commit fixes a race condition in SimClusterStateProvider, fixing
several fails in TestSimPolicyCloud.
2018-12-10 17:39:12 -05:00
Cao Manh Dat af6e15e838 SOLR-13053: NodeAddedTrigger and NodeLostTrigger do not reserve added/removed time populated by restoreState 2018-12-10 20:08:07 +00:00
markrmiller d96475a0bb SOLR-12801: Fix TestSolrCloudWithKerberosAlt. 2018-12-10 11:46:34 -06:00
Jan Høydahl b6cbb8494e SOLR-13014: URI Too Long with large streaming expressions in SolrJ 2018-12-10 18:22:52 +01:00
markrmiller 202dad8c88 SOLR-12923: Harden TestSimLargeCluster. 2018-12-10 10:02:58 -06:00
markrmiller a1657616bb SOLR-12923: Harden TestSimTriggerIntegration. 2018-12-10 10:02:58 -06:00
markrmiller 56b959141f SOLR-12801: Try to harden closing of zk db in TestConfigSetsAPIZkFailure. 2018-12-10 10:02:58 -06:00
markrmiller 18356de837 SOLR-12923: Harden TestSimTriggerIntegration. 2018-12-09 22:55:32 -06:00
markrmiller 5405b2f1c3 SOLR-12801: Try to harden TestReplicatinHandler#doTestIndexFetchOnMasterRestart. 2018-12-09 22:55:25 -06:00
markrmiller f47976a219 SOLR-12801: Try to harden SolrRrdBackendFactoryTest. 2018-12-09 22:55:19 -06:00
markrmiller 6f8d598781 SOLR-12801: Harden CollectionsAPISolrJTest#testCreateCollWithDefaultClusterPropertiesNewFormat. 2018-12-09 20:52:03 -06:00
markrmiller 665517d3bf SOLR-12801: Harden CollectionsAPISolrJTest#testCreateCollWithDefaultClusterPropertiesOldFormat. 2018-12-09 18:50:47 -06:00
markrmiller 1d5ae9857f SOLR-12801: Raise timeout in CollectionsAPIAsyncDistributedZkTest. 2018-12-09 18:31:28 -06:00
markrmiller 5d529802c4 SOLR-12801: harden DocValuesNotIndexedTest 2018-12-09 18:31:28 -06:00
markrmiller 0824f7b045 SOLR-12801: use waitForActiveCollection call 2018-12-09 18:31:28 -06:00
markrmiller f6063a1461 SOLR-12801: boost wait to try and harden 2018-12-09 18:31:28 -06:00
markrmiller 4133ce4cc1 SOLR-12923: Harden TestSimTriggerIntegration.testNodeMarkersRegistration. 2018-12-09 18:31:28 -06:00
markrmiller 3eb2612e67 SOLR-12988: Disable SSL on Java 11/12 for now. 2018-12-09 18:31:28 -06:00
markrmiller 0aef561245 SOLR-12923: Harden TestSimNodeLostTrigger#testTrigger. 2018-12-09 18:31:28 -06:00
markrmiller 3f1b75ab82 SOLR-12801: harden MultiThreadedOCPTest 2018-12-09 18:31:28 -06:00
markrmiller a9a5cdc34d SOLR-12801: raise jetty idle socket timeout 2018-12-09 18:31:28 -06:00
markrmiller 40432cdfbc SOLR-12801: tweak shard count specificiation 2018-12-09 18:31:28 -06:00
markrmiller eac3f58c43 SOLR-12801: wait 60 seconds instead of 30 for cores to close 2018-12-09 18:31:28 -06:00
markrmiller 906e32af13 SOLR-12801: harden CollectionsAPIDistributedZkTest 2018-12-09 18:31:28 -06:00
markrmiller 65bfb1639c SOLR-12801: harden CollectionsAPISolrJTest 2018-12-09 18:31:28 -06:00
markrmiller 1184fbed63 SOLR-12923: Harden AutoScalingHandlerTest. 2018-12-09 18:31:28 -06:00
markrmiller b94911b260 SOLR-12801: don't do single index check here on windows. 2018-12-09 18:31:28 -06:00
markrmiller e25d6850c4 SOLR-13037: Add @AwaitsFix annotation to TestSimGenericDistributedQueue. 2018-12-09 18:31:28 -06:00
Erick Erickson 54ca26abe9 SOLR-12727: CHANGES.txt, updated ZooKeeper dependency 2018-12-09 09:15:42 -08:00
Erick Erickson f690302e05 SOLR-12727: Upgrade ZooKeeper dependency to 3.4.13 2018-12-09 08:50:51 -08:00
Joel Bernstein 17fca051c5 SOLR-13046: Suppress SSL for StreamingTest 2018-12-07 09:19:40 -05:00
markrmiller 46d7994045 SOLR-13028: @AwaitsFix AutoAddReplicasPlanActionTest#testSimple. 2018-12-06 08:56:03 -06:00
markrmiller b9a966e5f7 SOLR-12833: Add configurable timeout to VersionBucket lock. 2018-12-06 08:36:56 -06:00
markrmiller 38cfd0e259 SOLR-13040: Add AwaitsFix annotation to TestSQLHandler and improve exception information related to that test. 2018-12-05 19:34:13 -06:00
Cassandra Targett c81822e157 SOLR-12422: Add section on performance issues with Solr Cell; Overhaul and re-organize entire page 2018-12-04 15:08:22 -06:00
Cassandra Targett ad373ff36e Ref Guide: typo in "parameter" 2018-12-04 15:08:22 -06:00
Jason Gerlowski a5fb6f8adc Add 'prelim_sort' helper to SolrJ's TermsFacetMap 2018-12-04 14:29:29 -05:00
Chris Hostetter 868e005760 SOLR-13032: harden MaxSizeAutoCommitTest to eliminate race conditions and eliminate use of arbitrary sleep 2018-12-04 10:44:05 -07:00
Jason Gerlowski f7faae075b SOLR-13019: Fix typo in MailEntityProcessor
Path provided by Tommy Marshment-Howell.

Closes #509
2018-12-04 08:49:58 -05:00
Gus Heck 59919b4ac0 SOLR-13036 Fix retry logic in JettySolrRunner 2018-12-03 21:54:34 -05:00
markrmiller e14432efd8 SOLR-12801: Wait for thread on close and add AwaitsFix annotation - most of these sim tests can fail to elect shard leaders. 2018-12-03 17:40:51 -06:00
markrmiller e3cbdd0505 SOLR-13032: Add @AwaitsFix annotation to test. 2018-12-03 11:07:40 -06:00
markrmiller 1408f5255f SOLR-12801: Disable TimeRoutedAliasUpdateProcessorTest because the feature leaks threads. 2018-12-03 09:07:27 -06:00
Gus Heck b6b9f9554e SOLR-12801 fix cut/paste oops in comment 2018-12-02 16:41:55 -05:00
Gus Heck cf4d749410 SOLR-12801 Revert breaking commit a3ec5b5fdf and improve test
to be more complete. Also, add comments to make it easier for
others to understand TimeRoutedAliasUpdateProcessorTest
2018-12-02 16:34:40 -05:00
Jason Gerlowski c951578fca SOLR-6117: Unify ReplicationHandler error handling
Prior to this commit, ReplicationHandler had a few inconsistencies
in how it reported errors:
  - Sometimes the 'status' field was used as an enum (e.g. 'success'
    v. 'failure'.  Elsewhere it is used to hold error messages.
  - Sometimes an explicit 'message' field was used, but often not.
  - Sometimes a stack trace was provided in place of an error message.

This commit tweaks the various error cases in ReplicationHandler to
report errors consistently.  'status' is always an enum-type value.  A
'message' field is provided for all errors, with an optional 'exception'
field.
2018-12-02 16:23:04 -05:00
Jason Gerlowski 6e4c9b3b58 SOLR-12555: Use `expectThrows` for expected exceptions
This commit replaces the `try { doX(); fail(); }` pattern with the
`expectThrows` test helper, which was created for this purpose.

This commit makes these changes in the core package:
`o.a.solr.core`.
2018-12-01 17:19:34 -05:00
markrmiller e5281ef3d5 SOLR-12801: Don't possibly block forever in this test in remaining spots. 2018-12-01 13:02:58 -06:00
markrmiller b294d8460f SOLR-12801: Don't possibly block forever in this test in another spot. 2018-12-01 12:55:05 -06:00
markrmiller b5a9cca168 SOLR-12801: Raise THREAD_POOL_MAX_IDLE_TIME_MS. 2018-12-01 12:42:28 -06:00
markrmiller cbe9f82202 SOLR-12801: Don't possibly block forever in this test. 2018-12-01 08:58:13 -06:00
markrmiller 755044b58f SOLR-12801: Wait for collection creation in test. 2018-12-01 08:09:03 -06:00
markrmiller 9b0b9032e2 SOLR-12801: Fix thread leak in test. 2018-12-01 00:53:12 -06:00
markrmiller 33c40a8da4 SOLR-13027: Change retries to work across JVM impls properly by looking for an IOException. 2018-12-01 00:26:15 -06:00
markrmiller 7f88bfa112 SOLR-12801: Wait for collections properly. 2018-12-01 00:26:03 -06:00
markrmiller a3ec5b5fdf SOLR-12801: Wait for executor to finish shutdown. 2018-12-01 00:26:03 -06:00
markrmiller d8f482f5fb SOLR-13030: Update executor usage to work correctly with Java 11 and update Mockito & HttpComponents to work with Java 11 and fix get remote info retry to work across jvms better. 2018-12-01 00:26:02 -06:00
markrmiller a01d0d9ef9 SOLR-13030: Close MetricsHistoryHandler inline. 2018-11-30 18:13:26 -06:00
Chris Hostetter 5dc988f5ee SOLR-12839: JSON 'terms' Faceting now supports a 'prelim_sort' option to use when initially selecting the top ranking buckets, prior to the final 'sort' option used after refinement. 2018-11-30 15:49:06 -07:00
Cassandra Targett 5c4ab188eb SOLR-13023: Ref Guide: Add section to blob store docs on how to delete blobs 2018-11-30 12:31:03 -06:00
javanna cf016f8987 LUCENE-8563: Remove k1+1 constant factor from BM25 formula numerator.
Signed-off-by: Adrien Grand <jpountz@gmail.com>
2018-11-30 09:42:49 +01:00
markrmiller 75b1831967 SOLR-12801: Make massive improvements to the tests.
SOLR-12804: Remove static modifier from Overseer queue access.

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

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

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

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

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

SOLR-12933: Fix SolrCloud distributed commit.
2018-11-29 11:58:51 -06:00
David Smiley 2611c22b6b SOLR-12398: retroactively add CHANGES.txt back-compat break for 7.5 2018-11-28 07:21:34 -08:00
Cassandra Targett 2715beb6df SOLR-12497: fix typo 2018-11-27 13:56:19 -06:00
Joel Bernstein c2cac88770 SOLR-12984: The search Streaming Expression should properly support and push down paging when using the /select handler 2018-11-27 11:22:02 -05:00
David Smiley 1534bbe4ae SOLR-5211: fix test 2018-11-27 07:50:01 -08:00