org.apache.cassandra.exceptions.UnavailableException: Cannot achieve consistency level LOCAL_ONE

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by ddorian
, 1 year ago
Cannot achieve consistency level LOCAL_ONE
org.apache.cassandra.exceptions.UnavailableException: Cannot achieve consistency level LOCAL_ONE
at org.apache.cassandra.db.ConsistencyLevel.assureSufficientLiveNodes(ConsistencyLevel.java:257)
at org.apache.cassandra.service.AbstractWriteResponseHandler.assureSufficientLiveNodes(AbstractWriteResponseHandler.java:146)
at org.apache.cassandra.service.StorageProxy.performWrite(StorageProxy.java:839)
at org.apache.cassandra.service.StorageProxy.mutate(StorageProxy.java:578)
at org.apache.cassandra.service.StorageProxy.mutateWithTriggers(StorageProxy.java:671)
at org.apache.cassandra.cql3.statements.ModificationStatement.executeWithoutCondition(ModificationStatement.java:524)
at org.apache.cassandra.cql3.statements.ModificationStatement.execute(ModificationStatement.java:510)
at org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:226)
at org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:257)
at org.elasticsearch.cassandra.cluster.InternalCassandraClusterService.process(InternalCassandraClusterService.java:375)
at org.elasticsearch.cassandra.cluster.InternalCassandraClusterService.process(InternalCassandraClusterService.java:359)
at org.elasticsearch.cassandra.cluster.InternalCassandraClusterService.insertRow(InternalCassandraClusterService.java:1689)
at org.elasticsearch.cassandra.cluster.InternalCassandraClusterService.insertDocument(InternalCassandraClusterService.java:1642)
at org.elasticsearch.action.index.TransportXIndexAction.shardOperationOnPrimary(TransportXIndexAction.java:92)
at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase.performOnPrimary(TransportReplicationAction.java:581)
at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase$1.doRun(TransportReplicationAction.java:452)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

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.

Write tip

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