lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pvginkel <...@git.apache.org>
Subject [GitHub] lucenenet pull request #205: Made FSDirectory stale files set synchronized.
Date Mon, 08 May 2017 11:44:33 GMT
GitHub user pvginkel opened a pull request:

    https://github.com/apache/lucenenet/pull/205

    Made FSDirectory stale files set synchronized.

    `FSDirectory` has a hash set to track stale files. In the original Lucene source at e.g.
https://github.com/apache/lucene-solr/blob/b7047694256a8e5808b9a9ddf480643ff768d8a9/lucene/core/src/java/org/apache/lucene/store/FSDirectory.java#L126,
this is a synchronized set. In the .NET version, it's not, causing unsynchronized access to
this set.
    
    Changed to a `Lucene.Net.Support.ConcurrentHashSet<>`.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/pvginkel/lucenenet synchronized-stale-files

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucenenet/pull/205.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #205
    
----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message