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

T Jake Luciani edited comment on CASSANDRA-2256 at 3/2/11 8:05 PM:
-------------------------------------------------------------------

throwing EOF is good.

Regarding the check of length on every seek for writable files, I think you 
could change it to see if the seek is < bufferOffset + buffer.length before 
calling length()



      was (Author: tjake):
    throwing EOF is good +1
  
> BRAF assertion error
> --------------------
>
>                 Key: CASSANDRA-2256
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2256
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.3
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>             Fix For: 0.7.4
>
>         Attachments: CASSANDRA-2256.patch
>
>
> While investigating CASSANDRA-2240 I ran into this:
> {noformat}
> java.lang.AssertionError
>         at 
> org.apache.cassandra.io.util.BufferedRandomAccessFile.read(BufferedRandomAccessFile.java\
> :230)
>         at java.io.RandomAccessFile.readByte(RandomAccessFile.java:589)
>         at 
> org.apache.cassandra.utils.ByteBufferUtil.readShortLength(ByteBufferUtil.java:273)
>         at 
> org.apache.cassandra.utils.ByteBufferUtil.readWithShortLength(ByteBufferUtil.java:284)
>         at 
> org.apache.cassandra.db.CompactionManager.doScrub(CompactionManager.java:539)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to