You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Digy (JIRA)" <ji...@apache.org> on 2007/08/16 15:11:31 UTC

[jira] Created: (LUCENENET-75) FSDirectory does not correctly handle directory cache "DIRECTORIES"

FSDirectory does not correctly handle directory cache "DIRECTORIES"
-------------------------------------------------------------------

                 Key: LUCENENET-75
                 URL: https://issues.apache.org/jira/browse/LUCENENET-75
             Project: Lucene.Net
          Issue Type: Bug
            Reporter: Digy
            Priority: Critical
         Attachments: FSDirectory.patch

FSDirectory uses FileInfo class as a key to store and retrieve values from cache "DIRECTORIES". 
Since  FileInfo instances are different(everytime a new instance is created in GetDirectory method),  getting a previously stored value from the cache always returns null.

So instead of FileInfo class, directory's FullPath must be used as a key to access the cache.

FileInfo file = .....
DIRECTORIES[file] = .....;  ====> DIRECTORIES[file.FullName] = .......;

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


[jira] Assigned: (LUCENENET-75) FSDirectory does not correctly handle directory cache "DIRECTORIES"

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

George Aroush reassigned LUCENENET-75:
--------------------------------------

    Assignee: George Aroush

> FSDirectory does not correctly handle directory cache "DIRECTORIES"
> -------------------------------------------------------------------
>
>                 Key: LUCENENET-75
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-75
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Digy
>            Assignee: George Aroush
>            Priority: Critical
>         Attachments: FSDirectory.patch
>
>
> FSDirectory uses FileInfo class as a key to store and retrieve values from cache "DIRECTORIES". 
> Since  FileInfo instances are different(everytime a new instance is created in GetDirectory method),  getting a previously stored value from the cache always returns null.
> So instead of FileInfo class, directory's FullPath must be used as a key to access the cache.
> FileInfo file = .....
> DIRECTORIES[file] = .....;  ====> DIRECTORIES[file.FullName] = .......;

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


[jira] Resolved: (LUCENENET-75) FSDirectory does not correctly handle directory cache "DIRECTORIES"

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

George Aroush resolved LUCENENET-75.
------------------------------------

    Resolution: Fixed

Applied patch and delivered to 2.1

> FSDirectory does not correctly handle directory cache "DIRECTORIES"
> -------------------------------------------------------------------
>
>                 Key: LUCENENET-75
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-75
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Digy
>            Assignee: George Aroush
>            Priority: Critical
>         Attachments: FSDirectory.patch
>
>
> FSDirectory uses FileInfo class as a key to store and retrieve values from cache "DIRECTORIES". 
> Since  FileInfo instances are different(everytime a new instance is created in GetDirectory method),  getting a previously stored value from the cache always returns null.
> So instead of FileInfo class, directory's FullPath must be used as a key to access the cache.
> FileInfo file = .....
> DIRECTORIES[file] = .....;  ====> DIRECTORIES[file.FullName] = .......;

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


[jira] Closed: (LUCENENET-75) FSDirectory does not correctly handle directory cache "DIRECTORIES"

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

George Aroush closed LUCENENET-75.
----------------------------------


> FSDirectory does not correctly handle directory cache "DIRECTORIES"
> -------------------------------------------------------------------
>
>                 Key: LUCENENET-75
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-75
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Digy
>            Assignee: George Aroush
>            Priority: Critical
>         Attachments: FSDirectory.patch
>
>
> FSDirectory uses FileInfo class as a key to store and retrieve values from cache "DIRECTORIES". 
> Since  FileInfo instances are different(everytime a new instance is created in GetDirectory method),  getting a previously stored value from the cache always returns null.
> So instead of FileInfo class, directory's FullPath must be used as a key to access the cache.
> FileInfo file = .....
> DIRECTORIES[file] = .....;  ====> DIRECTORIES[file.FullName] = .......;

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


[jira] Updated: (LUCENENET-75) FSDirectory does not correctly handle directory cache "DIRECTORIES"

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

Digy updated LUCENENET-75:
--------------------------

    Attachment: FSDirectory.patch

> FSDirectory does not correctly handle directory cache "DIRECTORIES"
> -------------------------------------------------------------------
>
>                 Key: LUCENENET-75
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-75
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Digy
>            Priority: Critical
>         Attachments: FSDirectory.patch
>
>
> FSDirectory uses FileInfo class as a key to store and retrieve values from cache "DIRECTORIES". 
> Since  FileInfo instances are different(everytime a new instance is created in GetDirectory method),  getting a previously stored value from the cache always returns null.
> So instead of FileInfo class, directory's FullPath must be used as a key to access the cache.
> FileInfo file = .....
> DIRECTORIES[file] = .....;  ====> DIRECTORIES[file.FullName] = .......;

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


[jira] Commented: (LUCENENET-75) FSDirectory does not correctly handle directory cache "DIRECTORIES"

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

Digy commented on LUCENENET-75:
-------------------------------

this patch fixes nunit test -->TestLockFactory.TestFSDirectoryDifferentLockFactory

> FSDirectory does not correctly handle directory cache "DIRECTORIES"
> -------------------------------------------------------------------
>
>                 Key: LUCENENET-75
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-75
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Digy
>            Priority: Critical
>         Attachments: FSDirectory.patch
>
>
> FSDirectory uses FileInfo class as a key to store and retrieve values from cache "DIRECTORIES". 
> Since  FileInfo instances are different(everytime a new instance is created in GetDirectory method),  getting a previously stored value from the cache always returns null.
> So instead of FileInfo class, directory's FullPath must be used as a key to access the cache.
> FileInfo file = .....
> DIRECTORIES[file] = .....;  ====> DIRECTORIES[file.FullName] = .......;

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