cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Lebresne <sylv...@datastax.com>
Subject Re: estimateRowsFromIndex exception in 0.7.5
Date Thu, 05 May 2011 18:56:23 GMT
On Thu, May 5, 2011 at 8:38 PM, Wenjun Che <wenjun@openf.in> wrote:
> Hello,
>
> I have a one node cluster (refresh install from 0.7.4 and upgraded to 0.7.5
> last week).  The data is being backed up by  a cron job that periodically
> tar/gzip entire
> var/lib directory.  when I tested the backup by restoring the last tar file,
> I am seeing the following exception:
>
> DEBUG 13:45:37,830 Load statistics for
> \var\lib\cassandra\data\Appoji\ApplicationUserPermission-f-6
> ERROR 13:45:37,832 Exception encountered during startup.
> java.lang.AssertionError
>         at
> org.apache.cassandra.io.sstable.SSTable.estimateRowsFromIndex(SSTable.java:233)
>         at
> org.apache.cassandra.io.sstable.SSTableReader.load(SSTableReader.java:286)
>         at
> org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:191)
>         at
> org.apache.cassandra.db.ColumnFamilyStore.<init>(ColumnFamilyStore.java:232)
>         at
> org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:
> 480)
>         at
> org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:
> 461)
>         at org.apache.cassandra.db.Table.initCf(Table.java:308)
>         at org.apache.cassandra.db.Table.<init>(Table.java:245)
>         at org.apache.cassandra.db.Table.open(Table.java:106)
>         at
> org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:1
> 61)
>         at
> org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.jav
> a:315)
>         at
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:79)
> Exception encountered during startup.
>
> I checked few other earlier backup tar files and they seem to be fine.  Can
> this be caused by the way I am backing  it up?

I think that could be triggered if you have a 0 bytes index file for
instance, so if you had one such
index file in the backup, that could be a problem.

--
Sylvain

Mime
View raw message