[infinispan-issues] [JBoss JIRA] Created: (ISPN-498) Lucene Directory race condition on segments iterator has NPE thrown by Lucene index opening
Sanne Grinovero (JIRA)
jira-events at lists.jboss.org
Mon Jun 21 10:32:46 EDT 2010
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.1.0.BETA2, 4.1.0.BETA1, 4.1.0.ALPHA3, 4.1.0.ALPHA2, 4.1.0.ALPHA1, 4.0.0.Final
Reporter: Sanne Grinovero
Assignee: Sanne Grinovero
Fix For: 4.1.0.CR1, 5.0.0.BETA1
{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)
--
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
More information about the infinispan-issues
mailing list