Commit Graph

30169 Commits

Author SHA1 Message Date
Doug Rohrer b4dcef7841 Merge branch 'cassandra-4.1' into cassandra-5.0 2025-10-24 14:26:39 -04:00
Doug Rohrer c988b609b0 Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  CASSANDRA-20884 - Move JMX classes to the in-jvm-dtest API project
2025-10-24 14:23:42 -04:00
Doug Rohrer aa0e2f1631 CASSANDRA-20884 - Move JMX classes to the in-jvm-dtest API project
patch by Doug Rohrer; reviewed by Francisco Guerrero and Bernardo Botella Corbi for CASSANDRA-20884
2025-10-24 13:37:08 -04:00
Mick Semb Wever 4cba279af6
Prepare debian changelog for 5.0.6 2025-10-21 13:42:35 +02:00
blambov 1db6f54925 Fix range queries on early-open BTI files
patch by Branimir Lambov; reviewed by Stefan Miklosovic for CASSANDRA-20976
2025-10-20 16:28:01 +03:00
Mick Semb Wever 1f0d761008
Merge branch 'cassandra-4.1' into cassandra-5.0
* cassandra-4.1:
  increment version to 4.0.20
2025-10-20 13:47:40 +02:00
Mick Semb Wever 176519a45c
Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  increment version to 4.0.20
2025-10-20 13:46:50 +02:00
Mick Semb Wever 5d30dc17b8
increment version to 4.0.20 2025-10-20 13:45:57 +02:00
Mick Semb Wever 829109fd9c
Merge branch 'cassandra-4.1' into cassandra-5.0
* cassandra-4.1:
  Prepare debian changelog for 4.0.19
2025-10-15 10:12:48 +02:00
Mick Semb Wever c157886f9a
Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  Prepare debian changelog for 4.0.19
2025-10-15 10:12:24 +02:00
Mick Semb Wever 1cd1ea2798
Prepare debian changelog for 5.0.6 2025-10-14 22:36:34 +02:00
Mick Semb Wever 45fa31beb4
Prepare debian changelog for 4.0.19 2025-10-14 21:35:24 +02:00
Marcus Eriksson e721705152 Avoid re-initializing underlying iterator in LazilyInitializedUnfilteredRowIterator after closing
Patch by marcuse; reviewed by Aleksey Yeschenko and Branimir Lambov for CASSANDRA-20972
2025-10-14 13:19:51 +02:00
Caleb Rackliffe 98e7cd5d99 Flush SAI segment builder when current SSTable writer is switched
patch by Pranav Shenoy; reviewed by Caleb Rackliffe and Zhao Yang for CASSANDRA-20752
2025-10-13 15:17:27 -05:00
Mick Semb Wever 8aad9d6c05
Add a github action that runs .build/docker/check-code.sh
Runs on each supported JDK

 patch by Mick Semb Wever; reviewed by Štefan Miklošovič for CASSANDRA-20931
2025-10-13 12:34:51 +02:00
Stefan Miklosovic ed04f46b27
Merge branch 'cassandra-4.1' into cassandra-5.0 2025-09-26 16:08:54 +02:00
Stefan Miklosovic 4757411e94
Merge branch 'cassandra-4.0' into cassandra-4.1 2025-09-26 16:06:15 +02:00
Stefan Miklosovic 0026c0dc4c
Update OWASP dependency-check to 12.1.6, suppress unrelevant CVEs
patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-20924
2025-09-26 16:02:06 +02:00
Stefan Miklosovic b23db408c5
Merge branch 'cassandra-4.1' into cassandra-5.0 2025-09-24 10:22:16 +02:00
Stefan Miklosovic 4a201d4f6f
Merge branch 'cassandra-4.0' into cassandra-4.1 2025-09-24 10:20:21 +02:00
Yifan Cai 90f231ad56
Fixed incorrect error message constant for keyspace name length validation
patch by Yifan Cai; reviewed by Maxwell Guo, Stefan Miklosovic for CASSANDRA-20915
2025-09-24 10:13:04 +02:00
Stefan Miklosovic 3888949bda
Throw RTE instead of FSError when RTE is thrown from FileUtis.write in TOCComponent
Also simplify the logic in TOCComponent.loadOrCreate.

patch by Stefan Miklosovic; reviewed by Caleb Rackliffe for CASSANDRA-20917
2025-09-24 09:28:46 +02:00
Stefan Miklosovic 79db776094
Merge branch 'cassandra-4.1' into cassandra-5.0 2025-09-19 14:27:37 +02:00
Stefan Miklosovic 02ef8f8a0d
Merge branch 'cassandra-4.0' into cassandra-4.1 2025-09-19 14:18:29 +02:00
Stefan Miklosovic d966547d01
update shaded cassandra-driver-core to 3.11.5
patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-20904
2025-09-19 14:12:00 +02:00
Raymond Huffman a52d2ce783
Update jackson-dataformat-yaml to 2.19.2 and snakeyaml to 2.1
This is backport of CASSANDRA-18875 to 5.0 where we upgrade 2.1 of snakeyaml and bump jackson-dataformat-yaml to 2.19.2.

The change in trunk (5.1) is about excluding Jackson dependencies from wiremock so 2.19.2 of Jackson is used everywhere in test as well,
otherwise there would be Jackson annotations of 2.13.4 used.

patch by Raymond Huffman; reviewed by Mick Semb Wever and Stefan Miklosovic for CASSANDRA-18875

Co-authored-by: Griffin Davis <gcd@ibm.com>
2025-09-19 13:29:05 +02:00
Marko Tsymbaluk b26e33d506
Represent complex settings as JSON on system_views.settings table
The patch for 5.0 is preserving old behavior, it is possible to turn on JSON representation by a system property.
The patch for trunk is by default transforming collections to JSON string but there is the property (same as in 5.0) which has default to be set to true.

patch by Marko Tsymbaluk; reviewed by Paulo Motta, Stefan Miklosovic for CASSANDRA-20827

Co-authored-by: Stefan Miklosovic <smiklosovic@apache.org>
2025-09-19 11:58:23 +02:00
Dmitry Konstantinov 7f92e1ac2c Merge branch 'cassandra-4.1' into cassandra-5.0
* cassandra-4.1:
  Prevent too long table names not fitting file names
2025-09-10 23:09:58 +01:00
Dmitry Konstantinov bff43df7db Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  Prevent too long table names not fitting file names
2025-09-10 22:59:34 +01:00
Ruslan Fomkin 6c29686ea7 Prevent too long table names not fitting file names
The length of table names was not controlled. This is likely due to
confusion between validation methods with similar names. As result
creating tables with too long names led to the too long file name
exceptions during table creations.

This commit adds a validation of table name lengths to avoid the too
long file name errors. The validation length is based on how the table
name is used to create file/directory names, and needs to be exact to
prevent the too long file name exception, but allow all other table
names, which didn't lead to the too long file name exception. This
length limit is different from the existing name length limit of 48
characters used by common validation functions.

Thus, this commit moves out the length validation from the validation
methods into a separate length validation method, so the errors on
names are more specific. The non-length validation methods combined
into a single method, which checks for empty names and valid characters.

New constants are added for the length limits.

Table name related code are moved into methods in TableMetadata class,
so their semantics are more clear and to allow reuse, e.g., in
asserting the table name length constant.
Tests are added for the long table names and non-alphanumeric names.

Keyspace name validation function is now shared between two classes and
a unit test of it is added.

Patch by Ruslan Fomkin; reviewed by Piotr Kołaczkowski, Dmitry
Konstantinov, Maxwell Guo for CASSANDRA-20389
2025-09-10 22:48:43 +01:00
Dmitry Konstantinov 5d83175952 Merge branch 'cassandra-4.1' into cassandra-5.0
* cassandra-4.1:
  Add VS code local folder to gitignore
2025-09-08 00:38:46 +01:00
Dmitry Konstantinov 04d56d4bab Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  Add VS code local folder to gitignore
2025-09-08 00:37:38 +01:00
Ruslan Fomkin 4484f2b73c Add VS code local folder to gitignore
patch by Ruslan Fomkin; reviewed by Piotr Kolaczkowski, Dmitry Konstantinov, Maxwell Guo for CASSANDRA-20389
2025-09-08 00:36:11 +01:00
Mick Semb Wever 8ccdbb88ed
Fix resolution of base job branch determination in .build/run-ci
patch by Mick Semb Wever; reviewed by Štefan Miklošovič for CASSANDRA-20875
2025-09-03 23:08:17 +02:00
Stefan Miklosovic b3cc1d0abd
Merge branch 'cassandra-4.1' into cassandra-5.0 2025-09-03 13:36:53 +02:00
Stefan Miklosovic b907c1e973
bump version in build.xml to 4.1.11 2025-09-03 13:36:06 +02:00
Stefan Miklosovic e45a330f54
Merge branch 'cassandra-4.1' into cassandra-5.0 2025-09-01 12:53:53 +02:00
Stefan Miklosovic c9717b4ed5
Redact security-sensitive information in system_views.settings
patch by Stefan Miklosovic; reviewed by Maxwell Guo, Francisco Guerrero for CASSANDRA-20856
2025-09-01 12:44:43 +02:00
Stefan Miklosovic dd8839320f
Fix job name determination in .build/run-ci for trunk case
patch by Stefan Miklosovic; reviewed by Michael Semb Wever for CASSANDRA-20874
2025-09-01 10:26:57 +02:00
Paulo Motta c5d6a36fa7 Expose StorageService.dropPreparedStatements via JMX
Patch by Paulo Motta; Reviewed by Dmitry Konstantinov, Jeremiah Jordan for CASSANDRA-20870
2025-08-29 14:00:03 -04:00
Stefan Miklosovic decd51eb5d
ninja: add license to .build/run-ci.d/requirements.txt to pass rat check 2025-08-28 17:23:29 +02:00
Stefan Miklosovic d340b9d0df
Merge branch 'cassandra-4.1' into cassandra-5.0 2025-08-28 12:33:19 +02:00
Stefan Miklosovic d48bfcce44
Prepare debian changelog for 4.1.10 2025-08-28 12:02:40 +02:00
Stefan Miklosovic be96162f6c
Merge branch 'cassandra-4.1' into cassandra-5.0 2025-08-28 11:48:03 +02:00
Stefan Miklosovic c632e66e85
Merge branch 'cassandra-4.0' into cassandra-4.1 2025-08-28 11:46:58 +02:00
Stefan Miklosovic 29e45b5d82
Increase memory available for javadoc generation
javadoc target is behaving unpredictably, sometimes fails, sometimes does not.
I strongly suspect that it just does not have enough memory available and it fails.
This is currently a blocker for releases. My empirical testing shows that more memory
we assign to javadoc generation, less probable it is it will fail to finish successfuly.

patch by Stefan Miklosovic for CASSANDRA-20868
2025-08-28 11:43:13 +02:00
Richa Mishra 05f0e513e8
K8s immutable provisioning of ci-cassandra.apache.org jenkins instances
.build/run-ci is a a python script used to create and interact with k8s provisioned ci-cassandra.apache.org clones
See .build/run-ci.d/README.md for docs on usage.

.jenkins/k8s/ contains the k8s jenkins helm chart, JSaC configuration, and docker image for provisioning.

.build/run-ci.d/  contains python requirements and tests for .build/run-ci

 patch by Richa Mishra, Nishant Barola, Aleksandr Volochnev, Mick Semb Wever; reviewed by Richa Mishra, Nishant Barola, Aleksandr Volochnev, Brandon Hsieh, Mick Semb Wever, Brandon Williams for CASSANDRA-18145

Co-authored-by: Richa Mishra <richa.mishra@infracloud.io>
Co-authored-by: Nishant Barola <nishant.barola@infracloud.io>
Co-authored-by: Aleksandr Volochnev <a.volochnev@gmail.com>
Co-authored-by: Mick Semb Wever <mck@apache.org>
2025-08-27 23:33:16 +02:00
Stefan Miklosovic 2bc3f1f7e9
Merge branch 'cassandra-4.1' into cassandra-5.0 2025-08-27 19:02:06 +02:00
Stefan Miklosovic 792e823af0
Merge branch 'cassandra-4.0' into cassandra-4.1 2025-08-27 19:01:31 +02:00
Dmitry Konstantinov 1c5286f4d1
Fix IndexOutOfBoundsException in sstablemetadata tool when a range tombstone is a max clustering value
patch by Dmitry Konstantinov; reviewed by Stefan Miklosovic for CASSANDRA-20855
2025-08-27 18:54:10 +02:00