prudhvigodithi commented on code in PR #15608:
URL: https://github.com/apache/lucene/pull/15608#discussion_r2838395552
##########
lucene/core/src/test/org/apache/lucene/search/TestTopFieldCollector.java:
##########
@@ -703,6 +710,43 @@ public void testRandomMinCompetitiveScore() throws
Exception {
dir.close();
}
+ /**
+ * Test that concurrent newCollector() calls are thread-safe. See <a
+ * href="https://github.com/apache/lucene/issues/15605">GitHub issue
#15605</a>
+ */
+ @SuppressWarnings("deprecation")
Review Comment:
I was able to repro the issue with this test, this test fails when used
`this.collectors = new ArrayList<>();`
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]