You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2010/08/23 19:14:15 UTC

[jira] Created: (LUCENE-2615) DirectIOLinuxDirectory hardwires buffer size and creates files with invalid permissions

DirectIOLinuxDirectory hardwires buffer size and creates files with invalid permissions
---------------------------------------------------------------------------------------

                 Key: LUCENE-2615
                 URL: https://issues.apache.org/jira/browse/LUCENE-2615
             Project: Lucene - Java
          Issue Type: Bug
          Components: contrib/*
            Reporter: Michael McCandless
            Assignee: Michael McCandless
             Fix For: 3.1, 4.0


TestDemo fails if I use the DirectIOLinuxDirectory (using Robert's new -Dtests.directory=XXX), because when it O_CREATs a file, it fails to specify the mode, so [depending on C stack!] you can get permission denied.

Also, we currently hardwire the buffer size to 1 MB (Mark found this)... I plan to add a "forcedBufferSize" to the DirectIOLinuxDir's ctor, to optionally override lucene's default buffer sizes (which are way too small for direct IO to get barely OK performance).  If you pass 0 for this then you get Lucene's default buffer sizes...

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


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


[jira] Updated: (LUCENE-2615) DirectIOLinuxDirectory hardwires buffer size and creates files with invalid permissions

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

Michael McCandless updated LUCENE-2615:
---------------------------------------

    Attachment: LUCENE-2615.patch

Attached patch; I'll commit shortly.

> DirectIOLinuxDirectory hardwires buffer size and creates files with invalid permissions
> ---------------------------------------------------------------------------------------
>
>                 Key: LUCENE-2615
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2615
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/*
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 3.1, 4.0
>
>         Attachments: LUCENE-2615.patch
>
>
> TestDemo fails if I use the DirectIOLinuxDirectory (using Robert's new -Dtests.directory=XXX), because when it O_CREATs a file, it fails to specify the mode, so [depending on C stack!] you can get permission denied.
> Also, we currently hardwire the buffer size to 1 MB (Mark found this)... I plan to add a "forcedBufferSize" to the DirectIOLinuxDir's ctor, to optionally override lucene's default buffer sizes (which are way too small for direct IO to get barely OK performance).  If you pass 0 for this then you get Lucene's default buffer sizes...

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


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


[jira] Resolved: (LUCENE-2615) DirectIOLinuxDirectory hardwires buffer size and creates files with invalid permissions

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

Michael McCandless resolved LUCENE-2615.
----------------------------------------

    Resolution: Fixed

> DirectIOLinuxDirectory hardwires buffer size and creates files with invalid permissions
> ---------------------------------------------------------------------------------------
>
>                 Key: LUCENE-2615
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2615
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/*
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 3.1, 4.0
>
>         Attachments: LUCENE-2615.patch
>
>
> TestDemo fails if I use the DirectIOLinuxDirectory (using Robert's new -Dtests.directory=XXX), because when it O_CREATs a file, it fails to specify the mode, so [depending on C stack!] you can get permission denied.
> Also, we currently hardwire the buffer size to 1 MB (Mark found this)... I plan to add a "forcedBufferSize" to the DirectIOLinuxDir's ctor, to optionally override lucene's default buffer sizes (which are way too small for direct IO to get barely OK performance).  If you pass 0 for this then you get Lucene's default buffer sizes...

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


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