[ 
https://issues.apache.org/jira/browse/LUCENE-9356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17133199#comment-17133199
 ] 

Adrien Grand commented on LUCENE-9356:
--------------------------------------

Thanks to LUCENE-7822 and LUCENE-9359, Lucene now always throws a 
CorruptIndexException or an IndexFormatToo(Old|New)Exception when opening and 
then calling checkIntegrity on an index. The attached PR adds a test.

> Add tests for corruptions caused by byte flips
> ----------------------------------------------
>
>                 Key: LUCENE-9356
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9356
>             Project: Lucene - Core
>          Issue Type: Test
>            Reporter: Adrien Grand
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> We already have tests that file truncation and modification of the index 
> headers are caught correctly. I'd like to add another test that flipping a 
> byte in a way that modifies the checksum of the file is always caught 
> gracefully by Lucene.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to