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

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

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)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: