You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Hudson (Commented) (JIRA)" <ji...@apache.org> on 2012/02/08 03:08:59 UTC
[jira] [Commented] (MAHOUT-951) StackOverflow Error when using
mahout lucene.vector
[ https://issues.apache.org/jira/browse/MAHOUT-951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13203147#comment-13203147 ]
Hudson commented on MAHOUT-951:
-------------------------------
Integrated in Mahout-Quality #1340 (See [https://builds.apache.org/job/Mahout-Quality/1340/])
MAHOUT-951 unroll recursion to avoid stack overflow
srowen : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1241650
Files :
* /mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/lucene/LuceneIterator.java
> StackOverflow Error when using mahout lucene.vector
> ---------------------------------------------------
>
> Key: MAHOUT-951
> URL: https://issues.apache.org/jira/browse/MAHOUT-951
> Project: Mahout
> Issue Type: Bug
> Components: Integration
> Affects Versions: 0.6
> Environment: presumably would occur on any platform given the same data.
> Reporter: Paul Rudin
> Assignee: Sean Owen
> Labels: patch
> Fix For: 0.7
>
> Attachments: 951.patch
>
>
> Running mahout lucene.vector can result in a java StackOverFlowError.
> I think this is probably because the current implementation of LuceneIterator.computeNext() is recursive and with appropriate data the stack becomes too large. The recursion only occurs when you hit a document that doesn't have termvectors in the specified field - so you need a lucene.index with lots of documents lacking such in order to hit this problem.
> I've made minimal changes to convert to a loop rather than recurse and I'll attach a patch to this ticket.
--
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