DataStax Help Center

Node startup fails with "java.lang.AssertionError" while reading saved cache


A DataStax Enterprise node is unable to startup returning an AssertionError when reading the saved cache for a table.


Node startup fails reporting an error when reading the saved cache for a particular column family. Below is a sample exception stack trace from DSE 4.6.0:

 INFO [main] 2015-02-04 18:18:09,253 (line 249) Initializing itemsCF
 INFO [main] 2015-02-04 18:18:09,254 (line 114) reading saved cache /var/lib/cassandra/saved_caches/itemsCF-RowCache-b.db
 ERROR [main] 2015-02-04 18:18:09,256 (line 513) Exception encountered during startup
 at org.apache.cassandra.cache.SerializingCacheProvider$RowCacheSerializer.serialize(
 at org.apache.cassandra.cache.SerializingCacheProvider$RowCacheSerializer.serialize(
 at org.apache.cassandra.cache.SerializingCache.serialize(
 at org.apache.cassandra.cache.SerializingCache.put(
 at org.apache.cassandra.cache.InstrumentingCache.put(
 at org.apache.cassandra.cache.AutoSavingCache.loadSaved(
 at org.apache.cassandra.db.ColumnFamilyStore.initRowCache(
 at org.apache.cassandra.service.CassandraDaemon.setup(
 at com.datastax.bdp.server.DseDaemon.setup(
 at org.apache.cassandra.service.CassandraDaemon.activate(
 at com.datastax.bdp.server.DseDaemon.main(
 INFO [Thread-2] 2015-02-04 18:18:09,259 (line 505) DSE shutting down...


This is a known issue which has been fixed in Cassandra versions 2.0.15 and 2.1.5.

The node fails to startup due to a table cache(s) being corrupt.

The cache could get corrupted for various reasons including a node temporarily running out of disk space, a change to the cluster configuration or an unexpected server reboot.


Follow these steps to resolve this issue:

Step 1 - On the affected node, delete the contents of the saved_caches directory.

Step 2 - Start DSE on the node.

See also

See JIRA [CASSANDRA-8740] for details of the defect.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Powered by Zendesk