Return-Path: X-Original-To: apmail-lucene-commits-archive@www.apache.org Delivered-To: apmail-lucene-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D257E396 for ; Tue, 5 Feb 2013 16:29:43 +0000 (UTC) Received: (qmail 6758 invoked by uid 500); 5 Feb 2013 16:28:47 -0000 Mailing-List: contact commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list commits@lucene.apache.org Received: (qmail 6450 invoked by uid 99); 5 Feb 2013 16:28:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 16:28:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 16:27:29 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 0D22523889ED; Tue, 5 Feb 2013 16:27:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1442648 - /lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeySafeLeaderTest.java Date: Tue, 05 Feb 2013 16:27:09 -0000 To: commits@lucene.apache.org From: yonik@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130205162710.0D22523889ED@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: yonik Date: Tue Feb 5 16:27:09 2013 New Revision: 1442648 URL: http://svn.apache.org/viewvc?rev=1442648&view=rev Log: tests: enable chaos safe leader test Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeySafeLeaderTest.java Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeySafeLeaderTest.java URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeySafeLeaderTest.java?rev=1442648&r1=1442647&r2=1442648&view=diff ============================================================================== --- lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeySafeLeaderTest.java (original) +++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeySafeLeaderTest.java Tue Feb 5 16:27:09 2013 @@ -24,16 +24,17 @@ import org.apache.lucene.util.LuceneTest import org.apache.lucene.util.LuceneTestCase.Slow; import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.common.SolrInputDocument; +import org.apache.solr.core.Diagnostics; import org.apache.solr.core.SolrCore; import org.apache.solr.servlet.SolrDispatchFilter; import org.apache.solr.update.DirectUpdateHandler2; +import org.apache.solr.update.SolrCmdDistributor; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; @Slow -@BadApple public class ChaosMonkeySafeLeaderTest extends AbstractFullDistribZkTestBase { private static final int BASE_RUN_LENGTH = 120000; @@ -41,12 +42,21 @@ public class ChaosMonkeySafeLeaderTest e @BeforeClass public static void beforeSuperClass() { - + SolrCmdDistributor.testing_errorHook = new Diagnostics.Callable() { + @Override + public void call(Object... data) { + SolrCmdDistributor.Request sreq = (SolrCmdDistributor.Request)data[1]; + if (sreq.exception == null) return; + if (sreq.exception.getMessage().contains("Timeout")) { + Diagnostics.logThreadDumps("REQUESTING THREAD DUMP DUE TO TIMEOUT: " + sreq.exception.getMessage()); + } + } + }; } @AfterClass public static void afterSuperClass() { - + SolrCmdDistributor.testing_errorHook = null; } @Before