You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Robert Stewart (JIRA)" <ji...@apache.org> on 2008/05/29 21:07:45 UTC

[jira] Created: (LUCENENET-115) NTFS hard link index replication - need Delete file share in FSDirectory class.

NTFS hard link index replication - need Delete file share in FSDirectory class.
-------------------------------------------------------------------------------

                 Key: LUCENENET-115
                 URL: https://issues.apache.org/jira/browse/LUCENENET-115
             Project: Lucene.Net
          Issue Type: Improvement
         Environment: Windows 2003, 64-bit, .NET 2.0
            Reporter: Robert Stewart
            Priority: Minor


I have implemented index distribution/replication mechanism using NTFS hard links.  I make a hard-link copy of my index files into another directory on a one-minute interval.  The problem is that deleting older snapshot files index is impossible because NTFS hard-links will not delete if another program currently has ANY other link to the same file open without concurrent delete share option.  This is solvable by adding the System.IO.FileShare.Delete option to FSIndexInput and FSIndexOutput classes.  This should not have any negative impact on existing Lucene indexes I dont think.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (LUCENENET-115) NTFS hard link index replication - need Delete file share in FSDirectory class.

Posted by "Digy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Digy closed LUCENENET-115.
--------------------------

    Resolution: Cannot Reproduce
      Assignee: Digy

Timed out.!!!

> NTFS hard link index replication - need Delete file share in FSDirectory class.
> -------------------------------------------------------------------------------
>
>                 Key: LUCENENET-115
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-115
>             Project: Lucene.Net
>          Issue Type: Improvement
>         Environment: Windows 2003, 64-bit, .NET 2.0
>            Reporter: Robert Stewart
>            Assignee: Digy
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> I have implemented index distribution/replication mechanism using NTFS hard links.  I make a hard-link copy of my index files into another directory on a one-minute interval.  The problem is that deleting older snapshot files index is impossible because NTFS hard-links will not delete if another program currently has ANY other link to the same file open without concurrent delete share option.  This is solvable by adding the System.IO.FileShare.Delete option to FSIndexInput and FSIndexOutput classes.  This should not have any negative impact on existing Lucene indexes I dont think.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (LUCENENET-115) NTFS hard link index replication - need Delete file share in FSDirectory class.

Posted by "George Aroush (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENENET-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614152#action_12614152 ] 

George Aroush commented on LUCENENET-115:
-----------------------------------------

Hi Robert,

If this is still an issue with 2.3.1, please profile a patch, for review and inclusion into 2.3.1.

Thanks.

-- George

> NTFS hard link index replication - need Delete file share in FSDirectory class.
> -------------------------------------------------------------------------------
>
>                 Key: LUCENENET-115
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-115
>             Project: Lucene.Net
>          Issue Type: Improvement
>         Environment: Windows 2003, 64-bit, .NET 2.0
>            Reporter: Robert Stewart
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> I have implemented index distribution/replication mechanism using NTFS hard links.  I make a hard-link copy of my index files into another directory on a one-minute interval.  The problem is that deleting older snapshot files index is impossible because NTFS hard-links will not delete if another program currently has ANY other link to the same file open without concurrent delete share option.  This is solvable by adding the System.IO.FileShare.Delete option to FSIndexInput and FSIndexOutput classes.  This should not have any negative impact on existing Lucene indexes I dont think.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.