lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Svensson (JIRA)" <>
Subject [jira] [Commented] (LUCENENET-521) Concurrency bug with MMapDirectory
Date Sat, 04 May 2013 16:54:15 GMT


Simon Svensson commented on LUCENENET-521:

Further debugging in the StackOverflow question shows that the 2.9.4 implementation of MemoryMappedDirectory
uses memory-mapped files, while the 3.0.3 implementation just reads the files into MemoryStream

> Concurrency bug with MMapDirectory
> ----------------------------------
>                 Key: LUCENENET-521
>                 URL:
>             Project: Lucene.Net
>          Issue Type: Bug
>          Components: Lucene.Net Core
>    Affects Versions: Lucene.Net 3.0.3
>         Environment: Visual Studio 2012, Lucene.Net 3.0.3 via Nudget, Windows 8 64bit,
>            Reporter: Tamas Varga
>            Priority: Blocker
>         Attachments: _0.cfs, _0.cfx, segments_2, segments.gen
> It seems like mmapdirectory doesnt handle concurrency
> this works fine:
> This: (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:
> If in the second code example I set the concurrentTaskCount to 1, everything is just
> 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

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message