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

Ben Frank commented on CASSANDRA-4593:
--------------------------------------

Fair enough, I was just doing a byteBuffer.getLong() which I know resets the 
position but I didn't really consider it destructive. I can't believe I'll be 
the only person caught out by this, is there some documentation I've missed, or 
a relevant wiki page I should update with this information?
                
> Reading the ByteBuffer key from a map job causes an infinite fetch loop
> -----------------------------------------------------------------------
>
>                 Key: CASSANDRA-4593
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4593
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Hadoop
>    Affects Versions: 1.1.2
>            Reporter: Ben Frank
>         Attachments: cassandra-1.1-4593.txt
>
>
> Reading the ByteBuffer key from a map job empties the buffer. One of these 
> key buffers is later used in ColumnFamilyRecordReader to figure out the last 
> token that was received, then using that as a start point to fetch more rows. 
> With a now empty buffer, the token defaults to the start of the range and 
> thus the end of the data is never reached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to