You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2022/02/09 18:43:44 UTC

[GitHub] [lucenenet] hamzashoukat94 commented on issue #616: Cannot access the cfs file.

hamzashoukat94 commented on issue #616:
URL: https://github.com/apache/lucenenet/issues/616#issuecomment-1034080011


   Yes, I asked this question on stack overflow.  
   
   I'm working on Lucene's structure. I need to copy the index files from one path to another using fileStream.  Meanwhile, readers and searchers are opening and closing on index files. Readers are taken from the writer or directory in different applications. 
   
   Let's say you have an index on path1, and on-demand, you need to transfer a portion of index files to the second path. That's why I need to open the filestream. 
   
   
   
   > Is this question also you?
   > 
   > https://stackoverflow.com/questions/71047400/whos-locking-the-cfs-file-in-lucene
   > 
   > It might be helpful if you explain a little more about what you are trying to do. We have the `FileShare` flags set up in a way that the tests pass, but the tests may not cover every use case that is allowed in Lucene, so we might need to adjust some of the settings.
   > 
   > Do note that there are several CFS commands in the [lucene-cli tool](https://lucenenet.apache.org/docs/4.8.0-beta00015/cli/index.html), but in general the assumption (by us) is that the commands will be performed while the index is not being used. However, there shouldn't be any reason why we can't add the `FileShare.Read` flag so multiple file streams can at least read the files (on every file except for `write.lock`).
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org