Commit Graph

13283 Commits

Author SHA1 Message Date
noble bad55fd51a SOLR-13677: All Metrics Gauges should be unregistered by the objects that registered them 2019-08-19 19:52:37 +10:00
Noble Paul 1c0490c9ab 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:52:16 +10:00
Chris Hostetter eb7e3b0114 SOLR-13701: Fixed JWTAuthPlugin to update metrics prior to continuing w/other filters or returning error
(cherry picked from commit f5856ef404)
2019-08-18 12:21:34 -07:00
Chris Hostetter 2ca46fb0a3 SOLR-13700: Fixed a race condition when initializing metrics for new security plugins on security.json change
(cherry picked from commit 251259d5ab)
2019-08-18 12:21:24 -07:00
Chris Hostetter e6df368e53 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

(cherry picked from commit 54ab07718a)
2019-08-14 21:37:28 -07:00
Andrzej Bialecki 09bee6d57c SOLR-13694: IndexSizeEstimator NullPointerException. 2019-08-14 18:51:49 +02:00
Mikhail Khludnev ea8f921e71 adding <SpanPositionRange> into XML Query Parser 2019-08-14 18:23:08 +03:00
Andrzej Bialecki c48a3cd9dc SOLR-13693: Use strongly-typed setters for cache parameters. 2019-08-14 15:59:36 +02:00
noble 8be67aa4c4 SOLR-13688: compile error on java 8 2019-08-14 09:55:22 +10:00
Christine Poerschke 4689fb8642 SOLR-13240: make operation-not-null checks consistent in TestPolicy.testNodeLostMultipleReplica
(Richard Goodman via Christine Poerschke)
2019-08-13 15:37:20 +01:00
noble 03fd3d3923 SOLR-13688: Run the bin/solr export command multithreaded 2019-08-13 18:56:28 +10:00
Chris Hostetter 06dd37e907 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

(cherry picked from commit c7822c393e)
(cherry picked from commit 0291db44bc)
2019-08-12 14:57:18 -07:00
Megan Carey 7fc5c0e07d SOLR-13399: Adding splitByPrefix param to IndexSizeTrigger; some splitByPrefix test and code cleanup 2019-08-12 16:03:51 -04:00
Jan Høydahl 5ecc6dfaf8 SOLR-13647: Default solr.in.sh contains incorrect default value
(cherry picked from commit d468d71c03)
2019-08-12 13:58:56 +02:00
Erick Erickson 5df5df9ec3 SOLR-13568: Precommit fail Java var until 9x. Fail var...
(cherry picked from commit f6f1b4244c)
2019-08-11 11:51:52 -04:00
Jason Gerlowski a50927bac0 SOLR-13573: Add SolrRangeQuery getters for bounds 2019-08-11 09:04:14 -04:00
Munendra S N 4ac23230a4 SOLR-13680: use try-with-resource to close closeable resources
closes #822
2019-08-10 14:02:52 +05:30
noble aec2eb0c9d SOLR-13682: command line option to export documents to a file 2019-08-10 17:44:52 +10:00
noble 382627d94b Formatting fixed 2019-08-10 12:01:21 +10:00
Chris Hostetter 650801b5db Harden SolrJmxReporterCloudTest
null out local ref to PlatformMBeanServer so test runner doesn't count it's memory size against the test class

(cherry picked from commit 6cbe39c786)
2019-08-09 15:27:51 -07:00
yonik 0fa9cb54c7 SOLR-13399: fix splitByPrefix default to be false 2019-08-09 09:06:22 -04:00
Shalin Shekhar Mangar f4dc168301 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.

(cherry picked from commit e59f41b671)
2019-08-09 08:29:52 +05:30
Jason Gerlowski 299d92da5c SOLR-13622: Rename FilesStream -> CatStream
Also fixes an 'cat' OS-dependent bug in StreamExpressionTest.
2019-08-08 08:39:10 -04:00
Shalin Shekhar Mangar de522052c8 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.

(cherry picked from commit ed137dbe28)
2019-08-08 15:19:53 +05:30
Jan Høydahl f853198f72 SOLR-13672: Cloud -> Zk Status page now parses response from Zookeeper 3.5.5 correctly
(Back ported from 8 commits on master branch)
2019-08-07 10:02:38 +02:00
Chris Hostetter 6fea853711 Harden BasicAuthIntegrationTest w/work around for SOLR-13464
(cherry picked from commit 878d332a0b)
2019-08-06 15:08:55 -07:00
yonik d8f99a9986 SOLR-13399: ability to use id field for compositeId histogram 2019-08-06 14:11:12 -04:00
Chris Hostetter e8ff97669d 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

(cherry picked from commit 9e250f7219)
2019-08-05 17:09:24 -07:00
Chris Hostetter b18041476f SOLR-13678: Harden CollectionPropsTest.testReadWriteCached to work around removeCollectionPropsWatcher() deadlock bug
(cherry picked from commit a052fb5436)
2019-08-05 11:49:53 -07:00
Bruno Roustant 445f4bf5c2 SOLR-11866: QueryElevationComponent match="subset" feature
Closes #780

(cherry picked from commit d97912529d)
2019-08-05 11:51:40 +02:00
Munendra S N b4e49206ed SOLR-13679:Fix default style of [explain] registered in solrconfig.xml 2019-08-05 10:36:47 +05:30
Diego 696e752be6 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:38:51 +05:30
yonik 5b76555dac SOLR-13399: fix splitByPrefix test 2019-08-03 12:53:33 -04:00
Munendra S N 488c75fb55 SOLR-12555: use expectThrows() to verify the ex thrown in tests 2019-08-03 13:19:53 +05:30
Chris Hostetter b54f43686a 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

(cherry picked from commit e8418adedb)
2019-08-02 17:03:13 -07:00
Boris Pasko 858b97a144
SOLR-6305: Replication from filesysem defaults, not from server defaults
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-08-02 18:44:25 -04:00
Joel Bernstein c69548d39f SOLR-13667: Fix precommit 2019-08-02 16:18:14 -04:00
Joel Bernstein 669b2fb0e2 SOLR-13667: Add upper, lower, trim and split Stream Evaluators 2019-08-02 16:17:59 -04:00
Chris Hostetter 89af2ec304 SOLR-13664: Fixed SolrTestCaseJ4.deleteCore() to properly reset the dataDir used by initCore()
(cherry picked from commit ab470a6564)
2019-08-01 09:16:02 -07:00
noble e92dba45c5 SOLR-13659: Refactor CacheConfig to lazily load the the implementation class 2019-07-31 19:12:51 +10:00
Noble Paul 09bd23b756 SOLR-13659: Refactor Cache config to lazily load the the class (#813) 2019-07-31 19:12:03 +10:00
Chris Hostetter 3933047cd7 SOLR-13660: Fixed AbstractFullDistribZkTestBase.waitForActiveReplicaCount() to ensure replicas are active.
(cherry picked from commit 6dea203d11)
2019-07-30 10:15:07 -07:00
Joel Bernstein 6c7c21c574 SOLR-13625: Fix precommit 2019-07-30 11:13:40 -04:00
Joel Bernstein f6992a3a3b SOLR-13625: Fix broken test cases 2019-07-30 11:13:02 -04:00
Joel Bernstein eb280c4808 SOLR-13625: Add CsvStream, TsvStream Streaming Expressions and supporting Stream Evaluators 2019-07-30 11:10:10 -04:00
Munendra S N bb3372a17c 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:34:57 +05:30
Munendra S N 64357bc913 SOLR-13643:add Getter/Setter in ResponseBuilder to handle analytic res 2019-07-29 09:58:23 +05:30
Munendra S N 68ec328807 SOLR-13656: fix bad mergePolicyFactory test in SolrIndexConfigTest
* use expectThrows to verify the exception and ex message
* remove unused DummyMergePolicy
2019-07-29 09:58:15 +05:30
Munendra S N 691b095066 SOLR-13633: fix typos in analytics documentation 2019-07-29 09:58:07 +05:30
Jason Gerlowski ca4cd3c7d3 SOLR-13629: Cleanup whitespace in analytics contrib 2019-07-28 15:37:59 -04:00