Runbook

Deadlock caused by concurrent transactions in Cassandra.

Back to Runbooks

Overview

Deadlock is a type of incident that can occur when multiple transactions are executed concurrently in a distributed database management system such as Cassandra. In this scenario, two or more transactions might try to acquire the same exclusive lock on a resource, and neither transaction can proceed until the other releases its lock. This can result in a situation where all the transactions are blocked, and no progress can be made. In the context of Cassandra, this can lead to blocked queries and overall decreased performance of the system.

Parameters

Debug

Check the load on the system

Check the load on the CPU

Check the CPU usage per process

Check the memory usage per process

Check the number of connections to Cassandra

Check the number of running threads in Cassandra

Check the Cassandra system log for errors

Check the Cassandra slow query log for queries taking too long

Multiple queries trying to access the same Cassandra table simultaneously, leading to contention and deadlock.

Repair

Tune the Cassandra cluster settings to optimize performance and minimize the risk of deadlocks.

Learn more

Related Runbooks

Check out these related runbooks to help you debug and resolve similar issues.