Commit Graph

42 Commits

Author SHA1 Message Date
Blake Eggleston 09c8fa1030 CEP-15 (C*): Messaging and storage engine integration
patch by Blake Eggleston; reviewed by Benedict Elliott Smith, David Capwell for CASSANDRA-17103
2025-04-17 11:59:47 -07:00
Stefan Miklosovic 89d153affd
Merge branch 'cassandra-5.0' into trunk 2025-04-02 22:46:32 +02:00
Stefan Miklosovic 27a6ef3ea8
Update netty to 4.1.119.Final and netty-tcnative to 2.0.70.Final
patch by Stefan Miklosovic; reviewed by Dmitry Konstantinov for CASSANDRA-20314
2025-04-02 22:43:52 +02:00
Josh McKenzie e3be0df784 Merge branch 'cassandra-5.0' into trunk 2024-09-16 15:53:25 -04:00
Josh McKenzie 7d10bedd3c Merge branch 'cassandra-4.1' into cassandra-5.0 2024-09-16 15:51:01 -04:00
Josh McKenzie 8027f9590c Merge branch 'cassandra-4.0' into cassandra-4.1 2024-09-16 15:50:04 -04:00
Josh McKenzie 525245bdbd Add snapshot remote repo to build resolution and build.properties.default
Patch by Josh McKenzie; reviewed by Mick Semb Wever and Brandon Williams for CASSANDRA-19810
2024-09-16 15:49:14 -04:00
Claude Warren 5d46ff2796
Remove dependency on Sigar in favor of OSHI
patch by Claude Warren; reviewed by Stefan Miklosovic, Jacek Lewandowski, Michael Semb Wever for CASSANDRA-16565

Co-authored-by: Stefan Miklosovic <smiklosovic@apache.org>
2024-01-23 11:54:20 +01:00
Andrés de la Peña 03f0d37cb0 Merge branch 'cassandra-5.0' into trunk 2024-01-19 17:33:55 +00:00
Andrés de la Peña 8fd44ca8fc Upgrade Python driver to 3.29.0
patch by Andrés de la Peña; reviewed by Berenguer Blasi for CASSANDRA-19245
2024-01-19 17:14:57 +00:00
Alex Petrov b45a0e0145 Remove dependency on bundled Harry jar
Patch by Alex Petrov; reviewed by Marcus Eriksson and Sam Tunnicliffe for CASSANDRA-19083
2023-12-01 09:02:27 +01:00
Sam Tunnicliffe ae0842372f Implementation of Transactional Cluster Metadata as described in CEP-21
An overview of the core components can be found in the included
TransactionalClusterMetadata.md

patch by Alex Petrov, Marcus Eriksson and Sam Tunnicliffe; reviewed by
Alex Petrov, Marcus Eriksson and Sam Tunnicliffe for CASSANDRA-18330

Co-authored-by: Marcus Eriksson <marcuse@apache.org>
Co-authored-by: Alex Petrov <oleksandr.petrov@gmail.com>
Co-authored-by: Sam Tunnicliffe <samt@apache.org>
2023-11-24 10:26:08 +00:00
Stefan Miklosovic aa84b19112
Remove unnecessary Netty dependencies after upgrade to version 4.1.96
This patch also resolves CASSANDRA-18723 by bumping bcpkix-jdk15on of 1.70
to bcpkix-jdk18on of 1.76.

patch by Stefan Miklosovic; reviewed by Jacek Lewandowski CASSANDRA-18729
2023-08-17 11:24:37 +02:00
ayushis 6ab45971fc
Introduce pluggable crypto providers and default to Amazon Corretto Crypto Provider
patch by Ayushi Singh; reviewed by Stefan Miklosovic, Michael Semb Wever and Maxim Muzafarov for CASSANDRA-18624

Co-authored-by: Stefan Miklosovic <smiklosovic@apache.org>
2023-07-28 12:15:33 +02:00
Ekaterina Dimitrova 3755934e52 Drop JDK8 and add JDK17, remove eclipse-warnings in favor of Checker Framework and upgrade checkstyle
patch by Ekaterina Dimitrova; reviewed by Jeremiah Jordan, Berenguer Blasi, Michael Semb Wever and Jacek Lewandowski for CASSANDRA-18255
2023-07-24 15:16:53 -04:00
Jacek Lewandowski ad26ffcd57 Run checks in a separate task and fix build warnings
Patch by Jacek Lewandowski; reviewed by Mick Semb Wever and Stefan Miklosovic for CASSANDRA-18618
2023-07-21 05:57:37 +02:00
Mick Semb Wever f5df4b219e
Move build and test scripts in-tree, under .build/
See .build/README.md  .Build and test scripts cover all CI activities in an CI agnostic manner. Scripts are found in non-docker and dockerised variants.

The non-docker scripts are found first under .build/ .These interact directly with ant, providing additional checks and environment setup. It is intended that what can be pushed down into the base ant build layer should be. The
debian and redhat build scripts are hidden under .build/docker because they are generally not usuable outside of their corresponding linux dists, and we don't want to encourage anything to the contrary.  Bring the artifact/deb/rpm
build scripts (and associated docker images) from cassandra-builds repo to the .build directory.  These packaging script for debian and redhat are now separated from the artifacts scripts. An additional build script check-code.sh
has been added that is solely responsible for all linter and code checks (includes owasp dependency checker).  Only JDK11 and JDK17 are supported (as JDK8 is soon to be dropped).  Scripts do not clean (or realclean) so that
scripts can be better pipelined, but `ant jar` was required to be added to circleci and ci-cassandra.a.o cqlsh-tests.  Scripts can define a custom BUILD_DIR (build.dir) which can permit running parrallel builds off the same source
(though not all tests support this, or their support for it has atrophied).  All build and test artifacts, results, and logs are found under build/ (or the BUILD_DIR).  The build local venv and .ccm directories are now also
created under build (or BUILD_DIR).  The test venv, logs and results are wiped each run.  Use a separate mktemp directory each run, under /tmp (respect /tmp responsibility, and python fails when tmpdir is on a docker volume).
Don't set CASSANDRA_HOME when running python dtests (and fail-fast if `ant artifacts` was used to build instead of `ant jar`).

The docker scripts are found lower down under .build/docker/ .These scripts re-used the non-docker scripts inside containers. The docker images are versioned controlled in the same directory as dockerfiles, and tagged by their
md5sums.  When running the docker scripts these docker images will, if not in the local registry, will first be attempted to be pulled from dockerhub and only then fallback to be built locally.  This allows the dockerfiles to be
modified in existing patches and be run in existing CI as-is.  Docker scripts timeout after one hour.  virtualenv-clone is used, re-using the python versioned venvs in the image saves time over creating new ones each run.  The inner-spliting of docker containers has been removed.  It added a lot of complexity, for the most part duplicating the splitting concept, for little performance gain.

Ant target 'generate-unified-test-report' added, used for aggregating test reports and printing a summary.

 patch by Mick Semb Wever; reviewed by Brandon Williams, Josh McKenzie, Maxim Muzafarov, Stefan Miklosovic for CASSANDRA-18133
2023-07-12 12:59:37 +02:00
Jon Meredith 57293e8281 Merge branch 'cassandra-3.11' into cassandra-4.0 2023-05-31 12:04:29 -06:00
Doug Rohrer 43ec184391 Add support for JMX in the in-jvm dtest framework
patch by Doug Rohrer; reviewed by Alex Petrov, Jon Meredith, Francisco Guerrero Hernandez for CASSANDRA-18511
2023-05-31 12:02:26 -06:00
Maxim Muzafarov e98258a132 Upgrade checkstyle to 10.8.1 for j11 and 8.45.1 for j8
Patch by Maxim Muzafarov; reviewed by brandonwilliams and smiklosovic
for CASSANDRA-18262
2023-03-30 05:19:58 -05:00
Brad Schoening 8a5bdf61db replace local wcwidth.py with pypi module 'wcwidth'
Patch by Brad Schoening; reviewed by brandonwilliams and smiklosovic for
CASSANDRA-17287
2022-11-14 06:23:18 -06:00
Stefan Miklosovic 387c274a62 Merge branch 'cassandra-4.1' into trunk 2022-09-02 15:23:12 +02:00
Stefan Miklosovic a61edad15f remove pure_sasl from the repository
This is follow-up for CASSANDRA-16456. The dependency
should be downloaded and put into the lib/ folder.

patch by Stefan Miklosovic; reviewed by Mick Semb Wever for CASSANDRA-16456
2022-09-02 15:21:52 +02:00
Abe Ratnofsky 1e27ffc6ad Remove dependency on Maven Ant Tasks
patch by Abe Ratnofsky; reviewed by David Capwell, Michael Semb Wever for CASSANDRA-17750
2022-08-24 22:40:26 -07:00
David Capwell 6013f16de7 Merge branch 'cassandra-4.0' into trunk 2022-04-12 11:56:22 -07:00
Stefan Miklosovic da47849b50 Remove Windows-specific classes and related code
patch by Stefan Miklosovic; reviewed by Joshua McKenzie, Bowen Song, Berenguer Blasi for CASSANDRA-16956
2022-02-05 15:41:33 +01:00
Mick Semb Wever 3f2066d150
Merge branch 'cassandra-3.11' into cassandra-4.0 2021-11-17 10:42:16 +01:00
Mick Semb Wever cd73c14cec
Merge branch 'cassandra-3.0' into cassandra-3.11 2021-11-17 10:31:18 +01:00
Sumanth Pasupuleti 44d81b5d09
Create property for local repository
patch by Sumanth Pasupuleti; reviewed by Mick Semb Wever for CASSANDRA-16917
2021-11-15 16:20:28 +01:00
Mick Semb Wever 1038f4489a
Remove duplicate 'lib.download.sha' entries in build-resolver.xml
patch by Mick Semb Wever; reviewed by Zhao Yang for CASSANDRA-16897
2021-08-30 21:44:50 +02:00
Marcus Eriksson c44dfab9b5 Add JStackJUnitTask to avoid downloading the jar
Patch by marcuse; reviewed by Brandon Williams, David Capwell, Michael Semb Wever for CASSANDRA-16570
2021-07-25 11:37:32 -05:00
Mick Semb Wever e6950518d1 Offline build mode
When all dependencies are already in the local `~/.m2/repository/` we should not be needing an internet connection. ("Offline" mode should be automatic)

 patch by Mick Semb Wever; reviewed by Brandon Williams for CASSANDRA-16559
2021-07-25 11:37:32 -05:00
Mick Semb Wever 2fdf1d2762 Migrate dependency handling from maven-ant-tasks to resolver-ant-tasks
- This removes lib/ from version control.
- The generated pom files are now the source of truth to the project's depdendencies, and the lib/ folder re-created during the build from compile scope dependencies excluding provided and system scopes. Project dependencies are first downloaded to the maven local repository at `~/.m2/repository`.
- Maven is now required to be installed to build, that is the `mvn` command needs to be found in the path.
- The new resolver-ant-tasks targets have been encapsulated into the `build/build-resolver.xml` ant file.
- Most classpaths in build.xml are replaced with resolver:resolve definitions.
- The build-deps-pom generated pom file is now only used for declaring test dependencies.

 patch by Mick Semb Wever; reviewed by Brandon Williams for CASSANDRA-16557
2021-07-25 11:37:32 -05:00
Mick Semb Wever 3d7c824c1b Offline build mode
When all dependencies are already in the local `~/.m2/repository/` we should not be needing an internet connection. ("Offline" mode should be automatic)

 patch by Mick Semb Wever; reviewed by Brandon Williams for CASSANDRA-16559
2021-07-25 11:35:45 -05:00
Mick Semb Wever 3259d6de37 Migrate dependency handling from maven-ant-tasks to resolver-ant-tasks
- This removes lib/ from version control.
- The generated pom files are now the source of truth to the project's depdendencies, and the lib/ folder re-created during the build from compile scope dependencies excluding provided and system scopes. Project dependencies are first downloaded to the maven local repository at `~/.m2/repository`.
- Maven is now required to be installed to build, that is the `mvn` command needs to be found in the path.
- The new resolver-ant-tasks targets have been encapsulated into the `build/build-resolver.xml` ant file.
- Most classpaths in build.xml are replaced with resolver:resolve definitions.
- The build-deps-pom generated pom file is now only used for declaring test dependencies.

 patch by Mick Semb Wever; reviewed by Brandon Williams for CASSANDRA-16557
2021-07-25 11:35:45 -05:00
Sam Tunnicliffe 9cda055faa Merge branch 'cassandra-3.11' into trunk 2021-04-27 09:31:45 +01:00
David Capwell 038271cc6f Use source release of python driver from pip rather than GitHub
patch by David Capwell; reviewed by Adam Holmberg, Michael Semb Wever for CASSANDRA-16599
2021-04-15 18:03:51 -07:00
Mick Semb Wever e848d47ed1
Upgrade jflex to 1.8.2
patch by Mick Semb Wever; reviewed by Brandon Williams for CASSANDRA-16576
2021-04-11 21:22:12 +02:00
Marcus Eriksson 6a45728b08 Add JStackJUnitTask to avoid downloading the jar
Patch by marcuse; reviewed by Brandon Williams, David Capwell, Michael Semb Wever for CASSANDRA-16570
2021-04-08 09:47:50 +02:00
David Capwell 51e762c5db When behind a firewall trunk is not buildable, need to allow overriding URLs
patch by David Capwell; reviewed by Brandon Williams, Jon Meredith, Michael Semb Wever for CASSANDRA-16563
2021-04-07 11:14:45 -07:00
Mick Semb Wever 17d379ca1b
Offline build mode
When all dependencies are already in the local `~/.m2/repository/` we should not be needing an internet connection. ("Offline" mode should be automatic)

 patch by Mick Semb Wever; reviewed by Brandon Williams for CASSANDRA-16559
2021-04-06 19:09:08 +02:00
Mick Semb Wever cf39d03127
Migrate dependency handling from maven-ant-tasks to resolver-ant-tasks
- This removes lib/ from version control.
- The generated pom files are now the source of truth to the project's depdendencies, and the lib/ folder re-created during the build from compile scope dependencies excluding provided and system scopes. Project dependencies are first downloaded to the maven local repository at `~/.m2/repository`.
- Maven is now required to be installed to build, that is the `mvn` command needs to be found in the path.
- The new resolver-ant-tasks targets have been encapsulated into the `build/build-resolver.xml` ant file.
- Most classpaths in build.xml are replaced with resolver:resolve definitions.
- The build-deps-pom generated pom file is now only used for declaring test dependencies.

 patch by Mick Semb Wever; reviewed by Brandon Williams for CASSANDRA-16391
2021-04-02 10:17:08 +02:00