mirror of https://github.com/apache/lucene.git
SOLR-3161: ignore expected exceptions
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1306702 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
05fe168961
commit
859814a06f
|
@ -292,11 +292,13 @@ public class TestDistributedSearch extends BaseDistributedSearchTestCase {
|
|||
//SOLR 3161 ensure shards.qt=/update fails (anything but search handler really)
|
||||
// Also see TestRemoteStreaming#testQtUpdateFails()
|
||||
try {
|
||||
ignoreException("isShard is only acceptable");
|
||||
query("q","*:*","shards.qt","/update","stream.body","<delete><query>*:*</query></delete>");
|
||||
fail();
|
||||
} catch (SolrException e) {
|
||||
//expected
|
||||
}
|
||||
unIgnoreException("isShard is only acceptable");
|
||||
|
||||
// test debugging
|
||||
handle.put("explain", UNORDERED);
|
||||
|
|
|
@ -235,6 +235,12 @@ public abstract class SolrTestCaseJ4 extends LuceneTestCase {
|
|||
SolrException.ignorePatterns.add(pattern);
|
||||
}
|
||||
|
||||
public static void unIgnoreException(String pattern) {
|
||||
if (SolrException.ignorePatterns != null)
|
||||
SolrException.ignorePatterns.remove(pattern);
|
||||
}
|
||||
|
||||
|
||||
public static void resetExceptionIgnores() {
|
||||
SolrException.ignorePatterns = null;
|
||||
ignoreException("ignore_exception"); // always ignore "ignore_exception"
|
||||
|
|
|
@ -1,7 +1,14 @@
|
|||
handlers=java.util.logging.ConsoleHandler
|
||||
java.util.logging.ConsoleHandler.level=FINEST
|
||||
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
|
||||
#java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
|
||||
java.util.logging.ConsoleHandler.formatter=org.apache.solr.SolrLogFormatter
|
||||
|
||||
|
||||
.level=SEVERE
|
||||
#org.apache.solr.update.UpdateLog.level=FINEST
|
||||
#.level=INFO
|
||||
|
||||
#org.apache.solr.update.processor.LogUpdateProcessor=FINEST
|
||||
#org.apache.solr.update.processor.DistributedUpdateProcessor=FINEST
|
||||
#org.apache.solr.update.PeerSync.level=FINEST
|
||||
#org.apache.solr.update.UpdateLog.level=FINE
|
||||
#org.apache.solr.update.TransactionLog.level=FINEST
|
||||
|
|
Loading…
Reference in New Issue