From 5772204892bac0af09a97035909fb7a34d49bb63 Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Wed, 26 Dec 2012 19:52:34 +0000 Subject: [PATCH] tests: attempt to harden for apache jenkins git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1426002 13f79535-47bb-0310-9956-ffa450edef68 --- solr/core/src/test/org/apache/solr/cloud/SyncSliceTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/solr/core/src/test/org/apache/solr/cloud/SyncSliceTest.java b/solr/core/src/test/org/apache/solr/cloud/SyncSliceTest.java index 64a7781a40f..9cb1f7354aa 100644 --- a/solr/core/src/test/org/apache/solr/cloud/SyncSliceTest.java +++ b/solr/core/src/test/org/apache/solr/cloud/SyncSliceTest.java @@ -242,12 +242,18 @@ public class SyncSliceTest extends AbstractFullDistribZkTestBase { shardFailMessage = pollConsistency(shardFailMessage, 0); shardFailMessage = pollConsistency(shardFailMessage, 3000); shardFailMessage = pollConsistency(shardFailMessage, 5000); + shardFailMessage = pollConsistency(shardFailMessage, 8000); return shardFailMessage; } private String pollConsistency(String shardFailMessage, int sleep) throws InterruptedException, Exception { + try { + commit(); + } catch (Throwable t) { + t.printStackTrace(); + } if (shardFailMessage == null) { // try again Thread.sleep(sleep);