Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Cassandra Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-cassandra-knowledge-patch)
---
name: cassandra-knowledge-patch
description: Apache Cassandra
version: "5.0.8"
license: MIT
metadata:
author: Nevaberry
---
# Apache Cassandra Knowledge Patch
Load this skill for Cassandra configuration, security, CQL, clients, indexing,
repair, topology, storage, recovery, installation, or build work.
The quick reference highlights command changes and operational behavior.
Use the topic references for complete guidance, examples, and change attribution.
## Topic references
| Reference | Topics |
| --- | --- |
| [Configuration, Security, and Observability](references/configuration-security-observability.md) | Authorization, passwords, settings, guardrails, JMX, metrics, and logging |
| [CQL, Schema, Clients, and Tools](references/cql-schema-clients-and-tools.md) | Types, mutations, protocol, shell, drivers, package repositories, distributions, and builds |
| [Indexing and Query Correctness](references/indexing-and-query-correctness.md) | Index precedence, SAI availability, checksums, filtering, reconciliation, and compaction |
| [Repair, Topology, and Coordination](references/repair-topology-coordination.md) | AutoRepair, hints, token metadata, failure detection, streaming, batchlog, and Paxos |
| [Storage, SSTables, and Recovery](references/storage-sstables-and-recovery.md) | Compaction, SSTable formats and writers, snapshots, commit log replay, and startup recovery |
## Command, dependency, and repository changes
### Import copy option
In Cassandra 4.0.21, the short form of `--copy-data` changed from `-p` to `-cd`.
Update import commands that use the old short form:
```sh
nodetool import -cd mykeyspace mytable /path/to/sstables
```
### Java driver coordinates
The Java driver dependency moves from
`com.datastax.cassandra:cassandra-driver-core:3.11.5` to
`org.apache.cassandra:cassandra-driver-core:3.12.1`.
The Java driver 4.19.3 is available as
`org.apache.cassandra:java-driver-core:4.19.3`.
### Package repository changes
Update existing APT entries to `https://debian.cassandra.apache.org`.
For Cassandra 5.0, fetch the signing keys and set the `50x` entry in
`/etc/apt/sources.list.d/cassandra.sources.list`.
The Debian package normally starts Cassandra automatically on installation.
Update `/etc/yum.repos.d/cassandra.repo` to use
`https://redhat.cassandra.apache.org`.
On CentOS 7 and other systems with RPM earlier than 4.14, use
`https://redhat.cassandra.apache.org/50x/noboolean/` as the 5.0 base URL.
Start Cassandra manually after RPM installation with `sudo service cassandra start`.
The clients-and-tools reference contains the repository definitions and key commands.
### Tool startup and environment
`nodetool` and other Cassandra tools source `cassandra-env.sh` only when needed.
Settings exported by that script apply to invocations that source it.
Cassandra tools skip the Direct I/O check during initialization.
## Security and configuration
### Identities, passwords, and authorization
Regular users cannot bind an identity to a superuser role.
Cassandra rate-limits password changes; automated rotations that submit changes
in quick succession can hit the limit.
`CassandraCIDRAuthorizer` accepts parameters in its authorizer configuration.
Roles can receive grants on `system_views` and `system_virtual_schema`.
### Validation and redaction
Cassandra sanitizes and validates `audit_logging_options` during startup.
It redacts security-sensitive information in `system_views.settings` and masks
passwords in CQL statement text that the password obfuscator previously missed.
Reflectively loaded extension classes are checked for assignability to the
expected type before initialization.
### Settings and disk guardrails
Complex settings in `system_views.settings` are serialized as JSON.
The table includes previously omitted configuration entries for backward compatibility.
In Cassandra 5.0.9, its queries succeed when a setting contains non-string keys.
Use `nodetool getguardrailsconfig` to read the node's guardrail configuration
and `nodetool setguardrailsconfig` to update it.
The disk usage guardrail can be disabled even after usage reaches its failure threshold.
## Diagnostics and JMX
### Node and index state
Run `nodetool checktokenmetadata` to check whether the node's token metadata
is in sync with its gossip endpoint state.
Run `nodetool tablestats` to see selected SAI state and query-performance metrics
alongside table statistics.
The direct-memory statistic in `nodetool gcstats` reports usage correctly.
### Management operations
The `StorageService` MBean is available through JMX while a node is bootstrapping.
Invoke its `dropPreparedStatements` operation to invalidate prepared statements
on the node.
`StorageProxyMBean` exposes `NativeTransportMaxConcurrentConnectionsPerIp`,
the node's native-protocol connection limit per client IP address.
## Automated repair and coordination
### AutoRepair scheduling
Cassandra 5.0.8 backports CEP-37, which lets Cassandra schedule repairs itself.
The AutoRepair scheduler stops when it detects two Cassandra major versions
in the cluster. Full repairs scheduled by AutoRepair respect disk protection.
The scheduler supports a configurable minimum repair task duration.
### Repair previews and reporting
The `preview_repaired` AutoRepair type checks repaired data for inconsistencies
without repairing it. AutoRepair reports expected and actual repair bytes and
keyspaces, so operators can compare what was scheduled with what ran.
In Cassandra 5.0.9, AutoRepair can run with `parallel_repair_count` greater than
`1` without triggering an assertion when checking whether a replica already
has a repair in progress.
### Hints and batchlog placement
A hint's TTL starts when the original request begins; time spent waiting for
the request to time out counts toward that TTL.
Cassandra can deliver hints while the sender's and recipient's schemas differ.
The batchlog endpoint selection strategy can be configured as `random_remote`,
`prefer_local`, `dynamic_remote`, or `dynamic`.
## Indexing and query correctness
### Index selection and lifecycle
When a column has both a legacy secondary index (2i) and an SAI index,
Cassandra gives the legacy index priority.
Already-built SAI indexes are queryable by the time a restarted node is marked `UP`.
Cassandra can be configured to make `IndexStatusManager` always use the
optimized index status format.
Cassandra automatically skips L0 sharding when an SAI vector index is present on the table.
### Query resolution
Replica filtering protection can fetch beyond the query's row limit when
resolving a static row.
SAI fixes a consistency issue in intersection queries combining repaired index
matches with matches on multiple non-indexed columns.
In Cassandra 5.0.9, replicas send range tombstones to the coordinator for SAI
queries on static columns, so it can account for range deletions when reconciling results.
## CQL, protocol, and runtime
### Schema and values
UDTs and vectors can be clustering columns with `DESC` ordering.
`min` and `max` return the correct extrema for descending clustering columns.
`DESCRIBE TABLE` includes definitions of materialized views based on the table.
`BytesType` (CQL `blob`) is considered compatible only with scalar types.
Cassandra rejects table names that are too long to fit in the corresponding filenames.
### Native protocol
The CQL message size limit applies to the complete message across multiple frames.
The decoder rejects a value whose declared length exceeds the bytes available to read.
When the coordinator sheds load, it returns `OverloadedException` with the
original request's stream ID so native protocol clients can identify the rejected request.
### Shell, stress, and Java
`cqlsh` can run with command history disabled; Cassandra 5.0.9 supports running
it with Python 3.12 or 3.13.
For TLS connections, `cassandra-stress` negotiates the protocol version by default
and can use TLS 1.3 when the server supports it.
Cassandra 5.0.5 fully supports running on Java 17.
## SSTables, recovery, and builds
### SSTable writing and compaction
`CQLSSTableWriter` can notify its caller when it produces an SSTable.
When generating SSTables with it, you can explicitly select BTI or Big as the
output format and write vectors of CQL `date` or `time` values.
Compaction marks an SSTable as suspect when it encounters a corrupt read from it.
In Cassandra 5.0.9, compaction free-space checks use the estimated compressed table size.
### Snapshots and replay
SSTable file path validation applies less restrictive checks to the snapshot
name in the path.
Cassandra 4.0.21 validates names at snapshot creation, including `nodetool snapshot -t`
tags; an invalid tag causes creation to fail.
`SnapshotLoader` can load schemas for tables created before Cassandra 2.1 whose
snapshot directory paths omit the table ID.
Commit log replay can continue with following blocks after skipping a sync block
because of a CRC error.
### Source and documentation builds
Run `ant artifacts` from the unpacked source distribution.
It ships `doc/scripts/process-native-protocol-specs-in-docker.sh` with execute permission.
In Cassandra 5.0.9, the `gen-doc` documentation generator uses Python;
Go is no longer a build dependency for documentation generation.