Github user uschindler commented on the pull request:

    https://github.com/apache/lucenenet/pull/70#issuecomment-72958293
  
    Hi,
    In Lucene Java the GetCanonicalPath is needed for the following: Java has 
the problem that creating a native lock only affects *other* processes from 
using the directory. It does not prevent the same process from writing to the 
same index directory. Because of that NativeFSLockFactory keeps a static set of 
Path names to also ensure locking in the same JVM/process. To make sure that 
this locking works we need the "canonical name" of the directory, otherwise it 
is not guaranteed that locking really works.
    If this is not an issue on windows (if you lock a file, the file lock is 
visible to the same process, too), then you won't need that.


---
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.
---

Reply via email to