javanna commented on code in PR #13542: URL: https://github.com/apache/lucene/pull/13542#discussion_r1731282471
########## lucene/core/src/test/org/apache/lucene/index/TestForTooMuchCloning.java: ########## @@ -80,7 +80,7 @@ public void test() throws Exception { // System.out.println("query clone count=" + queryCloneCount); assertTrue( "too many calls to IndexInput.clone during TermRangeQuery: " + queryCloneCount, - queryCloneCount < 50); + queryCloneCount <= Math.max(s.getLeafContexts().size(), s.getSlices().length) * 4); Review Comment: I have no idea, it varied a lot in my tests and I could not align my expectations with what I observed in practice, I ended up applying a magic factor that seems to be good for all the cases. -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org