[
https://jira.jboss.org/browse/ISPN-498?page=com.atlassian.jira.plugin.sys...
]
Sanne Grinovero updated ISPN-498:
---------------------------------
Description:
Set<String> filesList = getFileList();
return filesList.toArray(new String[filesList.size()]);
is wrong as the size() allocates an array of a size which is potentially bigger than the
number of Strings it's going to contain, populating some null values in the resulting
array (which angers Lucene quite a lot)
was:
{code}
Set<String> filesList = getFileList();
return filesList.toArray(new String[filesList.size()]);{code}
is wrong as the size() allocates an array of a size which is potentially bigger than the
number of Strings it's going to contain, populating some null values in the resulting
array (which angers Lucene quite a lot)
Lucene Directory race condition on segments iterator has NPE thrown
by Lucene index opening
-------------------------------------------------------------------------------------------
Key: ISPN-498
URL:
https://jira.jboss.org/browse/ISPN-498
Project: Infinispan
Issue Type: Bug
Components: Lucene Directory
Affects Versions: 4.0.0.Final, 4.1.0.ALPHA1, 4.1.0.ALPHA2, 4.1.0.ALPHA3, 4.1.0.BETA1,
4.1.0.BETA2
Reporter: Sanne Grinovero
Assignee: Sanne Grinovero
Fix For: 4.1.0.CR1, 5.0.0.BETA1
Set<String> filesList = getFileList();
return filesList.toArray(new String[filesList.size()]);
is wrong as the size() allocates an array of a size which is potentially bigger than the
number of Strings it's going to contain, populating some null values in the resulting
array (which angers Lucene quite a lot)
--
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