|
Doron Cohen made changes - 12/Jul/07 11:05 PM
Previous patch apparently did not fix the bug - a casting problem in RAMOutputStream had to be fixed.
Updated patch adds a test imitating ramFile larger than maxint. For this had to make the allocation of a new byte array in RAMFile overridable. The new test fails before fixing RAMOutputStream (affecting RAMDirectory constructor from FS). However the issues in RAMInputStream in fact do not cause failures, yet they should be fixed. With a test in place I now feel confident in this fix - will commit it in a day or two if there are no reservations.
Doron Cohen made changes - 15/Jul/07 09:52 PM
Doron Cohen made changes - 19/Jul/07 04:51 PM
Doron Cohon,
Thanks a tonne. I tried your first patch and it didn't work. Today i saw your message and checked out the source from head and built it.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
All tests pass but non of those actually demonstrates the bug being fixed. I don't currently have a large enough index to test this.
I will wait for a manual test by Murali (who reported this issue), and for at least one patch review.