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: [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]