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:34 UTC
[lucene-solr] branch branch_8x 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 branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8x by this push:
new 8a94a6a LUCENE-8766: Further checks against race in test
8a94a6a is described below
commit 8a94a6a62dcd08241dec04f7ff926b81b213938b
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();
}
});