You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Adrien Grand (Jira)" <ji...@apache.org> on 2020/06/12 07:20:00 UTC

[jira] [Reopened] (LUCENE-9356) Add tests for corruptions caused by byte flips

     [ https://issues.apache.org/jira/browse/LUCENE-9356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrien Grand reopened LUCENE-9356:
----------------------------------

I reverted the test, there are still some cases that wouldn't cause a CorruptIndexException and that do not seem straightforward to fix, such as checking the suffix in the index header, which might throw an EOF. I'll think more about what can be done.

> 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
>             Fix For: 8.6
>
>          Time Spent: 1h 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: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org