gokaai commented on code in PR #12872: URL: https://github.com/apache/lucene/pull/12872#discussion_r1420277534
########## lucene/core/src/java/org/apache/lucene/index/CheckIndex.java: ########## @@ -957,6 +974,9 @@ private Status.SegmentInfoStatus testSegment( SegmentReader reader = null; try { + if (info.info.maxDoc() == 0) { + throw new CheckIndexException(" this segment has missing or corrupt segment info"); Review Comment: > Remove the extra space before this I was keeping it consistent with [this exception message](https://github.com/apache/lucene/blob/ba81826951c1f628efb60c6165add27601173bd9/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java#L949) - should I change this one too? -- 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