You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Ian Vink (JIRA)" <ji...@apache.org> on 2009/02/19 19:24:02 UTC
[jira] Created: (LUCENENET-171) FastCharStream.cs => charsRead is 0
often in AND queries using SnowBall
FastCharStream.cs => charsRead is 0 often in AND queries using SnowBall
-----------------------------------------------------------------------
Key: LUCENENET-171
URL: https://issues.apache.org/jira/browse/LUCENENET-171
Project: Lucene.Net
Issue Type: Bug
Environment: Windows XP, Visual Studio 2008
Reporter: Ian Vink
Analyzer: SnowBall / English
Version 2.3.1
When a Query is made using an AND clause, the charsRead as below comes out 0 and so throws"read past eof"
the input.Read returns 0 when there is no more chars read so I would have thought that the condition if (charsRead <= 0) should be if (charsRead < 0) perhaps?
I will try to get a sub project to demo the error, but it's on a massive lucene database
try
{
charsRead = input.Read(buffer, newPosition, buffer.Length - newPosition);
}
catch
{
}
if (charsRead <= 0)
throw new System.IO.IOException("read past eof");
else
bufferLength += charsRead;
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (LUCENENET-171) FastCharStream.cs => charsRead is 0
often in AND queries using SnowBall
Posted by "Ian Vink (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ian Vink updated LUCENENET-171:
-------------------------------
Ignore. My Bad.
I didn't realze the Exceptions were used to communicate between modules.
> FastCharStream.cs => charsRead is 0 often in AND queries using SnowBall
> -----------------------------------------------------------------------
>
> Key: LUCENENET-171
> URL: https://issues.apache.org/jira/browse/LUCENENET-171
> Project: Lucene.Net
> Issue Type: Bug
> Environment: Windows XP, Visual Studio 2008
> Reporter: Ian Vink
>
> Analyzer: SnowBall / English
> Version 2.3.1
> When a Query is made using an AND clause, the charsRead as below comes out 0 and so throws"read past eof"
> the input.Read returns 0 when there is no more chars read so I would have thought that the condition if (charsRead <= 0) should be if (charsRead < 0) perhaps?
> I will try to get a sub project to demo the error, but it's on a massive lucene database
>
> try
> {
> charsRead = input.Read(buffer, newPosition, buffer.Length - newPosition);
> }
> catch
> {
> }
>
> if (charsRead <= 0)
> throw new System.IO.IOException("read past eof");
> else
> bufferLength += charsRead;
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (LUCENENET-171) FastCharStream.cs => charsRead is 0
often in AND queries using SnowBall
Posted by "Ian Vink (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ian Vink closed LUCENENET-171.
------------------------------
Resolution: Invalid
My Bad. Not a bug
> FastCharStream.cs => charsRead is 0 often in AND queries using SnowBall
> -----------------------------------------------------------------------
>
> Key: LUCENENET-171
> URL: https://issues.apache.org/jira/browse/LUCENENET-171
> Project: Lucene.Net
> Issue Type: Bug
> Environment: Windows XP, Visual Studio 2008
> Reporter: Ian Vink
>
> Analyzer: SnowBall / English
> Version 2.3.1
> When a Query is made using an AND clause, the charsRead as below comes out 0 and so throws"read past eof"
> the input.Read returns 0 when there is no more chars read so I would have thought that the condition if (charsRead <= 0) should be if (charsRead < 0) perhaps?
> I will try to get a sub project to demo the error, but it's on a massive lucene database
>
> try
> {
> charsRead = input.Read(buffer, newPosition, buffer.Length - newPosition);
> }
> catch
> {
> }
>
> if (charsRead <= 0)
> throw new System.IO.IOException("read past eof");
> else
> bufferLength += charsRead;
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.