Commit Graph

336 Commits

Author SHA1 Message Date
Stefan Miklosovic e805b8aa32
Merge branch 'cassandra-6.0' into trunk 2026-07-22 14:58:50 +02:00
Stefan Miklosovic 4066139d3f
ninja: fix wrong default for compression_dictionary_cache_expire in documentation 2026-07-22 14:57:00 +02:00
Stefan Miklosovic 57cfd6b123
Merge branch 'cassandra-6.0' into trunk 2026-07-22 10:50:00 +02:00
Stefan Miklosovic fb46c8126f
Merge branch 'cassandra-5.0' into cassandra-6.0 2026-07-22 10:49:05 +02:00
Stefan Miklosovic 1920fffad3
Merge branch 'cassandra-4.1' into cassandra-5.0 2026-07-22 10:48:05 +02:00
Stefan Miklosovic 2293c58805
Merge branch 'cassandra-4.0' into cassandra-4.1 2026-07-22 10:46:34 +02:00
Arvind Kandpal 28ec2730bd
Remove unused cassandra.boot_without_jna from cassandra-env.sh documentation
patch by Arvind Kandpal; reviewed by Stefan Miklosovic for CASSANDRA-20611
2026-07-22 10:45:06 +02:00
Kokoori, Shylaja c68dd59d4a
Implementation of CEP-49: Hardware-accelerated compression
The implementation of this CEP adds the ability to plug-in custom compressors providers
which might delegate the de/compression to a specialized hardware. An operator does not
need to change any schema definition, the mere implementation of a compressor provider
put on a class path and its related configuration in cassandra.yaml will transparently
start to use appropriate compressor, e.g. backed by a specialized hardware.

patch by Shylaja Kokoori; reviewed by Joey Lynch, Stefan Miklosovic for CASSANDRA-20975

Co-authored-by: Stefan Miklosovic <smiklosovic@apache.org>
2026-06-23 11:37:53 +02:00
Patrick McFadin fc8883fc70 CASSANDRA-21342: Fix broken Antora xref/anchor targets in cassandra docs
Resolve broken cross-module xrefs and image/anchor targets across the
cassandra docs tree. Companion to apache/cassandra-website#319 (merged
2026-05-13) under the same JIRA umbrella.

Forward-merge of trunk commit 32826fe563 to cassandra-6.0, which was
omitted from the 2026-05-14 forward-merge of this fix to the release
branches. Two hunks in create-custom-index.adoc were already present
via the CASSANDRA-21342 long-tail forward-merge; one additional
unqualified collection-create xref in the same file (not present on
trunk at the time of the original patch) is fixed here. All retargeted
anchors verified present on cassandra-6.0, including
list-superusers-statement (absent on 5.0, present here).

 patch by Patrick McFadin; reviewed by Brandon Williams for CASSANDRA-21342
2026-06-10 11:54:15 -07:00
Patrick McFadin b584529291 Merge branch 'cassandra-5.0' into cassandra-6.0
CASSANDRA-21342: Long-tail xref follow-up (cassandra-6.0)

Forward-merge of the trunk long-tail xref fix (commit cc97ee5332) to
cassandra-6.0. Twenty-six files updated; mechanical xref retargets and
three added [[anchor]] targets following the existing convention.

One conflict resolved: create-custom-index.adoc - took the trunk side
for both conflict blocks; the "For related information" line and the
collection-create/list/set bullet list now use
xref:cassandra:developing/cql/collections/...

Note: a separate broken xref at create-custom-index.adoc:58 remains on
cassandra-6.0 (out of scope here). It was fixed on trunk and
cassandra-5.0 by PR #4807 but appears to have been missed in the
forward-merge to cassandra-6.0. To be handled as a separate audit
follow-up.

 patch by Patrick McFadin; reviewed by Mick Semb Wever for CASSANDRA-21342
2026-06-10 11:00:19 -07:00
Patrick McFadin 42f306b152 Merge branch 'cassandra-4.1' into cassandra-5.0
CASSANDRA-21342: Long-tail xref follow-up (cassandra-5.0)

Forward-merge of the trunk long-tail xref fix (commit cc97ee5332) to
cassandra-5.0. Twenty-six files updated; mechanical xref retargets and
three added [[anchor]] targets following the existing convention.

One conflict resolved: architecture/index.adoc - kept 5.0's no-Accord
state with the snitch xref qualified to cassandra:managing/operating/.

 patch by Patrick McFadin; reviewed by Mick Semb Wever for CASSANDRA-21342
2026-06-10 10:59:45 -07:00
Patrick McFadin 1a463d753f Merge branch 'cassandra-4.0' into cassandra-4.1
CASSANDRA-21342: Long-tail xref follow-up (cassandra-4.1 subset)

Forward-merge of the cassandra-4.0 long-tail subset onto cassandra-4.1.
Same three files, same six edits as the 4.0 commit.

 patch by Patrick McFadin; reviewed by Mick Semb Wever for CASSANDRA-21342
2026-06-10 10:59:20 -07:00
Patrick McFadin 19ee803038 CASSANDRA-21342: Long-tail xref follow-up (cassandra-4.0 subset)
Subset of the trunk long-tail xref follow-up (commit cc97ee5332)
applicable to cassandra-4.0. Three files have broken patterns that
still apply on this branch after PR #4807's forward-merge: the
architecture index, finding_nodes, and use_tools self-page xrefs.

Six edits total. Mechanical retargets only; no prose was rewritten.

Edits omitted (trunk-only):
* Twenty files introduced in 5.0 or later (developing/cql/, reference/
  cql-commands/, managing/operating/, etc).
* use_tools.adoc edits 4 and 5 (different line state on 4.x;
  packet-capture anchor section structure differs).

 patch by Patrick McFadin; reviewed by Mick Semb Wever for CASSANDRA-21342
2026-06-10 10:59:01 -07:00
David Capwell 998f42984f Add user docs for Accord focused on how to use, what CQL is and isnt valid, and use cases
patch by David Capwell; reviewed by Caleb Rackliffe for CASSANDRA-21127
2026-06-08 16:20:53 -07:00
Arvind Kandpal 36b23cba1f
Document COPY TO limitation for control characters in text columns
COPY TO does not support control characters in text column values per
RFC 4180. This patch documents the limitation in the cqlsh reference,
including the security risks and alternative tools for data migration.

patch by Arvind Kandpal; reviewed by Brad Schoening, Stefan Miklosovic for CASSANDRA-21415

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-03 00:03:41 +02:00
Francisco Guerrero df6b4fb46c Establish the Security Model for Cassandra
patch by Francisco Guerrero; reviewed by Stefan Miklosovic for CASSANDRA-21392
2026-06-02 10:26:58 -07:00
Patrick McFadin cc97ee5332 CASSANDRA-21342: Long-tail xref follow-up on trunk
Follow-up to the umbrella patch for CASSANDRA-21342 (merged 2026-05-14).
Closes the long-tail of trunk xref errors that remained after the first
wave landed.

Mechanical retargets only; no prose was rewritten and no pages were
added or removed. Anchors that did not exist are added with the
project's existing [[anchor]] convention.

Edit classes:
* Module-prefix xrefs: bare/partial paths -> cassandra:-qualified
* Moved-page xrefs: retarget to current home on trunk
* Filename typo: defintions.adoc -> definitions.adoc
* Extension: .html -> .adoc; writetime retargeted to functions.adoc
* nodetool xrefs: qualify to cassandra:managing/tools/nodetool/
* Anchors: add three missing [[anchor]] targets and retarget the
  xrefs that point at them

For every still-existing anchor target the destination page and
[[anchor]] (or generated section id) were grep-verified on
upstream/trunk before the edit. Triage was driven by the 2026-04-21
Antora 3 baseline (Jenkins #2752); patterns where no source file on
trunk still references the old target were treated as already-closed
and not touched.

Build verification: cassandra-website built locally with Antora 3
against this branch as the cassandra source drops trunk-level errors
from 161 (baseline) to 3. The three remaining errors are all in
cassandra-website source (blog posts + main-nav.adoc) and out of
scope for this patch.

Drafting and triage were performed with AI assistance (Anthropic
Claude); the change set is reviewable as mechanical xref retargets
and anchor additions. Source provenance per ASF generative tooling
guidance.

 patch by Patrick McFadin; reviewed by Mick Semb Wever for CASSANDRA-21342
2026-06-01 16:33:31 -07:00
Patrick McFadin 7ac5d93c8b CASSANDRA-21342: Retarget commands-toc.adoc xrefs to consolidated CQL anchors
Follow-up to the trunk PR #4807 forward-merge for cassandra-5.0. The
trunk R1 commit (8e0700a7cb on the chain leading to 32826fe563)
rewrote reference/cql-commands/commands-toc.adoc to retarget 38
broken xref:reference/cql-commands/<page>.adoc[...] entries to the
corresponding anchors in developing/cql/{ddl,dml,functions,mvs,
security,types}.adoc, kept 6 entries that still resolve under
cassandra:reference/cql-commands/, and dropped 4 DSE-only entries
(RESTRICT, RESTRICT ROWS, UNRESTRICT, UNRESTRICT ROWS).

The same transformation is applied here to cassandra-5.0. The trunk
commit was not cherry-pickable because 5.0's commands-toc.adoc had
diverged from trunk's pre-R1 version by ~9 lines (the DSE-only
entries plus an unrelated formatting drift); a direct edit replacing
the file with trunk's post-R1 content was the cleanest application.

One trunk-only entry is omitted: LIST SUPERUSERS (target
developing/cql/security.adoc#list-superusers-statement). That anchor
does not exist on cassandra-5.0; the LIST SUPERUSERS command was
added after 5.0.

All 29 retarget anchors plus the 6 cassandra:reference/cql-commands/
target pages verified to exist on upstream/cassandra-5.0.

 patch by Patrick McFadin; reviewed by TBD for CASSANDRA-21342
2026-05-14 14:13:06 -07:00
Patrick McFadin a1fc6c8761 CASSANDRA-21342: Fix broken Antora xref/anchor targets in cassandra docs
Forward-merge of the Phase 3 A2 fix from trunk (part of commit
32826fe563) to cassandra-4.0. Retargets the ROOT-nav and ROOT-index
Contact us xrefs from the removed master@_:ROOT:contactus.adoc page
to the existing master@_:ROOT:community.adoc.

The fix is applied as a direct edit rather than a cherry-pick: 4.0's
ROOT/nav.adoc has a different surrounding structure from trunk's (no
ifndef::local-build wrapper, no development sub-nav), so a clean
cherry-pick of the trunk patch is not possible. The net effect on
the targeted xrefs is identical.

 patch by Patrick McFadin; reviewed by TBD for CASSANDRA-21342
2026-05-14 12:36:21 -07:00
Patrick McFadin 1605049780 CASSANDRA-21342: Fix broken Antora xref/anchor targets in cassandra docs
Forward-merge of the Phase 3 A2 fix from trunk (part of commit
32826fe563) to cassandra-4.1. Retargets the ROOT-nav and ROOT-index
Contact us xrefs from the removed master@_:ROOT:contactus.adoc page
to the existing master@_:ROOT:community.adoc.

The fix is applied as a direct edit rather than a cherry-pick: 4.1's
ROOT/nav.adoc has a different surrounding structure from trunk's (no
ifndef::local-build wrapper, no development sub-nav), so a clean
cherry-pick of the trunk patch is not possible. The net effect on
the targeted xrefs is identical.

 patch by Patrick McFadin; reviewed by TBD for CASSANDRA-21342
2026-05-14 12:35:48 -07:00
Patrick McFadin 9733058d1b CASSANDRA-21342: Fix broken Antora xref/anchor targets in cassandra docs
Forward-merge of the trunk fix (commit 32826fe563) to cassandra-5.0.
Restricted to the changes whose broken-target patterns exist on this
branch.

Two trunk commits intentionally omitted:
 - P1 (memtable.adoc retarget): the memtable sections containing the
   broken xref were added on trunk only and do not exist on 5.0.
 - R1 (commands-toc.adoc rewrite): commands-toc.adoc on 5.0 diverges
   from trunk by ~9 lines; the 38-row retarget mapping will be applied
   as a separate follow-up commit on this branch.

 patch by Patrick McFadin; reviewed by TBD for CASSANDRA-21342
2026-05-14 12:13:11 -07:00
Patrick McFadin 32826fe563 CASSANDRA-21342: Fix broken Antora xref/anchor targets in cassandra docs
Resolve broken cross-module xrefs and image/anchor targets across the
cassandra docs tree. Companion to apache/cassandra-website#319 (merged
2026-05-13) under the same JIRA umbrella.

 patch by Patrick McFadin; reviewed by Brandon Williams for CASSANDRA-21342
2026-05-14 10:29:29 -07:00
Alan Wang 8fd2443afc Fix single token batch atomicity with Accord/non-Accord batches by using the batch log
patch by Alan Wang; reviewed by Ariel Weisberg, David Capwell for CASSANDRA-20588
2026-04-29 11:37:10 -07:00
Karol Baryła 8ec80e7a21 drivers.adoc: Replace Rust CQL with Scylla Rust Driver
Rust CQL did not have any commits in 9 years. It doesn't even support
protocol V4, and most of the features that a user could expect from the
driver - like load balancing or pagination. No reasonable app would use
it in production.

This commit replaces it with Scylla Rust Driver on the page with
recommended drivers. Scylla Rust Driver is actively developed and
feature-rich. Even though it is primarily developed for Scylla, we do
always make sure it is also compatible with Cassandra and tested with
it.
2026-04-10 17:49:31 -07:00
Nikita Eshkeev 515cb0e1c2 Fix paths to images
Signed-off-by: Nikita Eshkeev <kastolom@gmail.com>
2026-04-10 17:48:41 -07:00
Patrick McFadin bac42412e3 Clarify keyspace-level index name uniqueness in warning admonition
The original second sentence implied per-table scope, which contradicted
the first sentence. Replaced with explicit keyspace-scope wording and
removed the redundant vector/non-vector qualifier.
2026-04-10 17:46:27 -07:00
Lorina Poland 4410419d14 add index naming note to clarify
Author: Lorina Poland (polandll); Reviewed by Mick Semb Wever (mck) - no ticket
2026-04-10 17:46:27 -07:00
Patrick McFadin 7e74f4bdb8 Clarify keyspace-level index name uniqueness in warning admonition
The original second sentence implied per-table scope, which contradicted
the first sentence. Replaced with explicit keyspace-scope wording and
removed the redundant vector/non-vector qualifier.
2026-04-10 17:45:56 -07:00
Lorina Poland 3728253fff add index naming note to clarify
Author: Lorina Poland (polandll); Reviewed by Mick Semb Wever (mck) - no ticket
2026-04-10 17:45:56 -07:00
Lorina Poland 05186d7869 Add trie memtable docs-storage engine, create and alter table; revised per blambov's comments.
Authored by Lorina Poland (polandll); Reviewed by Branimir Lambov (blambov) for CASSANDRA-18236
2026-04-10 16:52:06 -07:00
Nicholas fa1afe8891 Update data-modeling_logical.adoc
Fix images in data-modeling_logical.adoc
2026-04-10 16:49:24 -07:00
Ayantika19 f79e8b3a0d CASSANDRA-18868 Added documentation of granting permissions for all tables in a keyspace 2026-04-10 15:23:01 -07:00
Amritpal Singh 4c0a2e59ad Update data-modeling_schema.adoc
Remember that for set and list collections, you need to specify the element type inside the angle brackets (<>). For map, you need to specify both the key type and value type separated by a comma.
2026-04-10 15:21:43 -07:00
Amritpal Singh 1f9ac53b75 Update data-modeling_schema.adoc
The SQL statement you provided for creating a table in Cassandra has a small syntax issue with the comment. In Cassandra, comments should be enclosed in single quotes (') and preceded by the keyword WITH. Additionally, the comment text should be properly formatted
2026-04-10 15:20:21 -07:00
misterderpie 2c99e53f2b Fix formatting on Storage Engine Documentation
Documentation/Storage Engine - Markdown Render Misformat Fix

patch by Matthias Doepmann
2026-04-10 15:19:30 -07:00
arvindksi274-ksolves 0742f15f10 CASSANDRA-21291: Fix duplicate section and minor formatting typos in compaction overview 2026-04-10 15:07:38 -07:00
arvindksi274-ksolves a4045c3fdd CASSANDRA-21291: Fix duplicate section and minor formatting typos in compaction overview 2026-04-10 15:07:17 -07:00
0xbad0c0d3 aec3d90ce4 Fix typo in SAI index documentation 2026-04-10 15:06:22 -07:00
PJ Fanning 4f59364417 Update link to Apache Archives for earlier Cassandra versions 2026-04-10 15:05:09 -07:00
Brad Schoening a9eaa0bea0 Update wording and fix a few typos 2026-04-10 14:05:36 -07:00
mck 50bf9b6aae
Generation of in-tree html and manpages documentation
patch by Mick Semb Wever; reviewed by Anthony Grasso for CASSANDRA-17260
2026-04-10 19:36:50 +02:00
Josh McNeil 5e2468bf59 Fix broken linkage in Material View docs
The `ALLOW FILTERING` link was missing a closing square bracket.
2026-04-10 10:34:17 -07:00
finalchild 195d6c76d8 Remove duplicate paragraph in storage_engine.adoc 2026-04-10 09:08:46 -07:00
Shanzita 18b4c186fe CASSANDRA-21218: Fix typos in documentation 2026-04-10 08:48:11 -07:00
Paulo Motta 9500eb129b Backport Automated Repair Inside Cassandra (CEP-37)
Includes bug fixes and features:
- Improved observability in AutoRepair (CASSANDRA-20581)
- Stop repair scheduler if two major versions detected (CASSANDRA-20048)
- Safeguard Full repair against disk protection (CASSANDRA-20045)
- Stop AutoRepair monitoring thread upon shutdown (CASSANDRA-20623)
- Fix race condition in auto-repair scheduler (CASSANDRA-20265)
- Minimum repair task duration setting (CASSANDRA-20160)
- Preview_repaired auto-repair type (CASSANDRA-20046)
- Gate auto-repair behind cassandra.autorepair.enable JVM property
- Add cassandra.autorepair.check_min_version to gate minimum version enforcement
- Prevent auto-repair from running if any node is below 5.0.7
- Make system_distributed auto-repair schema conditional on feature being enabled
- Add user-friendly errors for disabled auto-repair and schema incompatibility

patch by Paulo Motta; reviewed by Andy Tolbert, Jaydeepkumar Chovatia for CASSANDRA-21138

Co-Authored-By: Andy Tolbert <andy_tolbert@apple.com>
Co-Authored-By: Chris Lohfink <clohfink@netflix.com>
Co-Authored-By: Francisco Guerrero <frankgh@apache.org>
Co-Authored-By: Himanshu Jindal <himanshj@amazon.com>
Co-Authored-By: Jaydeepkumar Chovatia <jchovati@uber.com>
Co-Authored-By: Kristijonas Zalys <kzalys@uber.com>
Co-Authored-By: jaydeepkumar1984 <chovatia.jaydeep@gmail.com>
2026-04-08 10:53:41 -04:00
mck 6590cb5aaf
Change trunk from 5.1 to 6.0
patch by Mick Semb Wever; reviewed by Dmitry Konstantinov for CASSANDRA-21243
2026-03-21 22:55:40 +01:00
mck ee273af1d6
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Add option to disable cqlsh history
2026-03-17 23:09:49 +01:00
mck be0b73ecba
Merge branch 'cassandra-4.1' into cassandra-5.0
* cassandra-4.1:
  Add option to disable cqlsh history
2026-03-17 23:08:14 +01:00
mck ec39ef3193
Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  Add option to disable cqlsh history
2026-03-17 23:06:38 +01:00
Ekaterina Dimitrova b47179b7d4
Add option to disable cqlsh history
We can disable saving of the history either via command-line parameter --disable-history, or by setting disabled = True in the history section of the cqlshrc. Both options will read existing history, and just won't save new commands.

Update help and docs for cqlsh history.
Add startup info logline whenr history logging is enabled.
Add a fix for cqlshrc file path not correctly expanding.

Includes the Backport of
  Allows users to change cqlsh history location using env variable
  patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-17448

patch by Ekaterina Dimitrova; reviewed by Mick Semb Wever for CASSANDRA-XXX

Co-authored-by: Alex Ott alex.ott@datastax.com
Co-authored-by: Jaroslaw Grabowski jaroslaw.grabowski@datastax.com
2026-03-17 23:01:57 +01:00