Commit Graph

2422 Commits

Author SHA1 Message Date
Munendra S N cabc125eef SOLR-13403: fix NPE in terms for DatePointField
* This fixes NPE and adds support for DatePointField in terms
  component
2019-10-18 23:45:57 +05:30
Munendra S N 227a624f8a SOLR-12769: correct documentation for delete op in request params API 2019-10-18 21:13:35 +05:30
Munendra S N dce0c5953c SOLR-13827: fail on unknown operation in Request Parameters API 2019-10-18 21:08:33 +05:30
Andrzej Bialecki f07998fc23 SOLR-13677: All Metrics Gauges should be unregistered by components that registered them. 2019-10-18 17:15:04 +02:00
Ishan Chattopadhyaya e2b160b865 SOLR-13834: ZkController#getSolrCloudManager() now uses the same ZkStateReader instance instead of instantiating a new one
ZkController#getSolrCloudManager() created a new instance of ZkStateReader, thereby causing mismatch in the
visibility of the cluster state and, as a result, undesired race conditions.
2019-10-15 14:51:02 +05:30
Jan Høydahl 64fb42c714
SOLR-13665: Added missing netty dependencies to solrJ (#938) 2019-10-15 10:35:05 +02:00
Koen De Groote e7e6cfaecf LUCENE-8994: Code Cleanup - Pass values to list constructor instead of empty constructor followed by addAll(). (#919) 2019-10-14 18:45:47 +02:00
Koen De Groote 04786244d0 LUCENE-8979: Code Cleanup: Use entryset for map iteration wherever possible. - part 2 2019-10-14 18:36:19 +02:00
Noble Paul b6ea7d60b7
SOLR-13731: javabin must support a 1:1 mapping of the JSON update format 2019-10-14 11:07:38 +11:00
Joel Bernstein ad1c24e190 SOLR-13829: RecursiveEvaluator casts Continuous numbers to Discrete Numbers, causing mismatch 2019-10-10 21:19:25 -04:00
Cao Manh Dat 1cda424503 SOLR-13293: ConcurrentUpdateHttp2SolrClient always log AsynchronousCloseException exception error on indexing 2019-10-09 20:56:50 +01:00
Noble Paul e3bd5a7da2
SOLR-13821: Package Store for storing package artifacts (#929)
SOLR-13821: Package Store for storing package artifacts
2019-10-08 14:24:33 +11:00
Andrzej Bialecki c0a446b179 SOLR-13790: LRUStatsCache size explosion and ineffective caching. 2019-10-07 19:53:52 +02:00
Jason Gerlowski 24afd95902 SOLR-13539: Improve atomic-update test coverage
Closes #665
2019-10-07 08:27:29 -04:00
Joel Bernstein 88fee95d54 SOLR-13298: Allow zplot to plot matrices 2019-10-06 22:18:00 -04:00
Noble Paul c5dc671aa3
SOLR-13787: An annotation based system to write v2 APIs
This is to make V2 APIs easier to write and less error prone
* All specs are always in sync with code
* specs are generated from code
*  no need to learn and write json schema
2019-10-07 09:19:57 +11:00
Mikhail Khludnev 1cf7368ed8 SOLR-13719: introducing SolrClient.ping(collection) 2019-10-06 23:36:58 +03:00
Ishan Chattopadhyaya 515af6d3ec SOLR-13661: Reverting all half-baked stuff from SOLR-13707, SOLR-13659, SOLR-13565, SOLR-13650, SOLR-13710, SOLR-13721, SOLR-13637
All half baked package management and hot-classloading code reverted to allow for a fresh start.
2019-10-06 18:00:40 +05:30
Thomas Wöckinger 22e96697de SOLR-13795: Managed schema should do a core reload in standalone mode.
Fixes #902
2019-10-04 13:05:01 -04:00
Thomas Wöckinger 4ddde00667 SOLR-13802: Write analyzer property luceneMatchVersion to managed schema 2019-10-01 09:17:59 -04:00
Joel Bernstein 22b8943407 SOLR-13632: Fix precommit 2019-09-29 19:14:43 -04:00
Joel Bernstein d4f612368d SOLR-13632: Support integral plots, cosine distance and string truncation with math expressions 2019-09-29 19:01:40 -04:00
Munendra S N e5d95011f0 SOLR-13417: handle stats on date/str fields in solrj's JSON facet resp
* Except for min/max aggregation in all other cases values woudl be
  number. As for same data/string field, value can vary based on
  aggregation used, capture response in Map<String, Object>
2019-09-28 12:08:55 +05:30
David Smiley 0d0af505a0 SOLR-13784: EmbeddedSolrServer coreName optional 2019-09-25 11:33:28 -04:00
Munendra S N 59fe7b7d9f SOLR-13725: allow negative values for limit in TermsFacetMap
* when limit is negative all the facet values are returned
* allow mincount=0 in TermsFacetMap.
2019-09-21 11:03:51 +05:30
Munendra S N c22379253c SOLR-13780: fix ClassCastException in NestableJsonFacet
* handle both int and long values for count. In case of single-shard or
  standalone, count is int whereas in multishard count would be long
2019-09-21 10:58:31 +05:30
Jason Gerlowski 2546e7a2ec SOLR-13622: Fix file-handle leak 2019-09-14 20:39:12 -04:00
Koen De Groote ec78ef7852 Changing keyset() to entryset() and sometines values(). (#868) 2019-09-13 14:42:38 +02:00
Andrzej Bialecki 6f22bf0964 SOLR-13742: Allow optional redaction of data saved by 'bin/solr autoscaling -save'.
Fix some unwanted side-effects in snapshots + add more robust unit tests.
2019-09-07 12:09:09 +02:00
Christine Poerschke 6574ae63d4 SOLR-13240: Fixed UTILIZENODE action resulting in IllegalArgumentException.
(Hendrik Haddorp, Richard Goodman, Tim Owen, shalin, noble, Christine Poerschke)
2019-09-06 12:36:33 +01:00
Megan Carey 8c796b5f46 SOLR-13727: Bug fix for V2Request handling in HttpSolrClient
Using regex to validate baseUrl and replace path for V2Requests

 Changed to using Java.net.URL for validation + path replacement
2019-09-04 22:14:15 -04:00
Christine Poerschke 5204d0f963 SOLR-13736: reduce code duplication in TestPolicy.testNodeLostMultipleReplica 2019-09-04 15:51:36 +01: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
Noble Paul cf21340294
SOLR-13723: JettySolrRunner should support /api/* (the v2 end point) 2019-08-29 14:01:52 +10: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 Paul e23c50b2a8
SOLR-13710: Persist package jars locally & expose them over http 2019-08-27 14:04:42 +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
Tomas Fernandez Lobbe 225fd3d8ee SOLR-13655: Fix precommit 2019-08-23 15:29:36 -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
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
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 Paul a4b0ab530f
SOLR-13650: Support for named global classloaders 2019-08-20 05:00:38 +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
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
Megan Carey 768ca7c5a7 SOLR-13399: Adding splitByPrefix param to IndexSizeTrigger; some splitByPrefix test and code cleanup 2019-08-12 15:59:45 -04:00
Erick Erickson f6f1b4244c SOLR-13568: Precommit fail Java var until 9x. Fail var... 2019-08-11 11:49:54 -04: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
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
yonik 19ddcfd282 SOLR-13399: ability to use id field for compositeId histogram 2019-08-06 14:10:20 -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
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
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
Jason Gerlowski dc8e9afff9 SOLR-13622: Add fileStream stream-source 2019-07-25 09:13:00 -04: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
Munendra S N 96d400f511 SOLR-12870: use StandardCharsets instead of String values
Fixes #469
2019-07-20 10:10:32 +05:30
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
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
Gus Heck c97551cc36 SOLR-13375 - 2 dimensional routed aliases 2019-07-15 09:57:13 -04: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
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
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
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
Jan Høydahl b54126169b SOLR-13569: AdminUI visual indication of prod/test/dev environment 2019-06-26 12:09:02 +02:00
Andrzej Bialecki 4d1058db6e SOLR-13566: REINDEXCOLLECTION does not work with (basic) authentication. 2019-06-25 16:54:27 +02: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
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
Mikhail Khludnev 9137a0b0fe SOLR-13545: ContentStreamUpdateRequest to close file. 2019-06-21 23:38:08 +03:00
Gus Heck 5d47875184 SOLR-13419 - Better infix for TRA collection names 2019-06-20 09:47:52 -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 91944a468e SOLR-12988: Skip running tests with SSL on Java 11 to 11.0.2 2019-06-19 10:43:17 +01: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 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
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
Joel Bernstein 03e7205c89 SOLR-13552: Add recNum Stream Evaluator 2019-06-15 13:54:37 -04:00
Joel Bernstein 0038e93667 SOLR-13550: Allow zplot to automatically create the x axis 2019-06-14 17:49:03 -04:00
Cao Manh Dat 0c24aa6c75 SOLR-13541: Upgrade Jetty to 9.4.19.v20190610 2019-06-14 15:46:19 +01:00
Erick Erickson 81e8b385a4 SOLR-12013: collections API CUSTERSTATUS command fails when configset missing 2019-06-13 15:40:13 -07:00
Cassandra Targett 65b5391041 SOLR-13235: update doc links in apispec files to new pages 2019-06-12 19:03:21 -05:00
Thomas Wöckinger 828960927f SOLR-13347: Add support for reading/writing UUID from/to TransactionLog (#681)
SOLR-13347: Transaction log to natively support UUID types
2019-06-13 08:56:41 +10:00
Erick Erickson bfb5b41144 SOLR-12013: collections API CUSTERSTATUS command fails when configset missing 2019-06-11 15:56:02 -07:00
Gus Heck abeecfacd4 SOLR-13439 - Adds ability to locally cache collection properties for a specified duration. 2019-06-11 10:12:52 -04:00
Andrzej Bialecki 6527e74ed8 Improve the test by actually checking that the version of Aliases is
more recent, instead of simply waiting.
2019-06-11 12:13:54 +02:00
Andrzej Bialecki 010466ec04 SOLR-13512: Raw index data analysis tool (extension of COLSTATUS collection command). 2019-06-10 19:21:46 +02:00
Koen De Groote 67104dd615 LUCENE-8847: Code Cleanup: Rewrite StringBuilder.append with concatted strings (#707)
This specific commit affects all points in the casebase where the argument of a StringBuilder.append() call is itself a regular String concatenation.
This defeats the purpose of using StringBuilder and also introduces an extra alloction.
These changes should avoid that.

ant tests have run, succeeded on local machine.

Removing test files from the changes.

Another suggested rework.
2019-06-10 18:07:43 +02:00
Tomas Fernandez Lobbe f3148fa9e0 SOLR-13521: Fix input parameter handling for DynamicField and FieldTypes (Schema API) 2019-06-05 16:01:43 -07:00
Cao Manh Dat 301ea0e462
SOLR-13434: OpenTracing support for Solr (#685) 2019-06-04 20:04:11 +01:00
Cao Manh Dat cee4ed783e SOLR-13510: Intermittent 401's for internode requests with basicauth enabled 2019-06-04 16:12:49 +01:00