You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Renaud Delbru (JIRA)" <ji...@apache.org> on 2012/05/10 12:24:54 UTC
[jira] [Created] (LUCENE-4046) Allows IOException in
DocsEnum#freq()
Renaud Delbru created LUCENE-4046:
-------------------------------------
Summary: Allows IOException in DocsEnum#freq()
Key: LUCENE-4046
URL: https://issues.apache.org/jira/browse/LUCENE-4046
Project: Lucene - Java
Issue Type: Improvement
Components: core/index
Reporter: Renaud Delbru
Fix For: 4.0
Currently, DocsEnum#freq() does not allow IOException. This is problematic if somebody wants to implement a codec that allows lazy loading of freq. Frequency will be read and decoded only when #freq() will be called, therefore calling IndexInput's read methods that can throw IOException.
The current workaround is to catch the IOException in freq() and ignore it (which is not very nice and not a good solution).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (LUCENE-4046) Allows IOException in
DocsEnum#freq()
Posted by "Simon Willnauer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-4046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279713#comment-13279713 ]
Simon Willnauer commented on LUCENE-4046:
-----------------------------------------
bq. Great, Thanks Simon.
no worries! YW
> Allows IOException in DocsEnum#freq()
> -------------------------------------
>
> Key: LUCENE-4046
> URL: https://issues.apache.org/jira/browse/LUCENE-4046
> Project: Lucene - Java
> Issue Type: Improvement
> Components: core/index
> Reporter: Renaud Delbru
> Assignee: Simon Willnauer
> Labels: codec, index
> Fix For: 4.0
>
> Attachments: LUCENE-4046.patch
>
>
> Currently, DocsEnum#freq() does not allow IOException. This is problematic if somebody wants to implement a codec that allows lazy loading of freq. Frequency will be read and decoded only when #freq() will be called, therefore calling IndexInput's read methods that can throw IOException.
> The current workaround is to catch the IOException in freq() and ignore it (which is not very nice and not a good solution).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (LUCENE-4046) Allows IOException in
DocsEnum#freq()
Posted by "Simon Willnauer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-4046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13274326#comment-13274326 ]
Simon Willnauer commented on LUCENE-4046:
-----------------------------------------
This makes perfect sense to me. While I don't see a very common usecase the entire codec stuff is more or less for uncommon usecases. Can you come up with a patch for this?
> Allows IOException in DocsEnum#freq()
> -------------------------------------
>
> Key: LUCENE-4046
> URL: https://issues.apache.org/jira/browse/LUCENE-4046
> Project: Lucene - Java
> Issue Type: Improvement
> Components: core/index
> Reporter: Renaud Delbru
> Labels: codec, index
> Fix For: 4.0
>
>
> Currently, DocsEnum#freq() does not allow IOException. This is problematic if somebody wants to implement a codec that allows lazy loading of freq. Frequency will be read and decoded only when #freq() will be called, therefore calling IndexInput's read methods that can throw IOException.
> The current workaround is to catch the IOException in freq() and ignore it (which is not very nice and not a good solution).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Resolved] (LUCENE-4046) Allows IOException in
DocsEnum#freq()
Posted by "Simon Willnauer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-4046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Willnauer resolved LUCENE-4046.
-------------------------------------
Resolution: Fixed
Lucene Fields: New,Patch Available (was: New)
committed to trunk
> Allows IOException in DocsEnum#freq()
> -------------------------------------
>
> Key: LUCENE-4046
> URL: https://issues.apache.org/jira/browse/LUCENE-4046
> Project: Lucene - Java
> Issue Type: Improvement
> Components: core/index
> Reporter: Renaud Delbru
> Assignee: Simon Willnauer
> Labels: codec, index
> Fix For: 4.0
>
> Attachments: LUCENE-4046.patch
>
>
> Currently, DocsEnum#freq() does not allow IOException. This is problematic if somebody wants to implement a codec that allows lazy loading of freq. Frequency will be read and decoded only when #freq() will be called, therefore calling IndexInput's read methods that can throw IOException.
> The current workaround is to catch the IOException in freq() and ignore it (which is not very nice and not a good solution).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (LUCENE-4046) Allows IOException in
DocsEnum#freq()
Posted by "Simon Willnauer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-4046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Willnauer updated LUCENE-4046:
------------------------------------
Attachment: LUCENE-4046.patch
here is a patch adding IOException to DocsEnum#freq()
> Allows IOException in DocsEnum#freq()
> -------------------------------------
>
> Key: LUCENE-4046
> URL: https://issues.apache.org/jira/browse/LUCENE-4046
> Project: Lucene - Java
> Issue Type: Improvement
> Components: core/index
> Reporter: Renaud Delbru
> Assignee: Simon Willnauer
> Labels: codec, index
> Fix For: 4.0
>
> Attachments: LUCENE-4046.patch
>
>
> Currently, DocsEnum#freq() does not allow IOException. This is problematic if somebody wants to implement a codec that allows lazy loading of freq. Frequency will be read and decoded only when #freq() will be called, therefore calling IndexInput's read methods that can throw IOException.
> The current workaround is to catch the IOException in freq() and ignore it (which is not very nice and not a good solution).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Assigned] (LUCENE-4046) Allows IOException in
DocsEnum#freq()
Posted by "Simon Willnauer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-4046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Willnauer reassigned LUCENE-4046:
---------------------------------------
Assignee: Simon Willnauer
> Allows IOException in DocsEnum#freq()
> -------------------------------------
>
> Key: LUCENE-4046
> URL: https://issues.apache.org/jira/browse/LUCENE-4046
> Project: Lucene - Java
> Issue Type: Improvement
> Components: core/index
> Reporter: Renaud Delbru
> Assignee: Simon Willnauer
> Labels: codec, index
> Fix For: 4.0
>
>
> Currently, DocsEnum#freq() does not allow IOException. This is problematic if somebody wants to implement a codec that allows lazy loading of freq. Frequency will be read and decoded only when #freq() will be called, therefore calling IndexInput's read methods that can throw IOException.
> The current workaround is to catch the IOException in freq() and ignore it (which is not very nice and not a good solution).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (LUCENE-4046) Allows IOException in
DocsEnum#freq()
Posted by "Renaud Delbru (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-4046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13274333#comment-13274333 ]
Renaud Delbru commented on LUCENE-4046:
---------------------------------------
Ok, I'll try to provide a patch in the coming weeks.
> Allows IOException in DocsEnum#freq()
> -------------------------------------
>
> Key: LUCENE-4046
> URL: https://issues.apache.org/jira/browse/LUCENE-4046
> Project: Lucene - Java
> Issue Type: Improvement
> Components: core/index
> Reporter: Renaud Delbru
> Assignee: Simon Willnauer
> Labels: codec, index
> Fix For: 4.0
>
>
> Currently, DocsEnum#freq() does not allow IOException. This is problematic if somebody wants to implement a codec that allows lazy loading of freq. Frequency will be read and decoded only when #freq() will be called, therefore calling IndexInput's read methods that can throw IOException.
> The current workaround is to catch the IOException in freq() and ignore it (which is not very nice and not a good solution).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (LUCENE-4046) Allows IOException in
DocsEnum#freq()
Posted by "Renaud Delbru (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-4046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279712#comment-13279712 ]
Renaud Delbru commented on LUCENE-4046:
---------------------------------------
Great, Thanks Simon.
> Allows IOException in DocsEnum#freq()
> -------------------------------------
>
> Key: LUCENE-4046
> URL: https://issues.apache.org/jira/browse/LUCENE-4046
> Project: Lucene - Java
> Issue Type: Improvement
> Components: core/index
> Reporter: Renaud Delbru
> Assignee: Simon Willnauer
> Labels: codec, index
> Fix For: 4.0
>
> Attachments: LUCENE-4046.patch
>
>
> Currently, DocsEnum#freq() does not allow IOException. This is problematic if somebody wants to implement a codec that allows lazy loading of freq. Frequency will be read and decoded only when #freq() will be called, therefore calling IndexInput's read methods that can throw IOException.
> The current workaround is to catch the IOException in freq() and ignore it (which is not very nice and not a good solution).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org