[
https://jira.jboss.org/browse/ISPN-523?page=com.atlassian.jira.plugin.sys...
]
Davide Di Somma updated ISPN-523:
---------------------------------
Attachment: ISPN-523.patch
I picked your old version, which you reverted, that solved the problem and I noticed that
something wrong happened when seek() method was called.
I modified that code and now byte array is resized only when InfinispanIndexOutput is
flushing the last chunk.
I also add a test to InfinispanIndexIOTest which verifies that the file content is correct
when writing on the file e calls seek() method occasionally.
reduce Lucene Directory memory usage: store only initialized buffer
ranges
--------------------------------------------------------------------------
Key: ISPN-523
URL:
https://jira.jboss.org/browse/ISPN-523
Project: Infinispan
Issue Type: Task
Components: Lucene Directory
Reporter: Sanne Grinovero
Assignee: Sanne Grinovero
Fix For: 4.1.0.Final, 5.0.0.BETA1
Attachments: ISPN-523.patch
All buffers created prior to writing a new file chunk are initialized at bufferSize and
then stored as-is (as the full buffer);
In most cases the memory penalty due to unused areas is not noticeable as biggest files
are split in several chunks, but the many smallest files containing metadata only are
wasting more memory, as only a couple of bytes are used in each.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira