lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-3870) VarDerefBytesImpl doc values prefix length may fall across two pages
Date Fri, 16 Mar 2012 10:33:41 GMT

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

Michael McCandless commented on LUCENE-3870:
--------------------------------------------

+1, looks good Simon!

Just remember to remove that sop...
                
> VarDerefBytesImpl doc values prefix length may fall across two pages
> --------------------------------------------------------------------
>
>                 Key: LUCENE-3870
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3870
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Michael McCandless
>            Assignee: Simon Willnauer
>             Fix For: 4.0
>
>         Attachments: LUCENE-3870.patch, LUCENE-3870.patch
>
>
> The VarDerefBytesImpl doc values encodes the unique byte[] with prefix (1 or 2 bytes)
first, followed by bytes, so that it can use PagedBytes.fillSliceWithPrefix.
> It does this itself rather than using PagedBytes.copyUsingLengthPrefix...
> The problem is, it can write an invalid 2 byte prefix spanning two blocks (ie, last byte
of block N and first byte of block N+1), which fillSliceWithPrefix won't decode correctly.

--
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


Mime
View raw message