lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-3037) TestFSTs.testRealTerms produces a corrupt index
Date Tue, 19 Apr 2011 18:08:05 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-3037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13021692#comment-13021692
] 

Robert Muir commented on LUCENE-3037:
-------------------------------------

hi dawid, thanks, i used this:
{noformat}
/** returns x == 0 ? 0 : Math.floor(Math.log(x) / Math.log(base)) */
 static int log(int x, int base) {
    int ret = 0;
    while (x >= base) {
      x /= base;
      ret++;
    }
    return ret;
 }
{noformat}

i did a quick test and this seems faster than our old calculation, but speed isn't particularly
important here though: when initting the skipper at this place we are doing i/o... its more
important that the calculation isnt wrong.


> TestFSTs.testRealTerms produces a corrupt index
> -----------------------------------------------
>
>                 Key: LUCENE-3037
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3037
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Robert Muir
>             Fix For: 4.0
>
>         Attachments: LUCENE-3037.patch, LUCENE-3037_test.patch, index.7z.001, index.7z.002,
index.7z.003
>
>
> seems to be prox/skip related: the test passes, but the checkindex upon closing fails.
> ant test-core -Dtestcase=TestFSTs -Dtests.seed=-4012305283315171209:0 -Dtests.multiplier=3
-Dtests.nightly=true -Dtests.linedocsfile=c:/data/enwiki.random.lines.txt.gz
> Note: to get the enwiki.random.lines.txt.gz you have to fetch it from hudson (warning
1 gigabyte file).
> you also have to run the test a few times to trigger it.
> ill upload the index this thing makes to this issue.

--
This message is automatically generated by JIRA.
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


Mime
View raw message