You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Doug Sale (JIRA)" <ji...@apache.org> on 2008/07/17 16:33:31 UTC

[jira] Created: (LUCENENET-132) bug in DocumentsWriter.BalanceRAM()

bug in DocumentsWriter.BalanceRAM()
-----------------------------------

                 Key: LUCENENET-132
                 URL: https://issues.apache.org/jira/browse/LUCENENET-132
             Project: Lucene.Net
          Issue Type: Bug
            Reporter: Doug Sale


BalanceRAM() throws System.IndexOutOfRangeException in certain cases, corrupts data in others

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


[jira] Resolved: (LUCENENET-132) bug in DocumentsWriter.BalanceRAM()

Posted by "Doug Sale (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Sale resolved LUCENENET-132.
---------------------------------

    Resolution: Fixed

bad conversion from Java to C#:
  - in Java:
    - Arrays.fill(Object[], int fromIndex, int toIndex, Object value);
  - in C#:
    - Array.Clear(Object[], int index, int length);

code was using 'toIndex' for 'length', which would sometimes force an IndexOutOfRangeException and at other times would leave the buffer in an inconsistent state.

Fixes unit test cases:

Lucene.Net.Index.TestIndexWriter.TestChangingRAMBuffer
Lucene.Net.Index.TestIndexWriter.TestDiverseDocs


> bug in DocumentsWriter.BalanceRAM()
> -----------------------------------
>
>                 Key: LUCENENET-132
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-132
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Doug Sale
>         Attachments: DocumentsWriter.patch
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> BalanceRAM() throws System.IndexOutOfRangeException in certain cases, corrupts data in others

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


[jira] Closed: (LUCENENET-132) bug in DocumentsWriter.BalanceRAM()

Posted by "George Aroush (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Aroush closed LUCENENET-132.
-----------------------------------


Applied patch and delivered.

> bug in DocumentsWriter.BalanceRAM()
> -----------------------------------
>
>                 Key: LUCENENET-132
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-132
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Doug Sale
>         Attachments: DocumentsWriter.patch
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> BalanceRAM() throws System.IndexOutOfRangeException in certain cases, corrupts data in others

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


[jira] Updated: (LUCENENET-132) bug in DocumentsWriter.BalanceRAM()

Posted by "Doug Sale (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Sale updated LUCENENET-132:
--------------------------------

    Attachment: DocumentsWriter.patch

fixes bug with BalanceRAM() method

> bug in DocumentsWriter.BalanceRAM()
> -----------------------------------
>
>                 Key: LUCENENET-132
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-132
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Doug Sale
>         Attachments: DocumentsWriter.patch
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> BalanceRAM() throws System.IndexOutOfRangeException in certain cases, corrupts data in others

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