org.xerial.snappy.SnappyError

[NOT_A_DIRECT_BUFFER] destination is not a direct buffer

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

Stack trace

  • org.xerial.snappy.SnappyError: [NOT_A_DIRECT_BUFFER] destination is not a direct buffer at org.xerial.snappy.Snappy.uncompress(Snappy.java:509)[snappy-java-1.1.1.7.jar:na] at org.apache.cassandra.io.compress.SnappyCompressor.uncompress(SnappyCompressor.java:102)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.io.util.CompressedSegmentedFile$Mmap.readChunk(CompressedSegmentedFile.java:323)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.cache.ChunkCache.load(ChunkCache.java:137)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.cache.ChunkCache.load(ChunkCache.java:19)[apache-cassandra-3.7.jar:3.7] at com.github.benmanes.caffeine.cache.BoundedLocalCache$BoundedLocalLoadingCache.lambda$new$0(BoundedLocalCache.java:2949)[caffeine-2.2.6.jar:na] at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$15(BoundedLocalCache.java:1807)[caffeine-2.2.6.jar:na] at java.util.concurrent.ConcurrentHashMap.compute(Unknown Source)[na:1.8.0_112] at com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:1805)[caffeine-2.2.6.jar:na] at com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:1788)[caffeine-2.2.6.jar:na] at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:97)[caffeine-2.2.6.jar:na] at com.github.benmanes.caffeine.cache.LocalLoadingCache.get(LocalLoadingCache.java:66)[caffeine-2.2.6.jar:na] at org.apache.cassandra.cache.ChunkCache$CachingRebufferer.rebuffer(ChunkCache.java:215)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.cache.ChunkCache$CachingRebufferer.rebuffer(ChunkCache.java:193)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.io.util.RandomAccessReader.reBufferAt(RandomAccessReader.java:78)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.io.util.RandomAccessReader.seek(RandomAccessReader.java:220)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.io.sstable.format.big.BigTableScanner.seekToCurrentRangeStart(BigTableScanner.java:186)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.io.sstable.format.big.BigTableScanner.access$200(BigTableScanner.java:51)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.io.sstable.format.big.BigTableScanner$KeyScanningIterator.computeNext(BigTableScanner.java:285)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.io.sstable.format.big.BigTableScanner$KeyScanningIterator.computeNext(BigTableScanner.java:265)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.io.sstable.format.big.BigTableScanner.hasNext(BigTableScanner.java:245)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.utils.MergeIterator$Candidate.advance(MergeIterator.java:374)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.utils.MergeIterator$ManyToOne.advance(MergeIterator.java:186)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.utils.MergeIterator$ManyToOne.computeNext(MergeIterator.java:155)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.db.partitions.UnfilteredPartitionIterators$4.hasNext(UnfilteredPartitionIterators.java:216)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.db.transform.BasePartitions.hasNext(BasePartitions.java:72)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.db.partitions.UnfilteredPartitionIterators$Serializer.serialize(UnfilteredPartitionIterators.java:289)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.db.ReadResponse$LocalDataResponse.build(ReadResponse.java:134)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.db.ReadResponse$LocalDataResponse.<init>(ReadResponse.java:127)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.db.ReadResponse$LocalDataResponse.<init>(ReadResponse.java:123)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.db.ReadResponse.createDataResponse(ReadResponse.java:65)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.db.ReadCommand.createResponse(ReadCommand.java:292)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.service.StorageProxy$LocalReadRunnable.runMayThrow(StorageProxy.java:1799)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:2466)[apache-cassandra-3.7.jar:3.7] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)[na:1.8.0_112] at org.apache.cassandra.concurrent.AbstractLocalAwareExecutorService$FutureTask.run(AbstractLocalAwareExecutorService.java:164)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.concurrent.AbstractLocalAwareExecutorService$LocalSessionFutureTask.run(AbstractLocalAwareExecutorService.java:136)[apache-cassandra-3.7.jar:3.7] at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105)[apache-cassandra-3.7.jar:3.7] at java.lang.Thread.run(Unknown Source)[na:1.8.0_112]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

We couldn't find other users who have seen this exception.