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

Details

    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)

      Attachments

        Activity

          People

            sgrinove Sanne Grinovero
            sgrinove Sanne Grinovero
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: