You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ro...@apache.org on 2019/06/24 09:16:35 UTC
[lucene-solr] branch master updated: LUCENE-8766: Further checks
against race in test
This is an automated email from the ASF dual-hosted git repository.
romseygeek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/master by this push:
new c33177e LUCENE-8766: Further checks against race in test
c33177e is described below
commit c33177e42809b45d4307cec819b6357b366fe0b5
Author: Alan Woodward <ro...@apache.org>
AuthorDate: Mon Jun 24 10:03:43 2019 +0100
LUCENE-8766: Further checks against race in test
---
.../monitor/src/test/org/apache/lucene/monitor/TestCachePurging.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lucene/monitor/src/test/org/apache/lucene/monitor/TestCachePurging.java b/lucene/monitor/src/test/org/apache/lucene/monitor/TestCachePurging.java
index 3e87071..e1409a8 100644
--- a/lucene/monitor/src/test/org/apache/lucene/monitor/TestCachePurging.java
+++ b/lucene/monitor/src/test/org/apache/lucene/monitor/TestCachePurging.java
@@ -149,7 +149,9 @@ public class TestCachePurging extends MonitorTestBase {
monitor.addQueryIndexUpdateListener(new MonitorUpdateListener() {
@Override
public void onPurge() {
- latch.countDown();
+ // It can sometimes take a couple of purge runs to get everything in sync
+ if (monitor.getQueryCacheStats().cachedQueries == 99)
+ latch.countDown();
}
});