You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2015/04/07 13:32:13 UTC

[jira] [Commented] (LUCENE-6404) MemoryIndex payloads are sometimes out of bounds.

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

Robert Muir commented on LUCENE-6404:
-------------------------------------

It just needs to handle the 0-length payload case and return null there.

> MemoryIndex payloads are sometimes out of bounds.
> -------------------------------------------------
>
>                 Key: LUCENE-6404
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6404
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-6404_test.patch
>
>
> See patch for tests:
> ant test  -Dtestcase=TestMemoryIndexAgainstRAMDir -Dtests.method=testRandomQueries -Dtests.seed=CB6EBF17EFD0300E
> {noformat}
>    [junit4] ERROR   4.82s | TestMemoryIndexAgainstRAMDir.testRandomQueries <<<
>    [junit4]    > Throwable #1: java.lang.RuntimeException: term [74 65 6c 6d]: doc 0: pos 85 payload length is out of bounds 0
>    [junit4]    > 	at __randomizedtesting.SeedInfo.seed([CB6EBF17EFD0300E:95450FFBD70A1D90]:0)
>    [junit4]    > 	at org.apache.lucene.index.CheckIndex.checkFields(CheckIndex.java:1335)
>    [junit4]    > 	at org.apache.lucene.index.CheckIndex.testPostings(CheckIndex.java:1694)
>    [junit4]    > 	at org.apache.lucene.util.TestUtil.checkReader(TestUtil.java:315)
>    [junit4]    > 	at org.apache.lucene.util.TestUtil.checkReader(TestUtil.java:297)
>    [junit4]    > 	at org.apache.lucene.index.memory.TestMemoryIndexAgainstRAMDir.assertAgainstRAMDirectory(TestMemoryIndexAgainstRAMDir.java
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org