[ https://issues.apache.org/jira/browse/CASSANDRA-3615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rick Branson updated CASSANDRA-3615: ------------------------------------ Attachment: 3615.txt I didn't have any luck with Piotr's patch specifically fixing the issue, but it's fairly close to finding the actual issue. Since the end-of-commit-log write is only necessary if it can actually write another mutation out to the log, it's unnecessary for cases that would trigger this BufferOverflowException. Attached patch fixes the exception and includes a test case to reproduce & prevent regression. > CommitLog BufferOverflowException > --------------------------------- > > Key: CASSANDRA-3615 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3615 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 1.1 > Reporter: Rick Branson > Assignee: Rick Branson > Fix For: 1.1 > > Attachments: 3615.txt, cl-buffer-overflow.patch > > > Reported on mailing list > http://mail-archives.apache.org/mod_mbox/cassandra-dev/201112.mbox/%3CCAJHHpg2Rw_BWFJ9DycRGSYkmwMwrJDK3%3Dzw3HwRoutWHbUcULw%40mail.gmail.com%3E > ERROR 14:07:31,215 Fatal exception in thread > Thread[COMMIT-LOG-WRITER,5,main] > java.nio.BufferOverflowException > at java.nio.Buffer.nextPutIndex(Buffer.java:501) > at java.nio.DirectByteBuffer.putInt(DirectByteBuffer.java:654) > at > org.apache.cassandra.db.commitlog.CommitLogSegment.write(CommitLogSegment.java:259) > at > org.apache.cassandra.db.commitlog.CommitLog$LogRecordAdder.run(CommitLog.java:568) > at > org.apache.cassandra.db.commitlog.PeriodicCommitLogExecutorService$1.runMayThrow(PeriodicCommitLogExecutorService.java:49) > at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30) > at java.lang.Thread.run(Thread.java:662) > INFO 14:07:31,504 flushing high-traffic column family CFS(Keyspace='***', > ColumnFamily='***') (estimated 103394287 bytes) > It happened during a fairly standard load process using M/R. -- 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