iverase commented on a change in pull request #7: URL: https://github.com/apache/lucene/pull/7#discussion_r727868879
########## File path: lucene/test-framework/src/java/org/apache/lucene/index/AssertingLeafReader.java ########## @@ -1090,6 +1090,13 @@ private void assertStats(int maxDoc) { assert in.getDocCount() <= maxDoc; } + @Override + public IndexTree getIndexTree() throws IOException { + // TODO: assert that there are no illegal calls when navigating the tree? + assertThread("Points", creationThread); Review comment: Added and `AssertingIndexTree` that validates that we don't call moveToChild() or clone() after having called moveToParent(). -- 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