remove bad assert

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1407328 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-11-09 00:34:42 +00:00
parent cd7dfb5ca6
commit 504938ec03
1 changed files with 7 additions and 2 deletions

View File

@ -244,8 +244,13 @@ public class TestShardSearching extends ShardSearchingTestBase {
System.out.println(" searcher expired during search: " + see); System.out.println(" searcher expired during search: " + see);
see.printStackTrace(System.out); see.printStackTrace(System.out);
} }
assert prevSearchState != null; // We can't do this in general: on a very slow
priorSearches.remove(prevSearchState); // computer it's possible the local searcher
// expires before we can finish our search:
// assert prevSearchState != null;
if (prevSearchState != null) {
priorSearches.remove(prevSearchState);
}
} }
} }
} finally { } finally {