convert mmap assertion to if/throw
----------------------------------

                 Key: CASSANDRA-2417
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2417
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: 0.6
            Reporter: Jonathan Ellis
            Assignee: Jonathan Ellis
            Priority: Minor
             Fix For: 0.7.5


This will allow scrub to catch this:

{noformat}
java.lang.AssertionError: mmap segment underflow; remaining is 73936639 but 
1970430821 requested

                at 
org.apache.cassandra.io.util.MappedFileDataInput.readBytes(MappedFileDataInput.java:119)

                at 
org.apache.cassandra.utils.ByteBufferUtil.read(ByteBufferUtil.java:315)

                at 
org.apache.cassandra.utils.ByteBufferUtil.readWithLength(ByteBufferUtil.java:272)

                at 
org.apache.cassandra.db.ColumnSerializer.deserialize(ColumnSerializer.java:76)
{noformat}

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

Reply via email to