cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Goffinet (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-2581) Rebuffer called excessively during seeks
Date Fri, 29 Apr 2011 04:36:03 GMT
Rebuffer called excessively during seeks

                 Key: CASSANDRA-2581
             Project: Cassandra
          Issue Type: Bug
            Reporter: Chris Goffinet
            Assignee: Chris Goffinet
            Priority: Minor

When doing an strace tonight, I noticed during memtable flushes that we were only writing
1KB per every write() system call...After diving more into it, it's because of a bug in the
seek() code. 

if (newPosition >= bufferOffset + validBufferBytes || newPosition < bufferOffset)


if (newPosition > (bufferOffset + validBufferBytes) || newPosition < bufferOffset)

Two things I noticed, we shouldn't need to rebuffer if newPosition is equal to bufferOffset
+ validBufferBytes, second the evaluation was doing (newPosition >= bufferOffset) + validBufferBytes
which always seemed to be true.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message