1148 Commits

Author SHA1 Message Date
Robert Muir
08720cf5c0 SOLR-14000: clean up more static field leaks in tests
On windows, these objects can't be inspected due to security restrictions. So the test runner fails the tests since it does not know how big the leak is.
2019-12-03 18:53:43 -05:00
Robert Muir
72b86bc222 fix static leaks, null stuff out in afterclass 2019-12-03 06:28:52 -05:00
David Smiley
8b2d8d0947 SOLR-13971: Revert changes to the default configset. * clarified these are Java system properties * trivial dead code change; Boolean.getBoolean returns a primitive 2019-11-28 11:07:51 -05:00
Ishan Chattopadhyaya
bf2899fb00 SOLR-13971: Renamed the velocity template parameter names 2019-11-28 15:44:19 +05:30
Ishan Chattopadhyaya
05c5bcc8b3 SOLR-13971: Removing velocity from _default and disabling custom template support by default 2019-11-28 07:54:37 +05:30
Mikhail Khludnev
0b8b1438e9 SOLR-13824: reject prematurely closed curly bracket in JSON. 2019-10-21 23:35:15 +03:00
Andrzej Bialecki
441af3e7aa SOLR-13677: All Metrics Gauges should be unregistered by components that registered them. 2019-10-18 18:44:16 +02:00
Koen De Groote
575f8a6ad8 LUCENE-8994: Code Cleanup - Pass values to list constructor instead of empty constructor followed by addAll(). (#919) 2019-10-14 19:56:23 +02:00
Koen De Groote
93f9a093cc LUCENE-8979: Code Cleanup: Use entryset for map iteration wherever possible. - part 2 2019-10-14 19:56:00 +02:00
Chris Hostetter
8e2a050800 SOLR-13786: AwaitsFix SolrExporterIntegrationTest
(cherry picked from commit 4ec4061cbcd426774b84184c074c24ecf3a1e81b)
2019-09-23 10:33:26 -07:00
Dawid Weiss
8c308a940b SOLR-13779: Use the safe fork of simple-xml for clustering contrib 2019-09-19 12:25:12 +02:00
Anshum Gupta
b9633e0f26
SOLR-13773: Prometheus Exporter GC and Heap options (#887) (#890)
* SOLR-13773: Prometheus Exporter GC and Heap options

* Adding info to the ref-guide.
2019-09-18 13:40:46 -07:00
Koen De Groote
ad6d73b481 Changing keyset() to entryset() and sometines values(). (#868) 2019-09-13 15:42:42 +02:00
Chris Hostetter
89c54ec0d1 LTR Test Hardening:
1) use per-method state isolation in several tests...

This helps prevent failures in one test to allow persisted date to leak into other test methods,
as well as ensuring that these tests play nicely with -Dtests.iters > 1

2) TestRerankBase cleanup to eliminate unnecessary extra SolrCore (that was being leaked)

(cherry picked from commit 3ed96026d353864c60566a9a3bdb1da853bb9e8f)
2019-09-12 18:12:09 -07:00
Noble Paul
b1bccf7cac SOLR-13677: reverting the last commit 2019-09-10 00:50:56 +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
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
89af2ec304 SOLR-13664: Fixed SolrTestCaseJ4.deleteCore() to properly reset the dataDir used by initCore()
(cherry picked from commit ab470a6564b1184c2d77892131f56a9912f7d8c6)
2019-08-01 09:16:02 -07: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
Jason Gerlowski
ca4cd3c7d3 SOLR-13629: Cleanup whitespace in analytics contrib 2019-07-28 15:37:59 -04:00
Andrzej Bialecki
bf1d14539c SOLR-13003: Fix WrapperModel method delegation. 2019-07-03 20:18:27 +02:00
Andrzej Bialecki
9d52e5be3b SOLR-13003: Query Result Cache does not honour maxRamBytes parameter. 2019-07-03 18:27:21 +02:00
David Smiley
1c1d77a791 SOLR-13158: DIH: Add System property toggle for use of dataConfig param
(cherry picked from commit 325824cd391c8e71f36f17d687f52344e50e9715)
2019-07-03 00:03:29 -04:00
Chris Hostetter
8db2fdfa91 SOLR-13574: Fix many test and test-framework classes to not fail on After/AfterClass cleanup if assumptions fail in Before/BeforeClass setup
(cherry picked from commit 7e57d3a9d93e8acb77ce299f8c79d92df563b864)

Conflicts:
	solr/core/src/test/org/apache/solr/cloud/CleanupOldIndexTest.java
2019-06-27 10:39:24 -07:00
Koen De Groote
8b6a0d0964 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:10:06 +02:00
Cao Manh Dat
dc7b54df0c SOLR-13434: Fixes problem on Java 8 build 2019-06-05 15:33:51 +01:00
Cao Manh Dat
a39c342793 SOLR-13434: OpenTracing support for Solr (#685) 2019-06-04 20:05:17 +01:00
Erick Erickson
e890980311 SOLR-8346: Upgrade Zookeeper to version 3.5.5
(cherry picked from commit 7ebeab71f4b56d008835f0040468a07632024950)
2019-06-03 17:59:01 -07:00
Chris Hostetter
b65fc0093b Fix SolrExporterIntegrationTest to not make assumptions about the JVM that are not true on windows
(cherry picked from commit 61279a2e79c485597c011b2fbe1acfbdb96475e3)
2019-05-30 11:59:43 -07:00
Chris Hostetter
753dfc43d6 Fix all solr tests to pass w/ -Dtests.dups=2 -Dtests.jvms=1
(cherry picked from commit c2b92f3015d44a48abc7cc5f7c972298ea317a07)
2019-05-29 10:27:40 -07:00
Uwe Schindler
c714623996 LUCENE-8807: Change all download URLs in build files to HTTPS
# Conflicts:
#	lucene/common-build.xml
2019-05-21 17:12:18 +02:00
Dawid Weiss
0316e2a786 SOLR-13462: Update dependency definitions to include Ukrainian dictionary. 2019-05-15 09:17:51 +02:00
Christine Poerschke
726fb8facc SOLR-13049: Make contrib/ltr Feature.defaultValue configurable. (Stanislav Livotov, Christine Poerschke) 2019-05-09 17:45:05 +01:00
noble
9952c2a24f SOLR-13441: Refactor code to minimize direct use of noggit 2019-05-03 07:22:13 +10:00
Shalin Shekhar Mangar
fe02666d54 SOLR-13392: Add all solr dependencies to prometheus exporter classpath to make sure that it can start.
SOLR-13234 broke prometheus exporter startup from the startup scripts because there was a mismatch between the dependency list in ant/ivy and those actually added to the classpath by the script. This commit changes the script to add all solr dependencies to the classpath.

(cherry picked from commit 4571a2d66687cca6670885a94414c7a8c02c0bbc)
2019-04-22 12:19:50 +05:30
Kevin Risden
543ea46afa
SOLR-13351: Workaround for VELOCITY-908
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-28 09:26:02 -04:00
Ishan Chattopadhyaya
b08566cacc SOLR-7414: CSVResponseWriter & XLSXResponseWriter return empty field when fl alias is combined with * selector 2019-03-27 16:29:25 +05:30
Kevin Risden
f545e64061
SOLR-13335: Upgrade to velocity 2.0 and velocity-tools 3.0
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-25 10:02:23 -04:00
Kevin Risden
862a755d67
SOLR-13342: Remove dom4j from Solr
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-25 08:31:26 -04:00
Kevin Risden
96c293ec1b
SOLR-9079: Remove commons-lang as a dependency
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-03-20 19:51:34 -04:00
Alan Woodward
ecf86ecab7 LUCENE-3041: QueryVisitor (#581)
This commit adds an introspection API to Query, allowing users to traverse
the nested structure of a query and examine its leaves.  It replaces the existing
`extractTerms` method on Weight, and alters some highlighting code to use
the new API
2019-03-15 08:29:32 +00:00
Shalin Shekhar Mangar
cedff86aaa SOLR-13234: Fix for turkish locales
WhenSolrExporterIntegrationTest.jvmMetrics ran on a JVM with the Turkish locale, (test seed: 62880F3B9F140C89). The JVM metric for terminated thread-count has a dotless-i e.g. termınated.
This causes the check for matching metrics to fail.

We could normalize the text in this case, however I think it's better to ensure we have the correct total number of JVM thread metrics rather than looking at Prometheus labels which maybe localized.

This closes #605.

(cherry picked from commit 6d0386c901b9d14c7464c7cf286d4a005eb9c72c)
2019-03-14 11:12:35 +05:30
erick
277251c202 SOLR-13268: Clean up any test failures resulting from defaulting to async logging
(cherry picked from commit 9272c29)
2019-03-10 11:35:51 -07:00
Shalin Shekhar Mangar
02eb9d3440 SOLR-13234: Prometheus Metric Exporter not threadsafe.
This changes the prometheus exporter to collect metrics from Solr on a fixed interval controlled by this tool and prevents concurrent collections. This change also improves performance slightly by using the cluster state instead of sending multiple HTTP requests to each node to lookup all the cores.

This closes #571.

(cherry picked from commit 1f9c767aac76ac1618ccaffce42524e109335fe8)
2019-03-04 11:04:33 +05:30
Noble Paul
7a33ba3323 SOLR-13255 : ClasscastException when URPs try to read a String field which returns a ByteArrayUTF8CHarSequence . This is a regression in release 7.7 2019-02-20 22:20:35 +11:00
Bruno P. Kinoshita
a1b2913049 Fix some spell check issues 2019-02-12 21:36:48 -08:00
Shalin Shekhar Mangar
46592e981f SOLR-12365: Fix compilation failure in prometheus-exporter 2019-01-06 09:34:22 +05:30
Jan Høydahl
00f8f3a13a SOLR-11774: langid.map.individual now works together with langid.map.keepOrig 2019-01-03 18:27:24 +01:00
Jason Gerlowski
c34f29a4b4 SOLR-13090: Add sysprop override for maxBooleanClauses 2019-01-02 10:58:32 -05:00