From cf4eb04a21da75663cce61c6e86cd213da6aeafb Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Mon, 12 May 2014 14:32:51 +0000 Subject: [PATCH] fix rare test fail git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1593976 13f79535-47bb-0310-9956-ffa450edef68 --- .../index/TestIndexWriterExceptions.java | 52 ++++++++++++++----- 1 file changed, 38 insertions(+), 14 deletions(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterExceptions.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterExceptions.java index 310219047c0..e81b5052629 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterExceptions.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterExceptions.java @@ -1940,44 +1940,56 @@ public class TestIndexWriterExceptions extends LuceneTestCase { shouldFail.set(true); boolean doClose = false; - + int updatingDocID = -1; + long updatingValue = -1; try { - boolean defaultCodecSupportsFieldUpdates = defaultCodecSupportsFieldUpdates(); for(int i=0;i