Commit Graph

13577 Commits

Author SHA1 Message Date
Tomoko Uchida 1862ffd6a4 SOLR-13690: Fix test resource. 2019-09-02 09:14:45 +09:00
Erick Erickson 31c661f2db SOLR-13729: Add the caution that schemaless is not suitable for production to the 'Schemaless Mode' section of the ref guide 2019-09-01 09:57:23 -04:00
Erick Erickson 742218d7ba Merge branch 'SOLR-13729' 2019-09-01 09:54:45 -04:00
Erick Erickson 0ad1684dfc SOLR-13729: Add the caution that schemaless is not suitable for production to the 'Schemaless Mode' section of the ref guide 2019-09-01 09:54:19 -04:00
Tomoko Uchida 66d7dffc79 SOLR-13691: Add example field type configurations using name attributes to Ref Guide 2019-09-01 01:32:10 +09:00
Tomoko Uchida 77c1ed7d16 SOLR-13690: Migrate field type configurations in default/example schema files to look up factories by 'name' 2019-08-31 23:06:32 +09:00
Jan Høydahl 52be32d4ad SOLR-13122: Ability to query aliases in Solr Admin UI 2019-08-30 14:16:58 +02:00
Mikhail Khludnev 6dea678439 SOLR-13720: BlockJoinParentQParser.getCachedFilter made public 2019-08-29 17:37:48 +03:00
Jason Gerlowski 319cb005d3 SOLR-13539: Introduce EmbeddedSolrServerTestBase
This groundwork commit allows tests to randomize request content-type
more flexibly.  This will be taken advantage of by subsequent commits.

Co-Authored-By: Thomas Woeckinger
Closes: #755
2019-08-29 09:52:46 -04:00
Ishan Chattopadhyaya f27665198a SOLR-13718: A more targeted fix for SPLITSHARD, thereby avoiding Backup/Restore test failures 2019-08-29 17:27:40 +05:30
Tomoko Uchida 43d489cb4a SOLR-13593: Add SPI for ReversedWildcardFilterFactory 2019-08-29 15:01:46 +09:00
Marcus b37d92bfee SOLR-13649 change the default behavior of the basic authentication plugin. (#805)
SOLR-13649: Property 'blockUnknown' of BasicAuthPlugin and JWTAuthPlugin now defaults to 'true'. This change is backward incompatible. To achieve the previous default behavior, explicitly set 'blockUnknown':'false' in security.json
2019-08-29 10:57:50 +05:30
Ishan Chattopadhyaya a8d5bd34bf SOLR-13718: SPLITSHARD (async) with failures in underlying sub-operations can result in data loss
When SPLITSHARD is issued asynchronously, any exception in a sub-operation isn't propagated and the overall
  SPLITSHARD task proceeds as if there were no failures. This results in marking the active parent shard inactive
  and can result in two empty sub-shards, thus causing data loss.
2019-08-29 10:04:08 +05:30
Noble Paul cf21340294
SOLR-13723: JettySolrRunner should support /api/* (the v2 end point) 2019-08-29 14:01:52 +10:00
noble 54bd950819 formatting 2019-08-28 14:34:35 +10:00
Anshum Gupta 0c9ec35f88
SOLR-13257: Cleanup code and make the AffinityReplicaTransformer constructors private (#848)
SOLR-13257: Cleanup code and make the constructors private as the constructor is supposed to be called via the static getInstance method.
2019-08-27 16:27:20 -07:00
Tomas Fernandez Lobbe 7b589ad769 SOLR-13542: Move CHANGES entry to 8.3. Added contributor 2019-08-27 15:15:43 -07:00
Tomas Fernandez Lobbe 00f4bbe6fc
Merge pull request #717 from KoenDG/SOLR-13542
SOLR-13542: Code cleanup - Avoid using stream filter count where possible
2019-08-27 11:37:39 -07:00
noble ea940347a7 SOLR-13650 : test jars recompiled with jdk8 2019-08-27 14:58:53 +10:00
noble 764747e8b2 SOLR-13710: Persist package jars locally & expose them over http at /api/node/blob 2019-08-27 14:08:17 +10:00
Noble Paul e23c50b2a8
SOLR-13710: Persist package jars locally & expose them over http 2019-08-27 14:04:42 +10:00
noble 7e5c071c08 SOLR-13721: TestApiFramework#testFramework failing in master consistently 2019-08-27 12:01:23 +10:00
KoenDG e2a285b6df Code changes and CHANGES.txt editted.
The majority of the code seems to already be using anyMatch and noneMatch logic, these few remaining instances were using count() and comparing the result to 0.
This changes everything to anyMatch and noneMatch, which is also potentially more performant.

Extra newline.
2019-08-26 22:16:20 +02:00
noble 0ad8c1f302 SOLR-13699 - maxChars no longer working on CopyField with javabin 2019-08-26 09:00:54 +10:00
Chris Troullis 64a4ca57a8 SOLR-13699 - maxChars no longer working on CopyField with Javabin 2019-08-26 08:57:17 +10:00
Tomas Fernandez Lobbe 225fd3d8ee SOLR-13655: Fix precommit 2019-08-23 15:29:36 -07:00
David Smiley f335ac9bbc SOLR-11601: Improve geodist error message when using with LLPSF. 2019-08-24 00:18:48 +02:00
Tomas Fernandez Lobbe 180f6d2ec9 SOLR-13655: Added CHANGES entry 2019-08-23 14:34:23 -07:00
Atri Sharma 19aecb0f7d SOLR-13655:Upgrade Collections.unModifiableSet to Set.of and Set.copyOf (#817) 2019-08-23 14:31:28 -07:00
Jan Høydahl 07f1364800 SOLR-13702: Fix precommit 2019-08-23 18:19:35 +02:00
Jan Høydahl 0aa3654802
SOLR-13702: Some components register twice their metric names (#834) 2019-08-23 15:23:58 +02:00
noble 1cbc5eaf51 SOLR-13707: API to expose the currently used package name, details for each plugin 2019-08-22 16:29:20 +10:00
Noble Paul d1e4d81355
SOLR-13707: API to expose the currently used package name, details for each plugin (#841) 2019-08-22 16:27:19 +10:00
Chris Hostetter 2fdc882bc4 Additional logging in test framework methods that 'waitFor' something to better trace order of operations when failures occur 2019-08-21 13:13:40 -07:00
Tomas Fernandez Lobbe 8f4103dd4b SOLR-13257: Support deterministic replica routing
Deterministic replica routing can help improve caching and allow a more consistent paging when sorting by score

This closes #677
2019-08-21 11:31:12 -07:00
noble 101fa624c3 SOLR-13706: Config API output is broken for "highlight" component 2019-08-21 07:29:03 +10:00
nppoly 26628b2717 LUCENE-8755: Spatial-extras quad and packed-quad trees now index
points a little faster, and also fix an edge case bug.
 Fixes #824
2019-08-20 23:09:33 +02:00
Chris Hostetter 8725944fba SOLR-13650: AwaitsFix TestContainerReqHandler.testCacheFromGlobalLoader
the jenkins failure rate for this test since it was committed is over 80%, it needs to be dsaibled until this can be addressed
2019-08-20 09:45:11 -07:00
Noble Paul 30ce19a13e
SOLR-13650:ref guide typo 2019-08-20 18:36:24 +10:00
Munendra S N 540de65e14 SOLR-13704: correct error codes for client errors in expand component 2019-08-20 09:44:05 +05:30
noble 37b2a1f9b2 SOLR-13650: ref guide 2019-08-20 12:04:15 +10:00
noble aa4ba2f797 SOLR-13650: CHANGES.txt 2019-08-20 11:52:41 +10:00
noble d51a33f58f SOLR-13650: precommit errors fixed 2019-08-20 11:48:56 +10:00
Chris Hostetter a12cf2f6d8 Harden TestExtendedDismaxParser.testBf
Eliminate assumption about index order
2019-08-19 15:33:19 -07:00
noble 6eae96c34c SOLR-13650: cache reload listener 2019-08-20 05:49:46 +10:00
noble ca4fc9b912 SOLR-13650: compile error fixed 2019-08-20 05:12:58 +10:00
Noble Paul a4b0ab530f
SOLR-13650: Support for named global classloaders 2019-08-20 05:00:38 +10:00
Chris Hostetter 8a24641fb2 Harden TestExportWriter
force MergePolicy to ensure index order assumptions are valid
2019-08-19 11:53:34 -07:00
Munendra S N 0654c2496d SOLR-6328: return missing count for facet.missing=true even if limit=0
* facet.missing is independent of facet.limit. So, even for limit=0,
  missing counts should be return if facet.missing=true
2019-08-19 20:46:04 +05:30
noble 6c94f659d2 SOLR-13677: All Metrics Gauges should be unregistered by the objects that registered them 2019-08-19 19:51:26 +10:00
Noble Paul 7415fe4539
SOLR-13677: All Metrics Gauges should be unregistered by the objects that registered them (#836)
* SOLR-13677: All Metrics Gauges should be unregistered by the objects that registered them
2019-08-19 19:48:06 +10:00
Chris Hostetter f5856ef404 SOLR-13701: Fixed JWTAuthPlugin to update metrics prior to continuing w/other filters or returning error 2019-08-18 12:20:51 -07:00
Chris Hostetter 251259d5ab SOLR-13700: Fixed a race condition when initializing metrics for new security plugins on security.json change 2019-08-18 12:18:54 -07:00
Chris Hostetter 54ab07718a Harden AliasIntegrationTest.testClusterStateProviderAPI
use the underlying ZKStateReader of the ClusterStateProvider when waiting for the alias ZNodeVersion to change

prior versions of the test waited using the zkStateReader of the remote client, but there was no garuntee that the state had been updated on the ClusterStateProvider being used by the test
2019-08-14 21:36:38 -07:00
Andrzej Bialecki 7c2d45d53e SOLR-13694: IndexSizeEstimator NullPointerException. 2019-08-14 17:57:13 +02:00
Mikhail Khludnev 70162d3fb1 adding <SpanPositionRange> into XML Query Parser 2019-08-14 18:19:47 +03:00
Andrzej Bialecki a4ff429ab0 SOLR-13693: Use strongly-typed setters for cache parameters. 2019-08-14 15:58:39 +02:00
Christine Poerschke 9e6047331b SOLR-13240: make operation-not-null checks consistent in TestPolicy.testNodeLostMultipleReplica
(Richard Goodman via Christine Poerschke)
2019-08-13 15:24:19 +01:00
noble 07ca02b737 SOLR-13688: Run the bin/solr export command multithreaded 2019-08-13 18:54:05 +10:00
Chris Hostetter 0291db44bc SOLR-13464: fix javadoc typo that precommit somehow missed? 2019-08-12 14:55:17 -07:00
Chris Hostetter c7822c393e SOLR-13464: Test work arounds
* Refactor existing work around in BasicAuthIntegrationTest up into SolrCloudAuthTestCase for re-use in JWTAuthPluginIntegrationTest

 * Simplify BasicAuthOnSingleNodeTest and PKIAuthenticationIntegrationTest to use their existing (static) security settings on creation of MiniSolrCloud.  Since they no longer modify security.json once the nodes are alive, the issue no longer affects them
2019-08-12 14:03:54 -07:00
Megan Carey 768ca7c5a7 SOLR-13399: Adding splitByPrefix param to IndexSizeTrigger; some splitByPrefix test and code cleanup 2019-08-12 15:59:45 -04:00
Jan Høydahl d468d71c03 SOLR-13647: Default solr.in.sh contains incorrect default value 2019-08-12 13:56:35 +02:00
Erick Erickson f6f1b4244c SOLR-13568: Precommit fail Java var until 9x. Fail var... 2019-08-11 11:49:54 -04:00
Jason Gerlowski 52f1108a0e SOLR-13573: Add SolrRangeQuery getters for bounds 2019-08-11 09:02:38 -04:00
Tomoko Uchida 9b986d268f SOLR-13593: Allow to look up analyzer components by their SPI names in field type configuration. 2019-08-11 16:35:25 +09:00
Munendra S N 9546d8612c SOLR-13680: use try-with-resource to close closeable resources
closes #822
2019-08-10 13:51:11 +05:30
noble 1c9e0b8644 SOLR-13682: command line option to export documents to a file 2019-08-10 17:49:57 +10:00
noble b9912411ea SOLR-13682: precommit errors 2019-08-10 17:21:17 +10:00
Noble Paul e45e8127d5
SOLR-13682: command line option to export documents to a file
* SOLR-13682: command line option to export documents to a file
2019-08-10 16:34:23 +10:00
noble f692750356 Formatting fixed 2019-08-10 12:00:30 +10:00
Chris Hostetter 6cbe39c786 Harden SolrJmxReporterCloudTest
null out local ref to PlatformMBeanServer so test runner doesn't count it's memory size against the test class
2019-08-09 15:27:28 -07:00
yonik 2e5c554fea SOLR-13399: fix splitByPrefix default to be false 2019-08-09 09:05:22 -04:00
Shalin Shekhar Mangar e59f41b671 SOLR-13141: CDCR bootstrap does not replicate index to the replicas of target cluster.
The leader node on the target cluster will now increment its term after bootstrap succeeds so that all replicas of this leader are forced to recover and fetch the latest index from the leader.
2019-08-09 08:28:52 +05:30
Jason Gerlowski 2eb493d170 SOLR-13622: Rename FilesStream -> CatStream
Also fixes an 'cat' OS-dependent bug in StreamExpressionTest.
2019-08-08 08:38:21 -04:00
Shalin Shekhar Mangar ed137dbe28 SOLR-13674: NodeAddedTrigger does not support configuration of replica type hint.
A new replicaType property has been added to NodeAddTrigger so that new replicas of the given type are added when the preferredOp is addreplica. The default value of replicaType is `NRT`.

This closes #821.
2019-08-08 15:14:55 +05:30
Jan Høydahl 64884be044
SOLR-13672: Zk Status page now parses response from Zookeeper 3.5.5 correctly (#818)
* SOLR-13672: Cloud -> Zk Status page now parses response from Zookeeper 3.5.5 correctly
2019-08-07 09:10:37 +02:00
Chris Hostetter 878d332a0b Harden BasicAuthIntegrationTest w/work around for SOLR-13464 2019-08-06 15:08:26 -07:00
yonik 19ddcfd282 SOLR-13399: ability to use id field for compositeId histogram 2019-08-06 14:10:20 -04:00
Jan Høydahl 7ab12b405d Skip mocking for simple tests 2019-08-06 15:39:21 +02:00
Jan Høydahl 79c13d62d3 Added check for explicit empty line response from Zookeeper 2019-08-06 15:33:08 +02:00
Jan Høydahl 8d0506e962 Add spaces 2019-08-06 15:19:30 +02:00
Jan Høydahl 108381766a CHANGES 2019-08-06 15:16:29 +02:00
Jan Høydahl 5ff709d4bd Merge remote-tracking branch 'origin/master' into solr13672-zk
# Conflicts:
#	solr/CHANGES.txt
2019-08-06 15:14:55 +02:00
Chris Hostetter 9e250f7219 Fix incorrect assertions in RulesTest.doIntegrationTest
my previous commit added waitForState calls to doIntegrationTest that forgot to take into account initial repFactor when createShard was called

as a result, the test could only pass if wather was called after a initial leader went live, before other replicas became live

this commit fixes this mistake, and hardens the assertions about the location of those replicas given the rule in use

also adds new expecation that trying to add additional replicas that would violate rule will cause request ot fail
2019-08-05 17:08:28 -07:00
Chris Hostetter a052fb5436 SOLR-13678: Harden CollectionPropsTest.testReadWriteCached to work around removeCollectionPropsWatcher() deadlock bug 2019-08-05 11:49:32 -07:00
Bruno Roustant d97912529d SOLR-11866: QueryElevationComponent match="subset" feature
Closes #780
2019-08-05 11:23:47 +02:00
Munendra S N 6fc042dd6d SOLR-13679: move changes entry to bug fix section 2019-08-05 10:40:22 +05:30
Munendra S N 84a62a5d87 SOLR-13679:Fix default style of [explain] registered in solrconfig.xml 2019-08-05 10:04:15 +05:30
Diego 751e64651c SOLR-13676: Reduce log verbosity in TestDistributedGrouping (#819)
* SOLR-13676: Reduce log verbosity in TestDistributedGrouping using ignoreException

* Code review

* Remove Assert
2019-08-05 09:27:44 +05:30
yonik b6c26f6c16 SOLR-13399: fix splitByPrefix test 2019-08-03 12:52:35 -04:00
Munendra S N 8c4fde94fe SOLR-12555: use expectThrows() to verify the ex thrown in tests 2019-08-03 13:00:49 +05:30
Chris Hostetter e8418adedb Harden CollectionPropsTest:
These fixes all relate to testWatcher + testMultipleWatchers:
* add additional asserts to the test methods to assert the expected property values are found
* mark Watcher.props volatile to prevent stale read by test thread
* add some randomization to Watcher.props to either come from the onStateChanged() input or
  from an explicit call to ZkStateReader.getCollectionProperties
  - previuosly, for reasons i don't understand, the test only consulted
    ZkStateReader.getCollectionProperties inside the Watcher, and ignored the onStateChanged()
    input
  - now the test validates both
* move all Watcher.triggered access into the existing synchronization blocks to prevent
  waitForTrigger() from returning prematurely due to gaining synch lock _after_
  Watcher.triggered was incremented in onStateChanged(), but _before_ onStateChanged() updated
  Watcher.props
* add detailed logging to provide additional info to help debug any additional jenkins failures
  that might pop up in the future if these fixes aren't sufficient
2019-08-02 17:02:17 -07:00
Boris Pasko 901f381c61
SOLR-6305: Replication from filesysem defaults, not from server defaults
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-08-02 18:43:26 -04:00
Joel Bernstein ee0fd49244 SOLR-13667: Fix precommit 2019-08-02 15:48:55 -04:00
Joel Bernstein 03a39666c0 SOLR-13667: Add upper, lower, trim and split Stream Evaluators 2019-08-02 15:38:26 -04:00
Jan Høydahl be7e9df57d Unused import 2019-08-02 15:42:05 +02:00
Jan Høydahl 9548481c8c Fix precommit
Remove errors from each host detail map
Display secureClientPort and server.1, server.2, server.3...
Added test for various failure responses and expected result from multiple nodes
2019-08-02 15:03:40 +02:00
Jan Høydahl 1123afae94 SOLR-13672: Cloud -> Zk Status page now parses response from Zookeeper 3.5.5 correctly 2019-08-02 13:01:20 +02:00
Chris Hostetter ab470a6564 SOLR-13664: Fixed SolrTestCaseJ4.deleteCore() to properly reset the dataDir used by initCore() 2019-08-01 09:15:18 -07:00
noble 15c2fd673a SOLR-13659: Refactor Cache config to lazily load the the class 2019-07-31 19:14:17 +10:00
noble daab5b11b2 SOLR-13659: Refactor CacheConfig to lazily load the the implementation class 2019-07-31 18:46:22 +10:00
Noble Paul 4cf6bbefcc
SOLR-13659: Refactor Cache config to lazily load the the class (#813) 2019-07-31 03:50:17 -04:00
Chris Hostetter 6dea203d11 SOLR-13660: Fixed AbstractFullDistribZkTestBase.waitForActiveReplicaCount() to ensure replicas are active. 2019-07-30 10:14:38 -07:00
Joel Bernstein 254a17b3b0 SOLR-13625: Fix precommit 2019-07-30 10:42:06 -04:00
Joel Bernstein 62955b1a4e SOLR-13625: Fix broken test cases 2019-07-30 10:42:06 -04:00
Joel Bernstein d0674866ed SOLR-13625: Add CsvStream, TsvStream Streaming Expressions and supporting Stream Evaluators 2019-07-30 10:42:06 -04:00
Munendra S N cb94eeb491 SOLR-11266: remove content-type override from _default configSet 2019-07-30 10:06:56 +05:30
Munendra S N 1d303cee7f SOLR-13657: fix unsupported xpath test in TestXPathRecordReader
* use expectThrows to verify the exception and the message
* fix NPE in the test
2019-07-29 22:17:40 +05:30
Munendra S N 9f74cb10d3 SOLR-13643:add Getter/Setter in ResponseBuilder to handle analytic res 2019-07-29 09:48:31 +05:30
Munendra S N 501a91763b SOLR-13656: fix bad mergePolicyFactory test in SolrIndexConfigTest
* use expectThrows to verify the exception and ex message
* remove unused DummyMergePolicy
2019-07-29 09:30:25 +05:30
Munendra S N 8566bcd25e SOLR-13633: fix typos in analytics documentation 2019-07-29 09:28:28 +05:30
Jason Gerlowski cab83772c9 SOLR-13629: Cleanup whitespace in analytics contrib 2019-07-28 15:36:21 -04:00
Chris Hostetter 4050ddc59b Harden RulesTest
* ensure all collections/replicas are active

* use waitForState or waitForActiveCollection before checking rules/snitch to prevent false failures on stale state

* ensure cluster policy is cleared after each test method

Some of these changes should also help ensure we don't get (more) spurious failures due to SOLR-13616
2019-07-26 18:41:06 -07:00
Ishan Chattopadhyaya c20988907f SOLR-13637: Using google common's ImmutableMap instead of carrot's 2019-07-25 19:09:37 -04:00
Jason Gerlowski dc8e9afff9 SOLR-13622: Add fileStream stream-source 2019-07-25 09:13:00 -04:00
noble 100c160017 SOLR-13637: BasicAuthIntegrationTest failures fixed 2019-07-25 04:30:48 -04:00
yonik c0da27173c SOLR-13399: annotate flaky test 2019-07-24 21:58:50 -04:00
noble 85814e262c SOLR-13637: addressing test failures take 2 2019-07-23 12:17:49 -04:00
Munendra S N eae7a46be9 SOLR-13191: correct the zookeeper link in ref-guide 2019-07-23 21:07:57 +05:30
Andrzej Bialecki d92159b896 SOLR-13558: Allow dynamic resizing of SolrCache-s. 2019-07-23 12:21:21 +02:00
noble 7f04604d56 SOLR-13637: reject duplicate jar updates 2019-07-22 16:23:44 -04:00
noble 2ef0ba3dce SOLR-13637: addressing test failures 2019-07-22 08:33:02 -07:00
Jan Høydahl 369a5dc796 SOLR-6520: Replace old wiki link with versioned RefGuide link in version specific release docs 2019-07-22 14:24:43 +02:00
noble afa64c892b SOLR-13637: removed ununsed code 2019-07-21 12:29:02 -07:00
Noble Paul 631edee1cb
SOLR-13637 Enable loading of plugins from the corecontainer memclassloader 2019-07-21 12:21:56 -07:00
noble 7d716f1107 SOLR-13565: Precommit errors 2019-07-22 03:31:39 +10:00
Mikhail Khludnev c173c2e863 SOLR-11556: fixing multiple backup repository support. 2019-07-21 13:04:48 +03:00
Munendra S N b5a190b576 SOLR-10377: add debug.explain.structured to Admin UI
* This param would be displayed only if debugQuery is selected
2019-07-20 10:41:57 +05:30
Munendra S N 96d400f511 SOLR-12870: use StandardCharsets instead of String values
Fixes #469
2019-07-20 10:10:32 +05:30
noble 69779d0a63 SOLR-13565: Node level runtime libs loaded from remote urls
SOLR-13553: Node level custom RequestHandlers
2019-07-20 14:33:31 +10:00
Noble Paul bd30c3701e
SOLR-13565, SOLR-13553 (#774)
* SOLR-13565: initial commit

* SOLR-13565: updated with testcase

* SOLR-13565: removed unused methods

* SOLR-13565: better logging

* SOLR-13565: disable SSL

* SOLR-13565: more tests

* SOLR-13565: syncing with master

* SOLR-13565: fixing tests

* SOLR-13565: fixing tests

* SOLR-13534: Fix test

Remove buggy 'port roulette' code that can easily fail if OS gives the selected port to a different process just before creating the server

Use jetty's built in support for listining on an OS selected port instead

Also increase timeouts to better account for slow/heavily loaded (ie:jenkins) VMs where SolrCore reloading may take longer then 10 seconds

* SOLR-13565: set proper permission name

* SOLR-13565: syncing with master

* SOLR-13565: syncing with master

* SOLR-13565: removed accidental change

* SOLR-13565: removed accidental change

* SOLR-13565: removed accidental change

* SOLR-13565: more tests

* SOLR-13565: Tests with key signing tests

* SOLR-13565: fixing concurrency issues in tests

* SOLR-13565: add tests with 512 bit RSA

* SOLR-13565: fixing concurrency issues

* SOLR-13565: remove unused code
2019-07-20 14:20:32 +10:00
yonik c5cabf1e03 SOLR-13399: SPLITSHARD splitByPrefix for compositeId 2019-07-19 11:35:01 -04:00
Gus Heck b619bcd1fa SOLR-13375 - CHANGES.txt - Probably should be in a new features section 2019-07-19 11:06:01 -04:00
Gus Heck 785b658427 SOLR-13375 - CHANGES.txt entry 2019-07-19 10:11:22 -04:00
Gus Heck a7435d9e6e SOLR-13375 - fix test. Can't shuffle the to random collections at
this point in the test since the collections available are changing due
to deletions and we might try to communicate with a collection
that was (correctly) deleted.
2019-07-19 10:00:53 -04:00
Chris Hostetter 24b94b8dac Harden StreamDecoratorTest
remove flakey dependency on sleep (to wait for cache expiration) w/explicit instruction to ignore cache

sleep is not garunteed to sleep the exact amount (based on limitations of the system clock)
2019-07-18 19:40:24 -07:00
Christine Poerschke 5e3947091a SOLR-13585: Factor out SearchGroupsResultTransformer.[de]serializeOneSearchGroup methods. (Christine Poerschke, Diego Ceccarelli) 2019-07-18 14:23:32 +01:00
Munendra S N 1fc416404c SOLR-13206: Fix AIOOBE when group.facet is specified with group.query
group.facet is supported only for group.field. When group.facet is
used with group.query, then return proper error code
2019-07-18 11:08:17 +05:30
Munendra S N 4b75776f5a SOLR-13634:move ResponseBuilderTest to same package as ResponseBuilder 2019-07-17 22:38:35 +05:30
Munendra S N 1ecd02deb5 SOLR-12368: inplace update for field that doesn't yet exist in any doc
If the field is non-stored, non-indexed and docvalue enabled numeric field
then inplace update can be done. previously, lucene didn't support
docvalue update for field that is not yet present in indexWriter but
LUCENE-8316 added support for this.
This adds support to update field which satisfies inplace conditions
but which doesn't yet exist in any docs
2019-07-17 21:45:15 +05:30
Erik Hatcher 96dc45b649 Add changes blurb 2019-07-17 12:03:16 -04:00
marcussorealheis e94fe382e9 fix another ant build change. 2019-07-17 11:38:35 -04:00
marcussorealheis d351cd87a1 revert another build change. 2019-07-17 11:38:35 -04:00
marcussorealheis 4d0a8ccaf1 revert any changes to chosen. 2019-07-17 11:38:35 -04:00
marcussorealheis 3086040feb change only the build file rather than the names. 2019-07-17 11:38:35 -04:00
marcussorealheis e4da5a3589 removing accidental file and updating index.html. 2019-07-17 11:38:35 -04:00
marcussorealheis 7868ee159c adding a file I accidentally deleted. 2019-07-17 11:38:35 -04:00
marcussorealheis a4e76c81cd re-add deleted file modify index. 2019-07-17 11:38:35 -04:00
marcussorealheis 02a0541000 fixed the ant build file 2019-07-17 11:38:35 -04:00
marcussorealheis c0af188347 modify the build.xml to exclude full JS files. 2019-07-17 11:38:35 -04:00
marcussorealheis 78b278993d moved to minified files in index. 2019-07-17 11:38:35 -04:00
marcussorealheis 1ff157abbb update the build.xml file to exclude full js files where minified ones exist. 2019-07-17 11:38:35 -04:00
marcussorealheis cd04f002cd rename the files for which minified versions are present so that they are not inlcuded in running WAR files. 2019-07-17 11:38:35 -04:00
iverase 41ae03a9a0 LUCENE-8923: Add Lucene-8.3 entry in CHANGES.txt 2019-07-17 13:53:21 +02:00
Chris Hostetter 19c78ddf98 SOLR-13534: Fix test
Remove buggy 'port roulette' code that can easily fail if OS gives the selected port to a different process just before creating the server

Use jetty's built in support for listining on an OS selected port instead

Also increase timeouts to better account for slow/heavily loaded (ie:jenkins) VMs where SolrCore reloading may take longer then 10 seconds
2019-07-16 14:34:23 -07:00
noble 2d357c960c SOLR-13534: Make the test more robust 2019-07-16 11:53:13 +10:00
Gus Heck c97551cc36 SOLR-13375 - 2 dimensional routed aliases 2019-07-15 09:57:13 -04:00
Ishan Chattopadhyaya 26ede632e6 SOLR-13619: Kerberos plugin to forward original user principal 2019-07-15 15:10:07 +05:30
Ishan Chattopadhyaya 7e0af71c1e SOLR-13472: Forwarded requests should skip authorization on receiving nodes 2019-07-15 14:43:41 +05:30
Tomoko Uchida 1a53d86882 Update solr/CHANGES.txt for SOLR-13588 and SOLR-13602. 2019-07-14 14:50:04 +09:00
Chris Hostetter 7ddba3b712 Harden DeleteReplicaTest
* tighten assertions related to type of watcher that should be removed

* use waitForActiveCollection before deleting collections to work around SOLR-13616 and/or SOLR-13627
2019-07-13 08:02:49 -07:00
David Smiley aab166d830 CHANGES.txt: separate improvements to dedicated section 2019-07-11 23:11:20 -04:00
Chris Hostetter f85a78c441 SOLR-13532: Fix http timeout and error logging bugs in RecoveryStrategy 2019-07-11 14:04:46 -07:00
Christine Poerschke 7eb730f6e0 Fix couple of solr-ref-guide typos. 2019-07-11 10:18:41 +01:00
David Smiley b17740b4b5 CHANGES.txt: separate improvements to dedicated section 2019-07-10 22:37:37 -04:00
David Smiley 9c684bbdfa CHANGES.txt: separate improvements to dedicated section 2019-07-10 22:35:08 -04:00
Chris Hostetter 8a277cab7d Harden TestPolicyCloud
- ensure all collections/replicas are active

- tighten assertions around expected replica locations

- eliminate some redundent code

These changes should also help ensure we don't get (more) spurious failures due to SOLR-13616
2019-07-10 17:16:59 -07:00
Munendra S N 8322ea55f4 SOLR-11263: add test for payload func with undefined field
Payload func with undefined used to throw NPE. In SOLR-11610, this
was fixed to return proper error but there are no tests to verify
changed the behavior.
This add simple test to verify error code and error message
2019-07-10 10:17:55 +05:30
Christine Poerschke bf9a7e2626 Fix two 'against' typos. 2019-07-09 10:56:49 +01:00
Andrzej Bialecki dd4813d5b8 SOLR-13583: Return 400 Bad Request instead of 500 Server Error when a complex
alias is found but a simple alias was expected.
2019-07-05 09:19:32 +02:00
Noble Paul 404cf4947d
SOLR-13538: toNativeType () TrieDate & EnumField do not handle CharSequence properly 2019-07-05 14:47:31 +10:00
S N Munendra 5f1d342a96 SOLR-13538: Fix classcastEx in TrieDateField for atomic updates (#764)
SOLR-13538: toNativeType () TrieDate & EnumField do not handle CharSequence properly
2019-07-05 14:43:12 +10:00
Andrzej Bialecki 66812b2a67 SOLR-13003: Fix WrapperModel method delegation. 2019-07-03 20:17:46 +02:00
Anshum Gupta b7090d9c25
SOLR-13507: Remove support for addr parameter from the /solr/admin/zookeeper endpoint. (#759) 2019-07-03 10:50:01 -07:00
Munendra S N 96860eb181 SOLR-13596: remove deprecated groupSpec methods 2019-07-03 20:55:56 +05:30
Tomoko Uchida 2e3e6c5944 SOLR-13602: Update _default schema for unittests. 2019-07-04 00:08:13 +09:00
Andrzej Bialecki 5897787291 SOLR-13003: Query Result Cache does not honour maxRamBytes parameter. 2019-07-03 17:03:43 +02:00
Munendra S N e3d247f288 SOLR-13603: remove deprecated groupSpec methods usage
This is precursor to removing deprecated methods
2019-07-03 19:33:08 +05:30
Andrzej Bialecki 717afb11fc SOLR-13583: Impossible to delete a collection with the same name as an existing alias. 2019-07-03 15:52:36 +02:00
Tomoko Uchida 9d2f516357 SOLR-13588: Document Estonian analyzer in Solr Ref Guide 2019-07-03 22:02:47 +09:00
Tomoko Uchida 45ea46a425 SOLR-13602: Add a field type for Estonian language to default managed_schema 2019-07-03 20:57:38 +09:00
David Smiley 325824cd39 SOLR-13158: DIH: Add System property toggle for use of dataConfig param 2019-07-02 23:59:39 -04:00
Chris Hostetter b4a602f6b2 SOLR-13599: additional 'checkpoint' logging to try and help diagnose strange failures 2019-07-02 14:52:13 -07:00
Atri Sharma f686167e71 LUCENE-8857: Introduce Custom Tiebreakers in TopDocs#merge (#757)
This commit introduces custom tiebreakers which allows users to
specify custom tiebreakers when ordering hits to return. A
default tiebreaker is introduced for tie breaking on shard index
first and then docID.
2019-07-02 20:35:18 +02:00
Joel Bernstein c478193004 SOLR-13589: Update CHANGES.txt 2019-07-02 08:55:48 -04:00
Munendra S N 48b026d5ee SOLR-13404: Fix NPE when group=true and no group.field is present
* This was introduced in SOLR-12249
2019-07-02 10:27:54 +05:30
Munendra S N cfd22cd493 SOLR-13404: support group.query in multishard env with group.main=true
group.query after execution forms QueryCommandResult. In case of
group.main=true or group.format=simple, QueryCommandResult was not
consumed in EndResultTransformer. Also, MainEndResultTransformer assumed
that always group.field would be specified. When group.field not specified
it failed with AIOOBE. After adding suppport for QueryCommandResult in
EndResultTransformers and handling AIOOBE, group.query started giving results

Working on tests exposed few other issues. Results differed b/w standalone
& distributed mode.
* One of the reason is that TopGroupShardResponseProcessor doesn't consider correct
  limit and offset when group format is simple. In case of simple, start and rows should be used
  as limit and offset instead of group.limit and group.offset.
* Secondly, In distributed second phase grouping, computing docsToCollect didn't consider
  group response format. This issue is again similar to above issue
* offset(group.offset or start) not being considered during TopDocs#merge caused
  different results. The fix was to use to offset in merge process
* group.offset doesn't support negative values but there is no checks on the value.
  In case of negative values AIOOBE. Now, checks are added for negative values and
  returns proper error message(this change is for both standalone and distrbuted).
  Validation is done only in case of group.format=grouped as that is only case when
  group.offset is consumed.

Fixing above issues resolved the differences b/w standalone and distributed mode.
2019-07-02 08:11:13 +05:30
Joel Bernstein 96d11063a7 SOLR-13589: Fix precommit 2019-07-01 21:54:25 -04:00
Joel Bernstein 6a99151eae SOLR-13589: Add zplot cluster test case 2019-07-01 21:39:45 -04:00
Joel Bernstein 2f6a681b39 SOLR-13589: Allow zplot to visualize clusters and convex hulls 2019-07-01 21:39:45 -04:00
Munendra S N 0e877aac34 SOLR-12554: Expose IndexWriterConfig's ramPerThreadHardLimitMB
* When ramPerThreadHardLimitMB is not specified, then Lucene's
  default value 1945 is used. The specified value should be
  greater than 0 and less than 2048MB
2019-07-01 22:42:19 +05:30
Jason Gerlowski 8242e6ce1d SOLR-13539: Fix mv update of UUID, enum, bool and binary fields
Co-Authored-By: Thomas Wockinger
2019-07-01 08:53:54 -04:00
Jason Gerlowski d6345439dc Add missing predefined RBAP perms to ref-guide 2019-06-30 06:36:43 -04:00
Mikhail Khludnev 2fdb4dd7d4 SOLR-13577: wait jetty to stop as @hossman advised. 2019-06-30 09:45:35 +03:00
Munendra S N cfd6e1adfa SOLR-12364: add test cases for edismax boost
* This adds tests for bf and boosts
* Use expectThrows in edismax tests to verify exception
2019-06-29 22:18:02 +05:30
Munendra S N 9228cefbc8 SOLR-9409: improve error message on unsupported types in collapsing
* Improve error message when collapsing is not supported on given
  fieldtype
* Return 400 error code when unsupported value are passed for max,min
  or in case of syntax error
2019-06-29 21:37:09 +05:30
Chris Hostetter 8b72e91df7 SOLR-13580: update test to account for different versions of java using different locale specific numeric formatting characters 2019-06-28 12:10:54 -07:00
Christine Poerschke a49ddbaf11 SOLR-13576: Factor out a TopGroupsShardResponseProcessor.fillResultIds method. (Christine Poerschke, Diego Ceccarelli) 2019-06-28 18:38:41 +01:00
Christine Poerschke 5d2569eab1 SOLR-13280: Strengthen ScheduledTrigger's preferredOperation parameter validation. 2019-06-28 18:35:34 +01:00
Christine Poerschke 993c051a0e SOLR-13279: Clarify ScheduledTrigger's "every parameter missing" error response. 2019-06-28 18:32:25 +01:00
Mikhail Khludnev d54555c757 SOLR-13577: spin until slave got a replication failure while master is down. 2019-06-28 17:28:48 +03:00
Chris Hostetter aaf20aefa4 SOLR-12988: SSLTestConfig has been changed to throw AssumptionViolatedException when tests/seeds request SSL but the JVM appears to be an OpenJDK version known to have SSL bugs
SOLR-13574: Add CHANGES entry that was overlooked
2019-06-27 15:51:20 -07:00
Chris Hostetter 7e57d3a9d9 SOLR-13574: Fix many test and test-framework classes to not fail on After/AfterClass cleanup if assumptions fail in Before/BeforeClass setup 2019-06-27 10:28:06 -07:00
Mikhail Khludnev 48fb45e614 SOLR-13577: retrying TestReplicationHandler.doTestIndexFetchOnMasterRestart. 2019-06-26 14:16:22 +03:00
Jan Høydahl b54126169b SOLR-13569: AdminUI visual indication of prod/test/dev environment 2019-06-26 12:09:02 +02:00
Alan Woodward 53f56fb7ad LUCENE-8811: Move max clause checks to IndexSearcher 2019-06-26 10:55:55 +01:00
Chris Hostetter 583c219183 SOLR-13580: add assumeThat calls to ParsingFieldUpdateProcessorsTest to skip test methods impacted by java 13-ea bug in NumberFormat.parse() 2019-06-25 16:26:03 -07:00
Andrzej Bialecki 4d1058db6e SOLR-13566: REINDEXCOLLECTION does not work with (basic) authentication. 2019-06-25 16:54:27 +02:00
Christine Poerschke 94ecd3a7f6 Fix op[t]ional typo in json-facet-api.adoc file. 2019-06-25 11:04:30 +01:00
Noble Paul 742c80550c reformatting 2019-06-25 17:02:17 +10:00
Mikhail Khludnev 4589bbe47b SOLR-12866: Turn TestHdfsCloudBackupRestore ON. No changes yet. 2019-06-25 08:49:26 +03:00
Munendra S N e0e5296abc SOLR-12979: fail fast when collapse field is non-docValued & non-uninvertible
* Improve error message when collapse field is non-docValued & non-uninvertible.
  Return error code 400 instead of 500 in the above case
2019-06-25 09:50:41 +05:30
David Smiley 85ec39d931 SOLR-13367: Range queries will now highlight in hl.method=unified mode.
Lucene MatchesUtils.disjunction method for disjunction over
 BytesRefIterator terms.
2019-06-25 00:10:08 -04:00
Chris Hostetter 689fa583a0 Revert "SOLR-12988: SSLTestConfig has been changed to throw AssumptionViolatedException when tests/seeds request SSL but the JVM appears to be an OpenJDK version known to have SSL bugs"
This reverts commit 6d6f14d391.

Reason for revert: after doing more testing I realized there are tests I overlooked which can (with randomized SSL usage) trigger NullPointerException
(or other related failures) in After/AfterClass due assumptions about cleanup that isn't actaully neccessary due to the AssumptionFailure
that may occur during Before/BeforeClass
2019-06-24 15:42:23 -07:00
Chris Hostetter 6d6f14d391 SOLR-12988: SSLTestConfig has been changed to throw AssumptionViolatedException when tests/seeds request SSL but the JVM appears to be an OpenJDK version known to have SSL bugs 2019-06-24 15:02:18 -07:00
Munendra S N 9cfba4a728 SOLR-13187: Fix NPE when invalid qParser is specified
* When non-existent qParser is specified return 400 error code
* SOLR-13197: Fix NPE when createQParser is called in StatsField
2019-06-24 22:38:39 +05:30
Munendra S N 54aff4ac7d SOLR-12127: set op with null or empty list val should be atomic update
* Inplace update supports set and inc operation but when null or
  empty list is specified with set op, then it should always be treated
  as atomic update since this case is equivalent to removing field
  from the document
2019-06-24 14:50:51 +05:30
Tomoko Uchida 98c85a0e1a LUCENE-8778: Define analyzer SPI names as static final fields and document the names in all analysis components. This also changes SPI loader to detect service names via the static NAME fields instead of class names. 2019-06-22 10:46:37 +09:00
David Smiley 54cc70127b LUCENE-8848 LUCENE-7757 LUCENE-8492: UnifiedHighlighter.hasUnrecognizedQuery
The UH now detects that parts of the query are not understood by it.
When found, it highlights more safely/reliably.
Fixes compatibility with complex and surround query parsers.
2019-06-21 17:05:56 -04:00
Mikhail Khludnev 9137a0b0fe SOLR-13545: ContentStreamUpdateRequest to close file. 2019-06-21 23:38:08 +03:00
Jason Gerlowski d318a6e3f9
SOLR-13261: Clarify parallel-sql docs to make it clear 'SELECT *' not supported 2019-06-20 22:07:08 -04:00
Chris Hostetter c8c2f2f25b SOLR-12988: Fix Revert
an (erroneous) assigment to useSsl was left in the constructor after the (intended) conditional assigment, rendering the conditional logic useless
2019-06-20 16:04:49 -07:00
David Smiley 54c5b8a7f1 SOLR-13523: Fix Atomic Updates when _nest_path_ is declared.
Change the most common test schema to include this field so we better
test our code paths.
2019-06-20 11:59:22 -04:00
Gus Heck 5d47875184 SOLR-13419 - Better infix for TRA collection names 2019-06-20 09:47:52 -04:00
Joel Bernstein 0aa6b11ae2 SOLR-10291: Updates CHANGES.txt 2019-06-19 20:57:44 -04:00
Joel Bernstein e88366c9b6 SOLR-10291: Add match Stream Evaluator to support regex matching 2019-06-19 19:40:20 -04:00
Cao Manh Dat e3752e87d0 SOLR-12988: Revert changes 2019-06-19 21:07:38 +01:00
Joel Bernstein 9dab797497 SOLR-13560: Update CHANGES.txt 2019-06-19 09:57:39 -04:00
Cao Manh Dat 91944a468e SOLR-12988: Skip running tests with SSL on Java 11 to 11.0.2 2019-06-19 10:43:17 +01:00
Mikhail Khludnev 48a1cb0bdc SOLR-7530: clarifying the doc 2019-06-19 10:45:01 +03:00
Joel Bernstein 8a35088947 SOLR-13560: Fix precommit 2019-06-18 22:33:40 -04:00
Joel Bernstein 1dd98ca65d SOLR-13560: Add isNull and notNull Stream Evaluators 2019-06-18 22:33:40 -04:00
Noble Paul aad7b96128
syntax error 2019-06-19 12:27:01 +10:00
Noble Paul 4c0c4cbdb5
typo 2019-06-19 12:21:30 +10:00
Noble Paul 39475119f7
typo 2019-06-19 12:20:17 +10:00
Noble Paul ed42d36c7b SOLR-13329: changed the put:on-each to put: on-each-node 2019-06-19 00:16:57 +10:00
Cao Manh Dat c8382890ae SOLR-12988: Avoid using TLSv1.3 for HttpClient 2019-06-18 12:49:51 +01:00
Cao Manh Dat 6d5453d508 Fix precommit 2019-06-18 12:36:43 +01:00
Daniel Collins 342b558b01 SOLR-13434: Fix opentracing mock dependency for Solr core tests 2019-06-18 11:37:31 +01:00
Mikhail Khludnev 4f6314c59b SOLR-7530: /terms responds per field arrays in JSON by default 2019-06-18 08:38:02 +02:00
Chris Hostetter 3030ea9d94 eliminate CPU hogging spin-loops in OverseerTest
this test already uses waitForState (frequently via verifyReplicaStatus) so there is no reason to include CPU/network/ZK intensive infinite loop checks looking for udpated cluster state
2019-06-17 15:42:14 -07:00
Chris Hostetter 7eb8703df6 SOLR-13490: fix TestWaitForStateWithJettyShutdowns to use correct (randomized) JettyConfig 2019-06-17 15:34:14 -07:00
Chris Hostetter 5a974860fa SOLR-13490: Fix CollectionStateWatcher/CollectionStatePredicate based APIs in ZkStateReader and CloudSolrClient to be triggered on liveNode changes.
Also add Predicate<DocCollection> equivilents for callers that don't care about liveNodes.
2019-06-17 09:59:43 -07:00
Noble Paul dff7611096 SOLR-13347: moved to "New Features" 2019-06-17 16:56:39 +10:00
Noble Paul 0b74b0ecc0 SOLR-13534 : Dynamic loading to support loading jars from a URL 2019-06-17 16:52:45 +10:00
Noble Paul d514beab94
SOLR-13534: Dynamic loading of jars from a remote url (#712)
* SOLR-13534 : Dynamic loading to support loading jars from a URL
2019-06-17 16:49:31 +10:00
Ishan Chattopadhyaya ded3b77171 SOLR-13434: Fixing documentation regarding samplePercentage clusterprop 2019-06-16 22:52:10 +05:30
Joel Bernstein 412496a994 SOLR-13552: Update CHANGES.txt 2019-06-15 14:32:01 -04:00
Joel Bernstein 03e7205c89 SOLR-13552: Add recNum Stream Evaluator 2019-06-15 13:54:37 -04:00