[
https://issues.apache.org/jira/browse/LUCENE-9247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17047687#comment-17047687
]
ASF subversion and git services commented on LUCENE-9247:
---------------------------------------------------------
Commit a703c6e334ee736bd6c7d255ee5cbcc26154f9a0 in lucene-solr's branch
refs/heads/branch_8x from Adrien Grand
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=a703c6e ]
LUCENE-9247: Add tests for `checkIntegrity`. (#1284)
This adds a test to `BaseIndexFileFormatTestCase` that the combination
of opening a reader and calling `checkIntegrity` on it reads all bytes
of all files (including index headers and footers). This would help
detect most cases when `checkIntegrity` is not implemented correctly.
> Test that checkIntegrity doesn't miss any file
> ----------------------------------------------
>
> Key: LUCENE-9247
> URL: https://issues.apache.org/jira/browse/LUCENE-9247
> Project: Lucene - Core
> Issue Type: Test
> Reporter: Adrien Grand
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> An Elasticsearch test found out that CompressingStoredFieldsReader neither
> checks the integrity of its index at open time nor when checkIntegrity is
> called. We should have a test that detects this kind of bug.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]