GitHub user Chand2048 opened a pull request:
https://github.com/apache/lucenenet/pull/105
Fix for TestDirectoryReaderReopen.TestThreadSafety
The java version uses a concurrent hash map so I updated VirtualMethod to
use that.
After that change, we no longer needed the lock on the Reap() function.
Next the Get() needed to use a tryGet() and return the default if there was
nothing in the collection.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/guidotag/lucenenet TestThreadSafety
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/lucenenet/pull/105.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 #105
----
commit c8399a9da7cadc1db9d759a8626f6f1806828ead
Author: Chand2048 <[email protected]>
Date: 2015-02-19T00:15:28Z
Fix for TestDirectoryReaderReopen.TestThreadSafety
The java version uses a concurrent hash map so I updated VirtualMethod to
use that.
After that change, we no longer needed the lock on the Reap() function.
Next the Get() needed to use a tryGet() and return the default if there was
nothing in the collection.
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---