org.apache.cassandra.io.sstable.CorruptSSTableException: java.io.EOFException

Apache's JIRA Issue Tracker | Mike Konobeevskiy | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [CASSANDRA-6411] Issue with reading from sstable - ASF JIRA

    apache.org | 2 years ago
    org.apache.cassandra.io.sstable.CorruptSSTableException: java.io.EOFException
  2. 0

    With Cassandra 1.2.5 this happens almost every week. {noformat} java.lang.RuntimeException: org.apache.cassandra.io.sstable.CorruptSSTableException: java.io.EOFException: EOF after 5105 bytes out of 19815 at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1582) 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:724) Caused by: org.apache.cassandra.io.sstable.CorruptSSTableException: java.io.EOFException: EOF after 5105 bytes out of 19815 at org.apache.cassandra.db.columniterator.SimpleSliceReader.<init>(SimpleSliceReader.java:91) at org.apache.cassandra.db.columniterator.SSTableSliceIterator.createReader(SSTableSliceIterator.java:68) at org.apache.cassandra.db.columniterator.SSTableSliceIterator.<init>(SSTableSliceIterator.java:44) at org.apache.cassandra.db.filter.SliceQueryFilter.getSSTableColumnIterator(SliceQueryFilter.java:101) at org.apache.cassandra.db.filter.QueryFilter.getSSTableColumnIterator(QueryFilter.java:68) at org.apache.cassandra.db.CollationController.collectAllData(CollationController.java:274) at org.apache.cassandra.db.CollationController.getTopLevelColumns(CollationController.java:65) at org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(ColumnFamilyStore.java:1357) at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1214) at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1126) at org.apache.cassandra.db.Table.getRow(Table.java:347) at org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadCommand.java:70) at org.apache.cassandra.service.StorageProxy$LocalReadRunnable.runMayThrow(StorageProxy.java:1052) at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1578) ... 3 more Caused by: java.io.EOFException: EOF after 5105 bytes out of 19815 at org.apache.cassandra.io.util.FileUtils.skipBytesFully(FileUtils.java:350) at org.apache.cassandra.utils.ByteBufferUtil.skipShortLength(ByteBufferUtil.java:382) at org.apache.cassandra.db.columniterator.SimpleSliceReader.<init>(SimpleSliceReader.java:72) ... 16 more {noformat} This is occurring roughly weekly with quite minimal usage. Recreation of CF does not help.

    Apache's JIRA Issue Tracker | 3 years ago | Mike Konobeevskiy
    org.apache.cassandra.io.sstable.CorruptSSTableException: java.io.EOFException
  3. 0

    With Cassandra 1.2.5 this happens almost every week. {noformat} java.lang.RuntimeException: org.apache.cassandra.io.sstable.CorruptSSTableException: java.io.EOFException: EOF after 5105 bytes out of 19815 at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1582) 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:724) Caused by: org.apache.cassandra.io.sstable.CorruptSSTableException: java.io.EOFException: EOF after 5105 bytes out of 19815 at org.apache.cassandra.db.columniterator.SimpleSliceReader.<init>(SimpleSliceReader.java:91) at org.apache.cassandra.db.columniterator.SSTableSliceIterator.createReader(SSTableSliceIterator.java:68) at org.apache.cassandra.db.columniterator.SSTableSliceIterator.<init>(SSTableSliceIterator.java:44) at org.apache.cassandra.db.filter.SliceQueryFilter.getSSTableColumnIterator(SliceQueryFilter.java:101) at org.apache.cassandra.db.filter.QueryFilter.getSSTableColumnIterator(QueryFilter.java:68) at org.apache.cassandra.db.CollationController.collectAllData(CollationController.java:274) at org.apache.cassandra.db.CollationController.getTopLevelColumns(CollationController.java:65) at org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(ColumnFamilyStore.java:1357) at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1214) at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1126) at org.apache.cassandra.db.Table.getRow(Table.java:347) at org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadCommand.java:70) at org.apache.cassandra.service.StorageProxy$LocalReadRunnable.runMayThrow(StorageProxy.java:1052) at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1578) ... 3 more Caused by: java.io.EOFException: EOF after 5105 bytes out of 19815 at org.apache.cassandra.io.util.FileUtils.skipBytesFully(FileUtils.java:350) at org.apache.cassandra.utils.ByteBufferUtil.skipShortLength(ByteBufferUtil.java:382) at org.apache.cassandra.db.columniterator.SimpleSliceReader.<init>(SimpleSliceReader.java:72) ... 16 more {noformat} This is occurring roughly weekly with quite minimal usage. Recreation of CF does not help.

    Apache's JIRA Issue Tracker | 3 years ago | Mike Konobeevskiy
    org.apache.cassandra.io.sstable.CorruptSSTableException: java.io.EOFException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to start Cassandra due to corrupted sstable

    Stack Overflow | 12 months ago | Zavfel
    org.apache.cassandra.io.sstable.CorruptSSTableException: java.io.EOFException

  1. davidvanlaatum 1 times, last 9 months ago
  2. Bardh 4 times, last 12 months ago
4 unregistered visitors
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.io.EOFException

    null

    at java.io.DataInputStream.readUnsignedShort()
  2. Java RT
    DataInputStream.readUTF
    1. java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340)[na:1.8.0_45]
    2. java.io.DataInputStream.readUTF(DataInputStream.java:589)[na:1.8.0_45]
    3. java.io.DataInputStream.readUTF(DataInputStream.java:564)[na:1.8.0_45]
    3 frames
  3. org.apache.cassandra
    SSTableReader$4.run
    1. org.apache.cassandra.io.compress.CompressionMetadata.<init>(CompressionMetadata.java:106)[apache-cassandra-2.1-879691dd.jar:2.1-879691dd]
    2. org.apache.cassandra.io.compress.CompressionMetadata.create(CompressionMetadata.java:85)[apache-cassandra-2.1-879691dd.jar:2.1-879691dd]
    3. org.apache.cassandra.io.util.CompressedSegmentedFile$Builder.metadata(CompressedSegmentedFile.java:79)[apache-cassandra-2.1-879691dd.jar:2.1-879691dd]
    4. org.apache.cassandra.io.util.CompressedPoolingSegmentedFile$Builder.complete(CompressedPoolingSegmentedFile.java:72)[apache-cassandra-2.1-879691dd.jar:2.1-879691dd]
    5. org.apache.cassandra.io.util.SegmentedFile$Builder.complete(SegmentedFile.java:168)[apache-cassandra-2.1-879691dd.jar:2.1-879691dd]
    6. org.apache.cassandra.io.sstable.SSTableReader.load(SSTableReader.java:711)[apache-cassandra-2.1-879691dd.jar:2.1-879691dd]
    7. org.apache.cassandra.io.sstable.SSTableReader.load(SSTableReader.java:666)[apache-cassandra-2.1-879691dd.jar:2.1-879691dd]
    8. org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:479)[apache-cassandra-2.1-879691dd.jar:2.1-879691dd]
    9. org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:378)[apache-cassandra-2.1-879691dd.jar:2.1-879691dd]
    10. org.apache.cassandra.io.sstable.SSTableReader$4.run(SSTableReader.java:516)[apache-cassandra-2.1-879691dd.jar:2.1-879691dd]
    10 frames
  4. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0_45]
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_45]
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_45]
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_45]
    5. java.lang.Thread.run(Thread.java:745)[na:1.8.0_45]
    5 frames