You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Jeff (JIRA)" <ji...@apache.org> on 2007/08/15 20:51:31 UTC
[jira] Created: (LUCENENET-69) FSIndexInput.isFDValid() not ported
correctly
FSIndexInput.isFDValid() not ported correctly
---------------------------------------------
Key: LUCENENET-69
URL: https://issues.apache.org/jira/browse/LUCENENET-69
Project: Lucene.Net
Issue Type: Bug
Reporter: Jeff
Priority: Minor
Attachments: FSDirectory.patch
FSIndexInput.isFDValid() was not ported correctly because it doesn't translate one to one. After looking into this a little more... file.getFD is part of the FileInputStream class in java. This would be the base stream of file. so if the basestream is null it would be invalid. if it is not null it would be valid. After making this change all TestCompoundFile tests pass.
public virtual bool IsFDValid()
{
return (file.BaseStream != null);
//return true; // return file.getFD().valid(); // {{Aroush-2.1 in .NET, how do we do this?
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (LUCENENET-69) FSIndexInput.isFDValid() not ported
correctly
Posted by "Jeff (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff updated LUCENENET-69:
--------------------------
Attachment: FSDirectory.patch
Here is the patch that resolves this issue.
> FSIndexInput.isFDValid() not ported correctly
> ---------------------------------------------
>
> Key: LUCENENET-69
> URL: https://issues.apache.org/jira/browse/LUCENENET-69
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Jeff
> Priority: Minor
> Attachments: FSDirectory.patch
>
>
> FSIndexInput.isFDValid() was not ported correctly because it doesn't translate one to one. After looking into this a little more... file.getFD is part of the FileInputStream class in java. This would be the base stream of file. so if the basestream is null it would be invalid. if it is not null it would be valid. After making this change all TestCompoundFile tests pass.
> public virtual bool IsFDValid()
> {
> return (file.BaseStream != null);
> //return true; // return file.getFD().valid(); // {{Aroush-2.1 in .NET, how do we do this?
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (LUCENENET-69) FSIndexInput.isFDValid() not ported
correctly
Posted by "George Aroush (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Aroush reassigned LUCENENET-69:
--------------------------------------
Assignee: George Aroush
> FSIndexInput.isFDValid() not ported correctly
> ---------------------------------------------
>
> Key: LUCENENET-69
> URL: https://issues.apache.org/jira/browse/LUCENENET-69
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Jeff
> Assignee: George Aroush
> Priority: Minor
> Attachments: FSDirectory.patch
>
>
> FSIndexInput.isFDValid() was not ported correctly because it doesn't translate one to one. After looking into this a little more... file.getFD is part of the FileInputStream class in java. This would be the base stream of file. so if the basestream is null it would be invalid. if it is not null it would be valid. After making this change all TestCompoundFile tests pass.
> public virtual bool IsFDValid()
> {
> return (file.BaseStream != null);
> //return true; // return file.getFD().valid(); // {{Aroush-2.1 in .NET, how do we do this?
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (LUCENENET-69) FSIndexInput.isFDValid() not ported
correctly
Posted by "George Aroush (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Aroush closed LUCENENET-69.
----------------------------------
> FSIndexInput.isFDValid() not ported correctly
> ---------------------------------------------
>
> Key: LUCENENET-69
> URL: https://issues.apache.org/jira/browse/LUCENENET-69
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Jeff
> Assignee: George Aroush
> Priority: Minor
> Attachments: FSDirectory.patch
>
>
> FSIndexInput.isFDValid() was not ported correctly because it doesn't translate one to one. After looking into this a little more... file.getFD is part of the FileInputStream class in java. This would be the base stream of file. so if the basestream is null it would be invalid. if it is not null it would be valid. After making this change all TestCompoundFile tests pass.
> public virtual bool IsFDValid()
> {
> return (file.BaseStream != null);
> //return true; // return file.getFD().valid(); // {{Aroush-2.1 in .NET, how do we do this?
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (LUCENENET-69) FSIndexInput.isFDValid() not ported
correctly
Posted by "George Aroush (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Aroush resolved LUCENENET-69.
------------------------------------
Resolution: Fixed
Applied and delivered patch to 2.1
> FSIndexInput.isFDValid() not ported correctly
> ---------------------------------------------
>
> Key: LUCENENET-69
> URL: https://issues.apache.org/jira/browse/LUCENENET-69
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Jeff
> Assignee: George Aroush
> Priority: Minor
> Attachments: FSDirectory.patch
>
>
> FSIndexInput.isFDValid() was not ported correctly because it doesn't translate one to one. After looking into this a little more... file.getFD is part of the FileInputStream class in java. This would be the base stream of file. so if the basestream is null it would be invalid. if it is not null it would be valid. After making this change all TestCompoundFile tests pass.
> public virtual bool IsFDValid()
> {
> return (file.BaseStream != null);
> //return true; // return file.getFD().valid(); // {{Aroush-2.1 in .NET, how do we do this?
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.