java.lang.AssertionError: Buffer was already freed and cannot be used anymorenull

GitHub | lkairies | 3 years ago
  1. 0

    R/W Replication: OSD crashes due to AssertionError "Buffer was already freed"

    GitHub | 3 years ago | lkairies
    java.lang.AssertionError: Buffer was already freed and cannot be used anymorenull
  2. 0

    I have just got this problem on multiple nodes. Cassandra 2.0.10 (DSE 4.5.2). After looking through the history I have found that it was actually happening on all nodes since the start of large compaction process (I've loaded tons of data in the system and then turned off all load to let it compact the data). {code} ERROR [CompactionExecutor:1196] 2014-10-28 17:14:50,124 CassandraDaemon.java (line 199) Exception in thread Thread[CompactionExecutor:1196,1,main] java.lang.AssertionError: Memory was freed at org.apache.cassandra.io.util.Memory.checkPosition(Memory.java:259) at org.apache.cassandra.io.util.Memory.getInt(Memory.java:211) at org.apache.cassandra.io.sstable.IndexSummary.getIndex(IndexSummary.java:79) at org.apache.cassandra.io.sstable.IndexSummary.getKey(IndexSummary.java:84) at org.apache.cassandra.io.sstable.IndexSummary.binarySearch(IndexSummary.java:58) at org.apache.cassandra.io.sstable.SSTableReader.getSampleIndexesForRanges(SSTableReader.java:692) at org.apache.cassandra.io.sstable.SSTableReader.estimatedKeysForRanges(SSTableReader.java:663) at org.apache.cassandra.db.compaction.AbstractCompactionStrategy.worthDroppingTombstones(AbstractCompactionStrategy.java:328) at org.apache.cassandra.db.compaction.LeveledCompactionStrategy.findDroppableSSTable(LeveledCompactionStrategy.java:354) at org.apache.cassandra.db.compaction.LeveledCompactionStrategy.getMaximalTask(LeveledCompactionStrategy.java:125) at org.apache.cassandra.db.compaction.LeveledCompactionStrategy.getNextBackgroundTask(LeveledCompactionStrategy.java:113) at org.apache.cassandra.db.compaction.CompactionManager$BackgroundCompactionTask.run(CompactionManager.java:192) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code}

    Apache's JIRA Issue Tracker | 2 years ago | Nikolai Grigoriev
    java.util.concurrent.ExecutionException: java.lang.AssertionError: Memory was freed
  3. 0

    Cassandra Exception in thread Thread[FlushWriter:1,5,main]

    Stack Overflow | 2 years ago | user1540371
    java.lang.AssertionError: Memory was freed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error while rebuilding a node: Stream failed

    Google Groups | 6 months ago | George Sigletos
    java.lang.AssertionError: Memory was freed
  6. 0

    Can't add a new Cassandra datacenter due to streaming errors

    Stack Overflow | 8 months ago | Vincent de Lagabbe
    java.lang.AssertionError: Memory was freed

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.AssertionError

      Buffer was already freed and cannot be used anymorenull

      at org.xtreemfs.foundation.buffer.ReusableBuffer.capacity()
    2. org.xtreemfs.foundation
      ReusableBuffer.capacity
      1. org.xtreemfs.foundation.buffer.ReusableBuffer.capacity(ReusableBuffer.java:185)
      1 frame
    3. org.xtreemfs.osd
      Stage.run
      1. org.xtreemfs.osd.operations.InternalRWRUpdateOperation.localWrite(InternalRWRUpdateOperation.java:58)
      2. org.xtreemfs.osd.operations.InternalRWRUpdateOperation$2.success(InternalRWRUpdateOperation.java:79)
      3. org.xtreemfs.osd.rwre.RWReplicationStage.processPrepareOp(RWReplicationStage.java:1053)
      4. org.xtreemfs.osd.rwre.RWReplicationStage.processMethod(RWReplicationStage.java:830)
      5. org.xtreemfs.osd.stages.Stage.run(Stage.java:140)
      5 frames