org.xerial.snappy.SnappyError: [NOT_A_DIRECT_BUFFER] destination is not a direct buffer

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

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

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.