Uploaded image for project: 'Lucene.Net'
  1. Lucene.Net
  2. LUCENENET-521

Concurrency bug with MMapDirectory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Lucene.Net 3.0.3
    • Lucene.Net 4.8.0
    • Lucene.Net Core
    • None
    • Visual Studio 2012, Lucene.Net 3.0.3 via Nudget, Windows 8 64bit, 4GB DDR3

    Description

      It seems like mmapdirectory doesnt handle concurrency
      this works fine: http://pastebin.com/EQx0L23K

      This:http://pastebin.com/ay6B2Krp (note that the only diff is, that i changed the FsDirectory.Open(newDirInfo) to new MMapDirectory(newDirinfo) in line 12 )
      fails with exception:
      {System.ArgumentOutOfRangeException: Index was out of range. Must be non-2negative and less than the size of the collection.
      Full exception here: http://pastebin.com/erZTxH3d

      If in the second code example I set the concurrentTaskCount to 1, everything is just fine.

      Looks like a concurrency bug for me. Am I missing something?

      T

      Edit: I attached to content of the newMMap folder, after the index is created

      Attachments

        1. _0.cfs
          7 kB
          Tamas Varga
        2. _0.cfx
          6 kB
          Tamas Varga
        3. segments_2
          0.2 kB
          Tamas Varga
        4. segments.gen
          0.0 kB
          Tamas Varga

        Activity

          People

            Unassigned Unassigned
            vargatamas90 Tamas Varga
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: