Commit Graph

92 Commits

Author SHA1 Message Date
Sam Tunnicliffe 6e46e39df8 ninja: replace addtocmstool with cmsofflinetool in rpm/deb packages
Follow up to CASSANDRA-19151
2026-05-18 14:04:33 +01: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
Marcus Eriksson a8be2e4bd9 ninja-fix add offlineclustermetadatadump tool to bin directory in deb/rpm packages 2026-03-16 08:52:12 +01:00
Josh McKenzie 940739a488 Add JDK21 support
Patch by Josh McKenzie; reviewed by Mick Semb Wever and Ekaterina Dimitrova for CASSANDRA-18831

Co-authored-by: Aleksey Yeschenko
Co-authored-by: Achilles Benetopoulos
Co-authored-by: Mick Semb Wever
2026-02-02 12:39:05 -05:00
Andy Tolbert f80a234d1e Migrate sstableloader code to its own tools directory and artifact
As part of a broader effort to decouple java driver code from the
server code, this moves sstableloader to its own tools directory.

As sstableloader is also used as a library (CASSANDRA-10637), added
a new artifact 'cassandra-sstableloader' that will get deployed to
maven along with 'cassandra-all'.

While I expect this is likely a niche use case, this will allow users
to continue using BulkExport as a library.

Moves sstableloader-specific targets to its own build.xml in
tools/sstableloader/build.xml.

Also updates IDE project files and circleci to utilize new
sstableloader-specific targets.

patch by Andy Tolbert; reviewed by Stefan Miklosovic and Mick Semb Wever for CASSANDRA-20328
2025-05-18 12:35:52 -05:00
Mick Semb Wever 68a4e6f690
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Autogenerate toplevel .snyk file from owasp suppressions
2025-03-30 09:34:30 +02:00
Mick Semb Wever 1311766ad1
Merge branch 'cassandra-4.1' into cassandra-5.0
* cassandra-4.1:
  Autogenerate toplevel .snyk file from owasp suppressions
2025-03-30 09:32:10 +02:00
Mick Semb Wever ef3dc6491e
Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  Autogenerate toplevel .snyk file from owasp suppressions
2025-03-30 09:31:04 +02:00
Mick Semb Wever 9abed87ba4
Autogenerate toplevel .snyk file from owasp suppressions
patch by Mick Semb Wever; reviewed by Brandon Williams for CASSANDRA-20319
2025-03-30 09:27:39 +02:00
Brandon Williams 505f06a4ae Merge branch 'cassandra-5.0' into trunk 2024-05-06 08:37:11 -05:00
Brandon Williams 1902195d99 Merge branch 'cassandra-4.1' into cassandra-5.0 2024-05-06 08:37:01 -05:00
Brandon Williams 103e9cca1a Merge branch 'cassandra-4.0' into cassandra-4.1 2024-05-06 08:35:07 -05:00
Brandon Williams f12f928dee Bring dirs/ownership/perms in line with Debian package
Patch by brandonwilliams; reviewed by bereng for CASSANDRA-19565
2024-05-06 08:34:15 -05: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
Mick Semb Wever 2a807fc81b
ninja-fix add addtocmstool tool to bin directory in deb/rpm packages 2023-12-01 13:04:56 +01:00
Stefan Miklosovic a4fc03e799
Merge branch 'cassandra-4.1' into cassandra-5.0 2023-10-18 12:57:06 +02:00
Stefan Miklosovic ede18e6c9f
Merge branch 'cassandra-4.0' into cassandra-4.1 2023-10-18 12:55:49 +02:00
Stefan Miklosovic 85285fa0f9
Merge branch 'cassandra-3.11' into cassandra-4.0 2023-10-18 12:54:15 +02:00
Stefan Miklosovic 6212b0aaa5
Merge branch 'cassandra-3.0' into cassandra-3.11 2023-10-18 12:52:19 +02:00
maoling f27c6c8e6e
Implement the logic in bin/stop-server
patch by Ling Mao; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-18838

Co-authored-by: Stefan Miklosovic <smiklosovic@apache.org>
2023-10-18 12:49:58 +02:00
Stefan Miklosovic 1ffe90b1f7
Merge branch 'cassandra-4.1' into cassandra-5.0 2023-08-15 14:00:44 +02:00
Stefan Miklosovic 9383cb3c85
Merge branch 'cassandra-4.0' into cassandra-4.1 2023-08-15 13:58:37 +02:00
Stefan Miklosovic 7857210641
Merge branch 'cassandra-3.11' into cassandra-4.0 2023-08-15 13:54:23 +02:00
Stefan Miklosovic 3dec94a62b
Merge branch 'cassandra-3.0' into cassandra-3.11 2023-08-15 13:51:47 +02:00
Stefan Miklosovic e08bf19432
Fix Requires for Java for RPM package
patch by Stefan Miklosovic; reviewed by Brandon Williams and Maxim Muzafarov for CASSANDRA-18751
2023-08-15 13:49:58 +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
Andrés de la Peña e72ec4e828 Add sstablepartitions offline tool to find large partitions in sstables
patch by Andrés de la Peña and Robert Stupp; reviewed by Brandon Williams and Stefan Miklosovic for CASSANDRA-8720

Co-authored-by: Andrés de la Peña <a.penya.garcia@gmail.com>
Co-authored-by: Robert Stupp <snazy@snazy.de>
2023-05-04 13:33:16 +01:00
Brad Schoening 3860a90c5f Change shebangs of Python scripts to resolve Python 3 from env command
patch by Brad Schoening; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-17832

Co-authored-by: Stefan Miklosovic <smiklosovic@apache.org>
2022-11-18 14:38:03 +01:00
Brandon Williams 067f4c7461 Merge branch 'cassandra-4.1' into trunk 2022-06-08 11:19:35 -05:00
Brandon Williams fd547aff55 Merge branch 'cassandra-4.0' into cassandra-4.1 2022-06-08 11:18:59 -05:00
Brandon Williams cd0a40d09e Allow java 11 in redhat packaging
Patch by brandonwilliams; reviewed by bereng for CASSANDRA-17669
2022-06-08 11:18:05 -05:00
Brandon Williams 80d94245be set perms on data/logs to 750 in redhat packaging
Patch by brandonwilliams; reivewed by bereng for CASSANDRA-17470
2022-05-25 06:19:46 -05:00
Brandon Williams a76c7c1f1c Add procps-ng RPM dependency
Patch by Dylan Richardson; reviewed by brandonwilliams and bereng for
CASSANDRA-17516
2022-04-13 07:08:41 -05:00
Brandon Williams d23fa585c3 Add procps-ng RPM dependency
Patch by Dylan Richardson; reviewed by brandonwilliams and bereng for
CASSANDRA-17516
2022-04-13 07:04:40 -05:00
Brandon Williams 39c8d6aa57 Add procps-ng RPM dependency
Patch by Dylan Richardson; reviewed by brandonwilliams and bereng for
CASSANDRA-17516
2022-04-13 07:02:03 -05:00
Brandon Williams 02a7a1cd50 Add procps-ng RPM dependency
Patch by Dylan Richardson; reviewed by brandonwilliams and bereng for
CASSANDRA-17516
2022-04-13 06:59:57 -05:00
Marcus Eriksson 537321e9c7 Remove stress server functionality
Patch by marcuse; reviewed by Brandon Williams for CASSANDRA-17535
2022-04-08 14:34:43 +02:00
Bereng 30ad754d7e Pre hashed passwords in CQL
patch by Robert Stupp and Berenguer Blasi; reviewed by Andres de la Peña for CASSANDRA-17334

Co-authored-by: Robert Stupp <snazy@snazy.de>
Co-authored-by: Berenguer Blasi <berenguerblasi@gmail.com>
2022-03-23 07:20:14 +01:00
Brandon Williams ecf186f859 Merge branch 'cassandra-3.0' into cassandra-3.11 2021-09-03 13:49:56 -05:00
Brandon Williams 615372f908 Merge branch 'cassandra-2.2' into cassandra-3.0 2021-09-03 13:48:11 -05:00
Mick Semb Wever 2e547dfbc4 Add python2 location to RPMs
Patch by Mck Semb Wever; reviewed by brandonwilliams for
CASSANDRA-16822
2021-09-03 13:45:12 -05:00
Mick Semb Wever 7337fc0ab4
Merge branch 'cassandra-3.11' into trunk 2021-04-19 17:39:10 +02:00
Mick Semb Wever 2ec96ae669
Merge branch 'cassandra-3.0' into cassandra-3.11 2021-04-19 17:34:05 +02:00
Mick Semb Wever 50a97a0d76
Merge branch 'cassandra-2.2' into cassandra-3.0 2021-04-19 17:29:00 +02:00
Mick Semb Wever 53b0661cbb
Fix rat checking for files with missing license headers
patch by Mick Semb Wever; reviewed by Brandon Williams, Ekaterina Dimitrova for CASSANDRA-16558
2021-04-19 17:18:26 +02:00
Mick Semb Wever 65653af2ce
Merge branch 'cassandra-3.11' into trunk 2021-03-09 22:36:59 +01:00
Mick Semb Wever 67b8504b20
Merge branch 'cassandra-3.0' into cassandra-3.11 2021-03-09 22:34:43 +01:00
Mick Semb Wever 3018499540
Merge branch 'cassandra-2.2' into cassandra-3.0 2021-03-09 22:31:01 +01:00
Mick Semb Wever b41873d671
Fix centos packaging for arm64, >=3.0 rpm's now require python3
patch by Mick Semb Wever; reviewed by Brandon Williams for CASSANDRA-16477
2021-03-09 22:30:06 +01:00
Mick Semb Wever 2346ed8241
Offline token allocation strategy generator tool
Provides the tools/bin/generate-tokens script that can be used to pregenerate allocation strategy tokens.
Refactors TokenAllocation for extensibility (and better re-use between strategies), and adds OfflineTokenAllocator.
TokenMetadata now has a configurable snitch (instead of hardcoded to DatabaseDescriptor.getEndpointSnitch()) for testability.
Adds logging of growth and stddev changes to allocate_tokens_for_local_replication_factor usages.

 patch by Mick Semb Wever; reviewed by Paul Motta, Ekaterina Dimitrova for CASSANDRA-16205
2020-12-03 19:20:59 +01:00