You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by Eranda Sooriyabandara <07...@gmail.com> on 2011/05/19 20:51:42 UTC

Exception when starting

Hi devs,
I tried to start the Apache Cassandra and got an exception. This is what log
says,

INFO 00:18:12,226 Logging initialized
 INFO 00:18:12,278 Heap size: 1029701632/1029701632
 INFO 00:18:12,281 JNA not found. Native methods will be disabled.
 INFO 00:18:12,294 Loading settings from
file:/home/eranda/Desktop/cassendra/apache-cassandra-0.7.6/conf/cassandra.yaml
 INFO 00:18:12,452 DiskAccessMode 'auto' determined to be standard,
indexAccessMode is standard
 INFO 00:18:12,621 reading saved cache
/var/lib/cassandra/saved_caches/system-IndexInfo-KeyCache
ERROR 00:18:12,622 Exception encountered during startup.
java.lang.NegativeArraySizeException
at
org.apache.cassandra.db.ColumnFamilyStore.readSavedCache(ColumnFamilyStore.java:287)
at
org.apache.cassandra.db.ColumnFamilyStore.<init>(ColumnFamilyStore.java:226)
at
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:481)
at
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:462)
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.db.SystemTable.checkHealth(SystemTable.java:205)
at
org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:129)
at
org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:317)
at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:79)
Exception encountered during startup.
java.lang.NegativeArraySizeException
at
org.apache.cassandra.db.ColumnFamilyStore.readSavedCache(ColumnFamilyStore.java:287)
at
org.apache.cassandra.db.ColumnFamilyStore.<init>(ColumnFamilyStore.java:226)
at
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:481)
at
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:462)
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.db.SystemTable.checkHealth(SystemTable.java:205)
at
org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:129)
at
org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:317)
at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:79)

What can be the reason for this exception? I am using
apache-cassandra-0.7.6.

thanks
Eranda

Re: Exception when starting

Posted by Eranda Sooriyabandara <07...@gmail.com>.
In my case I started cassandra after sometime with the newer version of it.
I think this occurred because there were some files remained belongs to the
previous version of cassandra and overwritten with the new one.
This is just my thought.
Thanks
Eranda

Re: Exception when starting

Posted by mcasandra <mo...@gmail.com>.
In this case, yes. I was asking for the cases where commit log corruption was
reported.

--
View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Re-Exception-when-starting-tp6383464p6387101.html
Sent from the cassandra-user@incubator.apache.org mailing list archive at Nabble.com.

Re: Exception when starting

Posted by Krish Pan <ce...@gmail.com>.
No data gets lost - * only * thing corrupted is key-cache

On Fri, May 20, 2011 at 10:17 AM, mcasandra <mo...@gmail.com> wrote:

>
> Brandon Williams wrote:
> >
> > There was a bug, it is fixed.  It's just a cache, chill.
> >
>
> There is no time to chill when fighting it in production :) It's good to
> know it's fixed.
>
> Another question, when this happens are we able to restore data from
> replica
> nodes?
>
> --
> View this message in context:
> http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Re-Exception-when-starting-tp6383464p6386925.html
> Sent from the cassandra-user@incubator.apache.org mailing list archive at
> Nabble.com.
>

Re: Exception when starting

Posted by mcasandra <mo...@gmail.com>.
Brandon Williams wrote:
> 
> There was a bug, it is fixed.  It's just a cache, chill.
> 

There is no time to chill when fighting it in production :) It's good to
know it's fixed.

Another question, when this happens are we able to restore data from replica
nodes?

--
View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Re-Exception-when-starting-tp6383464p6386925.html
Sent from the cassandra-user@incubator.apache.org mailing list archive at Nabble.com.

Re: Exception when starting

Posted by Brandon Williams <dr...@gmail.com>.
There was a bug, it is fixed.  It's just a cache, chill.
On May 20, 2011 11:50 AM, "mcasandra" <mo...@gmail.com> wrote:
> Whenever I hear someone say data is corrupted I panic :) I have seen few
> people have reported that but have not seen the real reason for it. Is it
a
> manual error, config error, bug etc. It will be good to identify why these
> things happen so that it can be fixed before it happens in PROD :(
>
> --
> View this message in context:
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Re-Exception-when-starting-tp6383464p6386809.html
> Sent from the cassandra-user@incubator.apache.org mailing list archive at
Nabble.com.

Re: Exception when starting

Posted by mcasandra <mo...@gmail.com>.
Whenever I hear someone say data is corrupted I panic :) I have seen few
people have reported that but have not seen the real reason for it. Is it a
manual error, config error, bug etc. It will be good to identify why these
things happen so that it can  be fixed before it happens in PROD :(

--
View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Re-Exception-when-starting-tp6383464p6386809.html
Sent from the cassandra-user@incubator.apache.org mailing list archive at Nabble.com.

Re: Exception when starting

Posted by Eranda Sooriyabandara <07...@gmail.com>.
Thanks Brandon,
All data in /var/lib/cassandra was corrupted and after removing them it
started normally.

Re: Exception when starting

Posted by Brandon Williams <dr...@gmail.com>.
On Thu, May 19, 2011 at 1:51 PM, Eranda Sooriyabandara
<07...@gmail.com> wrote:
> Hi devs,
> I tried to start the Apache Cassandra and got an exception. This is what log
> says,
>
> INFO 00:18:12,226 Logging initialized
>  INFO 00:18:12,278 Heap size: 1029701632/1029701632
>  INFO 00:18:12,281 JNA not found. Native methods will be disabled.
>  INFO 00:18:12,294 Loading settings from
> file:/home/eranda/Desktop/cassendra/apache-cassandra-0.7.6/conf/cassandra.yaml
>  INFO 00:18:12,452 DiskAccessMode 'auto' determined to be standard,
> indexAccessMode is standard
>  INFO 00:18:12,621 reading saved cache
> /var/lib/cassandra/saved_caches/system-IndexInfo-KeyCache
> ERROR 00:18:12,622 Exception encountered during startup.
> java.lang.NegativeArraySizeException

Moving to user@.  Your keycache is corrupt, just rm
/var/lib/cassandra/saved_caches/* and try again.

-Brandon

Re: Database Metadata

Posted by Jonathan Ellis <jb...@gmail.com>.
https://issues.apache.org/jira/browse/CASSANDRA-2477

On Fri, May 20, 2011 at 7:14 AM, Vivek Mishra <vi...@yahoo.com> wrote:
> Any thoughts on creating something like seperate DatabaseMetadata api for CQL?
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Database Metadata

Posted by Vivek Mishra <vi...@yahoo.com>.
Any thoughts on creating something like seperate DatabaseMetadata api for CQL?