javanna commented on code in PR #13542: URL: https://github.com/apache/lucene/pull/13542#discussion_r1686994627
########## 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: This is to account for higher number of slices created while running tests, and the number of calls to clone being a factor of that. -- 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