nickva commented on code in PR #6096:
URL: https://github.com/apache/couchdb/pull/6096#discussion_r3822604172
##########
extra/nouveau/src/main/java/org/apache/couchdb/nouveau/lucene/LuceneIndex.java:
##########
@@ -208,7 +212,9 @@ public SearchResults doSearch(final SearchRequest request)
throws IOException {
cm = new MultiCollectorManager(hits);
}
- searcherManager.maybeRefreshBlocking();
+ if (searcherManagerStale.getAndSet(false)) {
Review Comment:
This seems racy if say after an update? A first search call triggers
getAndSet(false) but then a concurrent, second search won't block anymore even
if the first one hadn't finished updating?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]