[
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.