Coder
Coder

Reputation: 3282

Single node Cassandra behaving like multinode Cassandra

I have a single node Cassandra cluster which hits to ReadTimeOutException and I observe the following logs in server which seems weird to me,

ERROR [SharedPool-Worker-91] 2018-05-29 12:09:53,023 ErrorMessage.java:338 - Unexpected exception during request
java.lang.RuntimeException: org.apache.cassandra.exceptions.ReadTimeoutException: Operation timed out - received only 1 responses.
       at org.apache.cassandra.auth.CassandraRoleManager.getRole(CassandraRoleManager.java:489) ~[apache-cassandra-3.0.8.jar:3.0.8]
       at org.apache.cassandra.auth.CassandraRoleManager.getRoles(CassandraRoleManager.java:269) ~[apache-cassandra-3.0.8.jar:3.0.8]
       at org.apache.cassandra.auth.RolesCache.getRoles(RolesCache.java:66) ~[apache-cassandra-3.0.8.jar:3.0.8]
       at org.apache.cassandra.auth.Roles.hasSuperuserStatus(Roles.java:51) ~[apache-cassandra-3.0.8.jar:3.0.8]
       at org.apache.cassandra.auth.AuthenticatedUser.isSuper(AuthenticatedUser.java:71) ~[apache-cassandra-3.0.8.jar:3.0.8]

It says Operation timed out - received only 1 responses., In Single node why Its saying expecting more than one response? Could some explain pls.

NOTE : I have enabled different strategy for this system_auth keyspace

CREATE KEYSPACE system_auth WITH replication = {'class': 'NetworkTopologyStrategy', 'datacenterproc': '1'}  AND durable_writes = true;

and set consistency level as LOCAL_QUORUM

Cassandra server version : 3.0.8

Will this be a reason?

Upvotes: 0

Views: 88

Answers (1)

Chris Lohfink
Chris Lohfink

Reputation: 16420

GCs longer than the timeout (like the 9 second GCs you posted in other questions) can cause internal auth timeouts. Most likely it received the response, had the GC, then registered as timeout.

Upvotes: 2

Related Questions