Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-498

Lucene Directory race condition on segments iterator has NPE thrown by Lucene index opening

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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)

              sgrinove Sanne Grinovero (Inactive)
              sgrinove Sanne Grinovero (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: