lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-2726) simulate disk fulls in copyBytes
Date Thu, 28 Oct 2010 13:28:22 GMT

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

Robert Muir updated LUCENE-2726:
--------------------------------

    Attachment: LUCENE-2726.patch

here's a patch, uses the same logic to check as writeBytes does.

> simulate disk fulls in copyBytes
> --------------------------------
>
>                 Key: LUCENE-2726
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2726
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: Build
>            Reporter: Robert Muir
>             Fix For: 3.1, 4.0
>
>         Attachments: LUCENE-2726.patch
>
>
> In LUCENE-2637, i disabled copyBytes optimization (so it just calls writeBytes), but
i mentioned there,
> that I think it would be good to try to beef up tests if we ever wanted to have an optimization
like this.
> the problem was that when there was an index corruption bug, it was very difficult to
detect with our tests.
> So I think for safety, we should do this, even though its redundant with our current
impl, since we look
> for this in writeBytes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message