You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Robert Muir (Jira)" <ji...@apache.org> on 2020/11/09 03:18:00 UTC

[jira] [Resolved] (LUCENE-9601) Why not use HardLink in indexWriter.addIndexes

     [ https://issues.apache.org/jira/browse/LUCENE-9601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir resolved LUCENE-9601.
---------------------------------
    Resolution: Not A Problem

You can use {{HardlinkCopyDirectoryWrapper}} if you want this, just take note of the caveats that it documents: https://lucene.apache.org/core/8_7_0/misc/org/apache/lucene/store/HardlinkCopyDirectoryWrapper.html

> Why not use HardLink in indexWriter.addIndexes
> ----------------------------------------------
>
>                 Key: LUCENE-9601
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9601
>             Project: Lucene - Core
>          Issue Type: New Feature
>          Components: core/index
>    Affects Versions: 8.6.3
>            Reporter: zhangchao.es
>            Priority: Minor
>
> when we addIndexes from dirs,it use copySegmentAsIs to copy segment files to dest dir,that 
> requires 2x temporary free space and more io operations.Can hard links be used instead of copying files?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org