You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2015/06/16 19:28:01 UTC

[jira] [Updated] (LUCENE-6577) Give earlier and better error message for invalid CRC

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

Robert Muir updated LUCENE-6577:
--------------------------------
    Attachment: LUCENE-6577.patch

Here is a stab. No tests yet in TestCodecUtil.

> Give earlier and better error message for invalid CRC
> -----------------------------------------------------
>
>                 Key: LUCENE-6577
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6577
>             Project: Lucene - Core
>          Issue Type: Task
>            Reporter: Robert Muir
>         Attachments: LUCENE-6577.patch
>
>
> From digging into LUCENE-6576:
> We use a 32-bit CRC but store it in 64-bits, but today 32 bits are unused. We should check this on both read and write and if bits are invalid (because something is wrong in the JVM, or because on-disk stuff just got corrupted in that way), deliver a good exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org