Commit Graph

5123 Commits

Author SHA1 Message Date
Shalin Shekhar Mangar 768c7e2648 SOLR-2212: Add a factory class corresponding to Lucene's NoMergePolicy 2016-10-26 11:28:53 +05:30
Shalin Shekhar Mangar 62bc90d7d2 SOLR-5245: Add a test to ensure that election contexts are keyed off both collection name and coreNodeName so that killing a shard in one collection does not result in leader election in a different collection. 2016-10-26 09:49:47 +05:30
Jan Høydahl d25a618161 SOLR-9481: Authentication and Authorization plugins now work in standalone mode, including edit API 2016-10-26 01:04:40 +02:00
Noble Paul 9303112981 SOLR-7604: add testcase to verify the schema of .system collection 2016-10-26 02:04:58 +05:30
Noble Paul a916877f38 Merge remote-tracking branch 'origin/master' 2016-10-26 02:04:41 +05:30
Noble Paul 34ad8577b6 SOLR-7604: add testcase to verify the schema of .system collection 2016-10-26 02:04:20 +05:30
markrmiller e152575f5e SOLR-9536: OldBackupDirectory timestamp field needs to be initialized to avoid NPE. 2016-10-25 12:39:59 -04:00
markrmiller 27ba8e2e82 SOLR-9441: Solr collection backup on HDFS can only be manipulated by the Solr process owner.
This closes #71.
2016-10-25 10:21:57 -04:00
Shalin Shekhar Mangar b7aa582dff SOLR-4531: Add tests to ensure that recovery does not fail on corrupted tlogs 2016-10-25 12:13:08 +05:30
Tomas Fernandez Lobbe ce57e8a8f4 Fixed Interval Facet count issue in cases of open/close intervals on the same values 2016-10-24 19:49:54 -07:00
yonik c9132ac661 SOLR-9654: tests: specify descending count sort for streaming 2016-10-24 21:19:06 -04:00
Alexandre Rafalovitch 9d692cde53 SOLR-9657: Fixed Javadocs and added example 2016-10-24 18:16:38 -04:00
yonik 4a85163754 SOLR-9654: add overrequest param to JSON Facet API 2016-10-24 14:23:12 -04:00
Jan Høydahl ef5737466e SOLR-7506: Roll over GC logs by default via bin/solr scripts 2016-10-24 14:22:24 +02:00
Jan Høydahl 61e180b7ef SOLR-9255: Rename SOLR_AUTHENTICATION_CLIENT_CONFIGURER -> SOLR_AUTHENTICATION_CLIENT_BUILDER 2016-10-24 14:18:21 +02:00
Noble Paul c9de11d024 Merge remote-tracking branch 'origin/master' 2016-10-24 16:45:53 +05:30
Noble Paul 184b0f2215 SOLR-9506: cache IndexFingerprint for each segment 2016-10-24 16:45:42 +05:30
Adrien Grand 9aca4c9d56 LUCENE-7462: Give doc values APIs an `advanceExact` method. 2016-10-24 10:51:23 +02:00
Noble Paul 9b49c72dbc SOLR-9518: Kerberos Delegation Tokens don't work without a chrooted ZK 2016-10-24 13:06:40 +05:30
Jan Høydahl 3488f12170 SOLR-9610: Bugfix option key for assertTool 2016-10-22 02:31:27 +02:00
Jan Høydahl e3a8a0fe5f SOLR-9662: New parameter -u <user:pass> in bin/post to pass basicauth credentials 2016-10-22 02:02:07 +02:00
David Smiley 91f58ac72b SOLR-9676: DefaultSolrHighlighter: clarify warning when FVH can't be used 2016-10-21 13:51:45 -04:00
yonik 57ba96145c SOLR-9326: Ability to create/delete/list snapshots at collection level. 2016-10-21 09:47:02 -04:00
Noble Paul 49ca9cea72 SOLR-9546: reverted some changes 2016-10-21 19:16:15 +05:30
Noble Paul ccbafdc403 SOLR-9546: Eliminate unnecessary boxing/unboxing going on in SolrParams 2016-10-21 18:58:33 +05:30
Jan Høydahl af88e7f54d SOLR-9570: Fix test failures and start using SolrTestCaseJ4's createTempDir mm 2016-10-20 20:58:52 +02:00
Noble Paul a4952b11fe Merge remote-tracking branch 'origin/master' 2016-10-20 20:07:15 +05:30
Noble Paul 127bf9f772 SOLR-9657: Use cache for templates 2016-10-20 20:06:21 +05:30
Jan Høydahl 97761966f3 SOLR-99570: Various log tidying at Solr startup 2016-10-20 14:47:32 +02:00
Jan Høydahl 14b6d93db4 SOLR-8370: Display configured Similarity in Schema-Browser 2016-10-20 13:25:40 +02:00
Noble Paul 67ba19a810 Merge remote-tracking branch 'origin/master' 2016-10-20 01:26:31 +05:30
Noble Paul 6893595f34 SOLR-9657: Addressing test failures 2016-10-20 01:26:02 +05:30
Joel Bernstein f43742acc5 SOLR-9417: Allow daemons to terminate when they finish iterating a topic 2016-10-19 13:17:06 -04:00
Noble Paul c2e031add3 SOLR-9657: New TemplateUpdateProcessorFactory added 2016-10-19 11:04:10 +05:30
Noble Paul ffa5c4ba2c SOLR-9506: reverting the previous commit 2016-10-19 00:50:30 +05:30
Noble Paul 9aa764a54f * SOLR-9506: cache IndexFingerprint for each segment 2016-10-18 21:09:42 +05:30
Noble Paul bb907a2983 * SOLR-9506: cache IndexFingerprint for each segment 2016-10-18 19:43:32 +05:30
Alan Woodward 67f3f433e2 SOLR-9634: Deprecate create/deleteCollection methods on MiniSolrCloudCluster 2016-10-18 12:34:13 +01:00
Alan Woodward 20ea5355c9 SOLR-9632: Add deleteAllCollections method to MiniSolrCloudCluster 2016-10-18 12:33:52 +01:00
Adrien Grand c22725f0b5 LUCENE-7494: Give points a per-field API. 2016-10-18 10:14:27 +02:00
Anshum Gupta 19c7f8eacf SOLR-9628: Set lastDocId in Trie fields 2016-10-17 18:59:41 -07:00
Christine Poerschke c219525b1d SOLR-9627: Add QParser.getSortSpec, deprecate misleadingly named QParser.getSort (Judith Silverman, Christine Poerschke) 2016-10-17 17:13:32 -04:00
Hrishikesh Gadre 46aeb52588 SOLR-9642: Refactor the snapshot cleanup mechanism to rely on Lucene
The current snapshot cleanup mechanism is based on reference counting
the index files shared between multiple segments. Since this mechanism
completely skips the Lucene APIs, it is not portable (e.g. it doesn't
work on 4.10.x version).

This patch provides an alternate implementation which relies exclusively
on Lucene IndexWriter (+ IndexDeletionPolicy) for cleanup.

mend
2016-10-17 13:55:26 -04:00
Alan Woodward 65f55802ee SOLR-9566: Don't put replicas into recovery when collections are created 2016-10-17 17:18:25 +01:00
Christine Poerschke a4a314d160 SOLR-6203: in QueryComponent rename groupSortStr to sortWithinGroupStr (so that name and meaning match) 2016-10-15 20:56:05 -04:00
Christine Poerschke 5261eb0acd SOLR-9625: Add HelloWorldSolrCloudTestCase class (Christine Poerschke, Alan Woodward, Alexandre Rafalovitch) 2016-10-15 09:44:37 -04:00
Jan Høydahl 33db4de4d7 SOLR-9325: solr.log is now written to $SOLR_LOGS_DIR without changing log4j.properties 2016-10-14 23:19:09 +02:00
Mikhail Khludnev 4744673388 SOLR-9639: CDCR Tests only fix. Wait until recovery is over before
remove the tmp_colletion.
2016-10-14 14:43:07 +03:00
Jan Høydahl 6512d0c620 SOLR-9610: New AssertTool in SolrCLI for easier cross platform assertions from command line 2016-10-12 09:16:41 +02:00
yonik 22780d9f16 fix unused imports 2016-10-11 21:38:38 -04:00
yonik 11e872765d fix package-before-license nit 2016-10-11 20:47:35 -04:00
Dennis Gove 56cd8bffc6 SOLR-9103: Restore ability for users to add custom Streaming Expressions 2016-10-11 20:30:26 -04:00
yonik 0f08ad9ad3 SOLR-9432: json facet refinement progress, test refinement info going to shards 2016-10-11 17:13:36 -04:00
Kevin Risden 7660dde458 SOLR-8969: Fix static cloud check 2016-10-11 15:27:30 -05:00
Kevin Risden b00f10916b SOLR-8969: Resolve NPE for SQLHandler when in non-cloud mode 2016-10-11 11:13:47 -05:00
Christine Poerschke 2bbca4c512 (part of) SOLR-6203: ResponseBuilder.setSortSpec arg name tweak. (Judith Silverman via Christine Poerschke) 2016-10-11 11:54:36 -04:00
yonik 98191225eb SOLR-9579: SchemaField should implement lucene.IndexableFieldType to avoid repeated creation 2016-10-11 11:17:55 -04:00
Joel Bernstein ee3f9e1e05 SOLR-9337: Add fetch Streaming Expression 2016-10-10 14:20:29 -04:00
Alan Woodward f22b1da261 SOLR-9604,SOLR-9608: Ensure SSL connections are re-used
Fix ConnectionReuseTest. Add coverage for all SolrClients.
Remove explicit cacheKey for HttpRequestContext, make it singleton.
2016-10-09 08:06:09 +03:00
Kevin Risden 6aa28bd655 SOLR-8385: Narrow StreamFactory.withFunctionName clazz parameter to prevent misconfiguration 2016-10-07 08:24:02 -05:00
Adrien Grand fb088817eb LUCENE-7479: SimpleText should directly implement the new doc values APIs. 2016-10-07 10:59:11 +02:00
Kevin Risden 87bad09560 SOLR-9146: Parallel SQL engine should support >, >=, <, <=, <>, != syntax 2016-10-06 13:09:53 -05:00
markrmiller ce22c2697c SOLR-9470: Index replication interactions with IndexWriter can cause deadlock. 2016-10-06 11:31:30 -04:00
Alan Woodward 36b3b0884a Revert "SOLR-9604: Ensure SSL connections are re-used"
This reverts commit 0eb6b1c823, which was
causing test failures in ConnectionReuseTest - see SOLR-9608
2016-10-05 20:49:14 +01:00
yonik cae6b49a06 SOLR-9592: use correct leaf reader rather than top-level reader in SolrIndexReaderm.decorateDocValues 2016-10-05 15:10:29 -04:00
Mike McCandless 001a3ca55b LUCENE-7407: speed up iterating norms a bit by having default codec implement the iterator directly 2016-10-05 14:18:55 -04:00
Alan Woodward 0eb6b1c823 SOLR-9604: Ensure SSL connections are re-used 2016-10-05 15:36:16 +01:00
Alan Woodward d398617be8 SOLR-9132: RulesTest must tear down collections at the end of each test 2016-10-05 15:19:22 +01:00
Alan Woodward 58031fd449 SOLR-9563: Collection creation can fail if a node doesn't update its state quickly enough 2016-10-04 13:48:20 +01:00
Alan Woodward 3bcecd9e55 SOLR-9132: Mark MigrateRouteKey test as slow 2016-10-04 11:55:10 +01:00
Alan Woodward a9dab0f25a SOLR-9132: Migrate some more tests 2016-10-04 10:32:47 +01:00
Adrien Grand 32446e9205 LUCENE-7453: Create a Lucene70Codec. 2016-10-04 10:50:34 +02:00
Noble Paul 3a76ef1193 SOLR-9520: Kerberos delegation support in SolrJ 2016-10-04 00:19:20 +05:30
Alexandre Rafalovitch 6f6bb08782 SOLR-6677: queryConverter message is now at TRACE 2016-10-03 16:05:05 +07:00
Mikhail Khludnev cc4c780227 SOLR-9554: clear statics to fix the test failure 2016-10-03 10:19:20 +03:00
Mikhail Khludnev 67a9d3a44f SOLR-9554: adding a test for concurrent schema upgrade in cloud. 2016-10-02 18:24:33 +03:00
Alan Woodward fdd5d3cc79 Remove unused import 2016-10-01 08:54:02 +01:00
Shalin Shekhar Mangar 7a8ff69316 SOLR-5041: Add a test to make sure that a leader always recovers from log on startup 2016-09-30 20:00:01 +05:30
Christine Poerschke 08a5951adf Correct TransformerFactory.defaultFactories initialCapacity. (Diego Ceccarelli via Christine Poerschke) 2016-09-30 13:51:02 +01:00
Christine Poerschke dbc29c0adc SOLR-9574: Factor out AbstractReRankQuery from ReRankQParserPlugin's private ReRankQuery. 2016-09-30 13:47:27 +01:00
Christine Poerschke ff359248b3 In AddUpdateCommand remove one unused local and the getSchema.getUniqueKeyField method call that initialises it. 2016-09-30 13:47:27 +01:00
Christine Poerschke fe1b290e40 Removes some unused locals in solr/core request and response packages. 2016-09-30 13:47:27 +01:00
Alan Woodward ef747c8445 SOLR-9556: Exit failover thread on interrupt 2016-09-30 09:05:43 +01:00
Mikhail Khludnev 64b0c91df1 SOLR-9554: fix NullPointerException when cores move schema.xml to
managed-schema concurrently. No new test added yet.
2016-09-30 08:03:20 +03:00
Joel Bernstein 8f00bcb1a0 SOLR-9258: Fix precommit 2016-09-29 18:03:26 -04:00
Joel Bernstein 9cd6437d4b SOLR-9258: Optimizing, storing and deploying AI models with Streaming Expressions 2016-09-29 18:03:26 -04:00
mikemccand 7d13f3ecd2 SOLR-9582: reset lastDocID when switching to a new LeafReader 2016-09-29 21:24:13 +02:00
Noble Paul 063d624cdc SOLR-8146: refactored the replica rules classes so that they can be accessed from SolrJ 2016-09-29 19:39:33 +05:30
Shalin Shekhar Mangar ce24de5cd6 SOLR-9504: A replica with an empty index becomes the leader even when other more qualified replicas are in line 2016-09-29 17:08:22 +05:30
Noble Paul 8ce52cf2b1 SOLR-8995: use lambdas for CoreCloseListener 2016-09-29 11:38:00 +05:30
Noble Paul e8767daa7b SOLR-8995: use lambdas for CoreCloseListener 2016-09-29 11:33:22 +05:30
Noble Paul 5c5c0c93ae SOLR-9576: Make FieldAnalysisRequestHandler, DocumentAnalysisRequestHandler & DumpRequestHandler implicit 2016-09-28 20:04:04 +05:30
Noble Paul 7afa220e48 avoid unnecessary map creation 2016-09-28 11:35:42 +05:30
Noble Paul 09890f7f93 SOLR-9572: config API to show expanded useParams for request handlers inline 2016-09-28 11:30:03 +05:30
Steve Rowe 9f35a6b829 SOLR-9411: Better validation for Schema API add-field 2016-09-27 18:16:55 -04:00
Christine Poerschke a84d9a5d69 In ConfigSetProperties use unintentionally unused local (objectClass). 2016-09-27 12:18:22 +01:00
Christine Poerschke 85603b0eca Remove unused local (targetShard) in SliceMutator. 2016-09-27 12:18:22 +01:00
Christine Poerschke 1d2be1df7b SOLR-9567: Make ReRankQParserPlugin's private ReRankCollector a public class of its own. (Christine Poerschke) 2016-09-27 12:18:22 +01:00
Alan Woodward 59c1071346 SOLR-6677: More log noise reduction 2016-09-27 12:01:42 +01:00
Jan Høydahl 8046fe29e5 SOLR-9411: Better validation of dynamic field for Schema API 2016-09-27 12:17:38 +02:00
Jan Høydahl c1553c20f0 SOLR-9548: Print full solr-impl version for SNAPSHOT builds 2016-09-26 23:22:49 +02:00
Noble Paul 208e2bc66f SOLR-9557: optimize splitsmart 2016-09-26 22:57:09 +05:30
Christine Poerschke 7a6567e4a6 TestSmileRequest to import response.SmileWriterTest instead of (deprecated) request.SmileWriterTest predecessor. Then remove (three) deprecated/relocated tests. (Follow-ons from SOLR-9538 itself.) 2016-09-26 13:38:26 +01:00
Christine Poerschke a8f4ef02ed SOLR-9543: reduce code duplication in ReRankQParserPlugin.ReRankCollector.topDocs (part 2 of 2) 2016-09-26 13:38:26 +01:00
Alan Woodward be4233cb56 SOLR-9132: Cut over DeleteReplica tests
Also fixes some bugs in CollectionAdminRequest.DeleteReplica from SOLR-9319
2016-09-26 13:15:14 +01:00
Noble Paul 691472c0f0 SOLR-9557: Every implicit requesthandler now has a default 'useParams' attribute 2016-09-26 17:00:17 +05:30
Alan Woodward 6687244667 SOLR-9486: Fix race in AutoCommitTest 2016-09-26 10:31:10 +01:00
Alan Woodward 255bf895b3 SOLR-6677: Some more logging moves from INFO to DEBUG 2016-09-26 10:22:34 +01:00
Jan Høydahl 4c7a8c4b81 SOLR-9548: The beginning of solr.log now starts with a more informative welcome message 2016-09-26 11:02:20 +02:00
Christine Poerschke ef5da9705d SOLR-9551: Add JSONWriter constructor variant, JSONWriterTest.testConstantsUnchanged test. (Jonny Marks, Christine Poerschke) 2016-09-23 13:42:54 +01:00
Christine Poerschke a9eb64e427 SOLR-9543: reduce code duplication in ReRankQParserPlugin.ReRankCollector.topDocs (part 1 of 2) 2016-09-23 13:41:36 +01:00
Shalin Shekhar Mangar 3eb0f7c792 SOLR-6090: Remove unreachable printLayout usage in cloud tests 2016-09-23 18:07:33 +05:30
Mikhail Khludnev b50b9106f8 SOLR-9330: Fix AlreadyClosedException on admin/mbeans?stats=true 2016-09-23 07:48:19 +03:00
Jan Høydahl bede7aefa3 SOLR-9534: Fix test failures related to nullpointer when printing core name in logs. 2016-09-22 23:31:28 +02:00
Jan Høydahl 73c2edddf0 SOLR-9534: You can now set Solr's log level through environment variable SOLR_LOG_LEVEL and -q and -v options to bin/solr 2016-09-22 21:05:28 +02:00
Noble Paul 5183b67e94 Merge remote-tracking branch 'origin/master' 2016-09-22 23:31:42 +05:30
Noble Paul 5acbcac274 SOLR-9542: Kerberos delegation tokens requires Jackson library 2016-09-22 23:30:02 +05:30
Dennis Gove 6365920a0e SOLR-8487: Adds CommitStream to support sending commits to a collection being updated 2016-09-22 13:07:01 -04:00
Jan Høydahl f391d57075 SOLR-6677: Reduced logging during Solr startup, moved more logs to DEBUG level 2016-09-22 17:04:01 +02:00
Alan Woodward c55a14e198 SOLR-9544: Give ObjectReleaseTracker more time for async closing objects 2016-09-22 14:02:06 +01:00
Alan Woodward a41dd86e3c SOLR-9305, SOLR-9390: *really* dont' use directToLeaders 2016-09-22 13:21:36 +01:00
Joel 75e69c5198 SOLR-9549: Fix bug in advancing docValues 2016-09-22 08:05:47 -04:00
Jan Høydahl eabb05f7fd SOLR-8186: Added robustness to the dynamic log muting logic 2016-09-22 13:37:13 +02:00
Noble Paul a9f82a1b45 SOLR-8995: precommit errors 2016-09-22 16:43:01 +05:30
Noble Paul 262a3ac5c5 SOLR-8995: Use lamdas in URPs 2016-09-22 15:32:24 +05:30
Noble Paul 80336a278a SOLR-8995: Use lamdas in URPs 2016-09-22 15:31:39 +05:30
Alan Woodward a002aa5248 SOLR-5563: Quieten down SolrCloud logging 2016-09-22 09:42:38 +01:00
Dawid Weiss 9e09045a4c SOLR-8186: suppress log4j access warnings. 2016-09-22 09:51:11 +02:00
Jan Høydahl 2ef34e9e24 SOLR-8186: Solr start scripts, only log to console when running in foreground 2016-09-22 01:18:27 +02:00
Noble Paul 15cee3141c SOLR-9446: Leader failure after creating a freshly replicated index can send nodes into recovery even if index was not changed 2016-09-21 23:55:59 +05:30
Mike McCandless f7aa200d40 LUCENE-7407: switch doc values usage to an iterator API, based on DocIdSetIterator, instead of random acces, freeing codecs for future improvements 2016-09-21 09:41:41 -04:00
Christine Poerschke 93bc88d966 SOLR-9538: Relocate (BinaryResponse|JSON|Smile)Writer tests to org.apache.solr.response which is the package of the classes they test. (Jonny Marks via Christine Poerschke) 2016-09-21 11:50:35 +01:00
Alan Woodward d326adc8bf SOLR-9305, SOLR-9390: Don't use directToLeaders updates in partition tests (see SOLR-9512) 2016-09-21 10:57:59 +01:00
Noble Paul afc57347b4 SOLR-9524: SolrIndexSearcher.getIndexFingerprint uses dubious synchronization 2016-09-21 11:29:53 +05:30
Noble Paul 1e18c12c19 SOLR-9502: ResponseWriters should natively support MapSerializable 2016-09-19 17:45:17 +05:30
Noble Paul 286b35b020 SOLR-9523: Refactor CoreAdminOperation into smaller classes 2016-09-17 13:04:31 +05:30
Alan Woodward 5610fd9df2 SOLR-9507: Correctly set MDC values for CoreContainer threads 2016-09-16 13:33:07 +01:00
Shalin Shekhar Mangar 70fd627ca7 SOLR-9484: The modify collection API should wait for the modified properties to show up in the cluster state 2016-09-15 11:04:48 +05:30
Noble Paul 5b770b56d0 Extract out the ExclusiveSliceProperty as a top level class 2016-09-14 12:44:34 +05:30
Noble Paul 652065e14e Merge remote-tracking branch 'origin/master' 2016-09-13 17:19:33 +05:30
Noble Paul 73d4b73042 SOLR-9485:Indexfingerprint.fromObject() returns wrong values if object passed was itself of type IndexFingerprint 2016-09-13 17:19:12 +05:30
Varun Thacker ef3057e43b SOLR-9408: Fix TreeMergeOutputFormat to add timestamp metadata to commits 2016-09-13 10:49:27 +05:30
Shalin Shekhar Mangar 3fe1486683 SOLR-9365: Reduce noise in solr logs during graceful shutdown 2016-09-13 00:36:12 +05:30
Uwe Schindler b39fcc1202 LUCENE-7318: Forward port some changes (add StopFilter and LowercaseFilter at their original location) 2016-09-12 20:11:30 +02:00
Shalin Shekhar Mangar f177a660f5 SOLR-9438: Shard split can be marked successful and sub-shard states switched to 'active' even when one or more sub-shards replicas do not recover due to the leader crashing or restarting between the time the replicas are created and before they can recover 2016-09-12 17:00:46 +05:30
David Smiley d2fcc3dd71 SOLR-9494: CollapseQParser's collectors should override needsScores(); can trigger exceptions
Also, field cscore was not needed.
2016-09-11 14:29:26 -04:00
Chris Hostetter 60ce8d7c54 SOLR-9490: Fixed bugs in BoolField that caused it to erroneously return "false" for all docs depending on usage 2016-09-09 11:45:09 -07:00
Alan Woodward 003a346d50 SOLR-9344: Don't reuse port in BasicAuthIntegrationTest 2016-09-09 09:02:49 +01:00
Shalin Shekhar Mangar 0c5c0df6bc SOLR-9488: Shard split can fail to write commit data on shutdown/restart causing replicas to recover without replicating the index 2016-09-07 21:06:50 +05:30
Alan Woodward ce84a8df12 Improve error message to help debug test failures 2016-09-07 11:10:28 +01:00