Commit Graph

20840 Commits

Author SHA1 Message Date
Mick Semb Wever 6bf9b8b694 Update IDE, Eclipse and NetBeans, classpaths for tests
patch by Mick Semb Wever, Berenguer Blasi; reviewd by Ekaterina Dimitrova, Benjamin Lerer for CASSANDRA-16560
2021-07-25 11:35:45 -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
Vincent White 1205a9de22 Don't allow seeds to replace without using unsafe
Patch by Vincent White; reviewed by brandonwilliams and edimitrova for
CASSANDRA-14463
2021-07-23 11:22:51 -05:00
Ekaterina Dimitrova 92773f8f2d Merge branch 'cassandra-2.2' into cassandra-3.0 2021-07-21 16:49:34 -04:00
Aleksandr Sorokoumov d3ddb190ee Fix pycodestyle compliance
Patch by Aleksandr Sorokoumov; reviewed by Ekaterina Dimitrova and Brandon Williams for CASSANDRA-15985
2021-07-21 15:21:23 -04:00
Brandon Williams 426253a340 Calculate time remaining correctly for all compaction types in compactionstats
Patch by brandonwilliams; reviewed by adelapena for CASSANDRA-14701
2021-07-21 13:57:23 -05:00
Ekaterina Dimitrova 23b0348789 Merge branch 'cassandra-2.2' into cassandra-3.0 2021-07-20 15:01:34 -04:00
kamlesh-ghoradkar cb0e4386d8 CQL shell should prefer newer TLS version by default
patch by Kamlesh Ghoradkar; reviewed by Ekaterina Dimitrova, Adam Holmberg, David Capwell, Justin Chu and Brandon Williamms for CASSANDRA-16736
2021-07-20 14:35:50 -04:00
Sam Tunnicliffe fbb20b9162 Receipt of gossip shutdown updates TokenMetadata
Patch by Sam Tunnicliffe; reviewed by Caleb Rackliffe for
CASSANDRA-16796
2021-07-20 18:10:48 +01:00
Ekaterina Dimitrova 6e0b084d65 Add config.yml.MIDRES for older Cassandra versions
patch by Ekaterina Dimitrova; review by Andres de la Pena for CASSANDRA-16804
2021-07-20 12:15:51 -04:00
Aleksei Zotov 87424dabd2 Count bloom filter misses correctly.
Patch by Aleksei Zotov; reviewed by blerer and blambov for
CASSANDRA-12922
2021-07-19 07:32:39 -05:00
Krishna Koneru 44604b7316 Reject token() in MV WHERE clause
Patch by Krishna Koneru and Damien Stevenson; review by Benjamin Lerer,
Brandon Williams and Zhao Yang for CASSANDRA-13464

Co-authored-by: Krishna Koneru <krishna.koneru@instaclustr.com>
Co-authored-by: Damien Stevenson <damien@localhost.damien>
2021-07-16 18:11:49 +02:00
Angelo Polo 75ddf76801 Ensure java executable is on the path.
Patch by Angelo Polo; reviewed by Aleksei Zotov, brandonwilliams and
edimitrova for CASSANDRA-14325
2021-07-16 07:54:35 -05:00
Sumanth Pasupuleti e8f961f403 Make speculative retry parameter case-insensitive for backward compatibility with 2.1
patch by Sumanth Pasupuleti; reviewed by Caleb Rackliffe and Ekaterina Dimitrova for CASSANDRA-16467
2021-07-15 15:00:57 -05:00
Robert Stupp 3d59557ace don't log DigestMismatchException at DEBUG
patch by Robert Stupp and Aleksandr Soromoukov, reviewed by edimitrova
and brandonwilliams for CASSANDRA-14900
2021-07-14 09:59:24 -05:00
kurt 15c22fa2f1 Backport CASSANDRA-7950 (Support long names in nodetool output)
this patch also backports chronological sorting of output for compactionhistory command found in versions from 3.2 included (CASSANDRA-10464)

patch by Kurt Greaves; reviewed by Stefan Miklosovic and Ekaterina Dimitrova for CASSANDRA-14162
2021-07-13 16:50:42 +02:00
Mick Semb Wever 0a84dda36a
Merge branch 'cassandra-2.2' into cassandra-3.0 2021-07-12 22:16:36 +02:00
Mick Semb Wever b3f9921881
Introduce SemVer4j for version representation, parsing and handling. And correct supported upgrade paths. Add v4X to Java DTests (after cassandra-4.0 branch was created)
Change upgrades from testing only a single path, to testing all upgrade paths that are defined as supported within the specified from-to range.
Change all upgrades to v40 and v4X to be open ended (i.e. implicit CURRENT version).

 patch by Mick Semb Wever; reviewed by Alex Petrov for CASSANDRA-16649
2021-07-12 22:09:40 +02:00
zersek eadb171d5d Handle correctly the exceptions thrown by custom QueryHandler constructors
patch by Zoltan Ersek; reviewed by Benjamin Lerer and Brandon Williams for
CASSANDRA-16703
2021-07-07 16:40:00 +02:00
Brandon Williams 2d8b304e75 Ninja fix comments saying mx4j defaults to 0.0.0.0
CASSANDRA-13574
2021-06-29 15:57:55 -05:00
Andrés de la Peña f329c63d86 Fix flaky dtest SchemaTest not waiting for node shutdown before restart
patch by Andrés de la Peña; reviewed by Berenguer Blasi for CASSANDRA-16754
2021-06-22 14:54:37 +01:00
Brandon Williams 6563a61cb5 ninja: make Config default match yaml for dropping compact storage 2021-06-21 14:44:02 -05:00
Marcus Eriksson 1d87da3f6f Adding columns via ALTER TABLE can generate corrupt sstables
Patch by marcuse; reviewed by Alex Petrov and Sam Tunnicliffe for CASSANDRA-16735
2021-06-21 15:42:30 +02:00
Benjamin Lerer 9b6dd382bd Add flag to disable ALTER...DROP COMPACT STORAGE statements
patch by Benjamin Lerer; review by Andres de la Pena and Brandon Williams for CASSANDRA-16733
2021-06-18 14:42:48 +02:00
Jacek Lewandowski d54eff3a4a
Remove full project building from the generate-idea-files ant target
- that target was unnecessarily building the whole project which made it problematic to update the project while merging/rebasing if conflicts in the code were failing the compilation
 - updated system properties for default run test task in Intellij to match those when running tests from Ant
 - fix test-memory target

 patch by Jacek Lewandowski; reviewed by Mick Semb Wever for CASSANDRA-16697
2021-06-17 11:25:58 +02:00
Caleb Rackliffe 6ef3eaf771 update IDEA setup generation to mark test/conf as test resources
patch by Abe Ratnofsky; reviewed by Caleb Rackliffe and Brandon Williams for CASSANDRA-16745
2021-06-16 14:15:40 -05:00
Brandon Williams 2e2bcc5261 Add 'python2' to debian packaging for Ubuntu.
Patch by brandonwilliams, reviewed by mck for CASSANDRA-16605
2021-06-16 13:49:21 -05:00
Andrés de la Peña e97b8fba11 Clean transaction log leftovers at the beginning of sstablelevelreset and sstableofflinerelevel
patch by Andrés de la Peña; reviewed by Berenguer Blasi and Stefania Alborghetti for CASSANDRA-12519
2021-06-16 17:40:08 +01:00
kamlesh-ghoradkar a0af091a5c CQL shell should prefer newer TLS version by default
patch by Kamlesh Ghoradkar; reviewed by Ekaterina Dimitrova, Adam Holmberg, David Capwell, Justin Chu and Brandon Williamms for CASSANDRA-16695
2021-06-12 13:49:19 -04:00
Benjamin Lerer 24346d1789 Ensure that existing empty rows are properly returned
patch by Benjamin Lerer; reviewed by Caleb Rackliffe for CASSANDRA-16671
2021-06-11 10:31:27 +02:00
Ekaterina Dimitrova a9f472c432 Fix flaky NativeAllocatorTest.testBookKeeping test
patch by Ekaterina Dimitrova; reviewed by Andres de la Pena and Berenguer Blasi for CASSANDRA-16690
2021-06-08 10:57:23 -04:00
Benjamin Lerer 0e1f217079 Invalidate prepared statements on DROP COMPACT
patch by Benjamin Lerer; reviewed by Michael Semb Wever for CASSANDRA-16712
2021-06-04 13:11:48 +02:00
David Capwell 9c50b1f9a1 Failure to execute queries should emit a KPI other than read timeout/unavailable so it can be alerted/tracked
patch by David Capwell; reviewed by Sam Tunnicliffe for CASSANDRA-16581
2021-06-01 20:48:30 -07:00
Andrés de la Peña 844c8b0348 Fix flaky TimeWindowCompactionStrategyTest
patch by Andrés de la Peña; reviewed by Ekaterina Dimitrova for CASSANDRA-16680
2021-06-01 16:23:13 +01:00
Blake Eggleston 5f09226a0d Don't wait on schema versions from replacement target when replacing a node
patch by Blake Eggleston; reviewed by Brandon Williams for CASSANDRA-16692
2021-05-28 15:57:38 -07:00
Andrés de la Peña 269bc5c35b Add CircleCI jobs to repeat upgrade tests n times
patch by Andrés de la Peña; reviewed by Ekaterina Dimitrova for CASSANDRA-16687
2021-05-27 16:30:21 +01:00
David Capwell d2da11d537 StandaloneVerifier does not fail when unable to verify SSTables, it only fails if Corruption is thrown
patch by David Capwell; reviewed by Marcus Eriksson for CASSANDRA-16683
2021-05-21 16:51:47 -07:00
Jaroslaw Grabowski 4e5bd572f4 Bloom false positive rate includes true negatives
Patch by Jaroslaw Grabowski; reviewed by brandonwilliams and paulo for
CASSANDRA-15384

Before this change the bloom filter false positive rate was calculated
without true negatives which resulted in high rates. In an extreme case,
where all queries return no data, the false positive rate could go up to
1.0.

This change includes true negatives in [recent] bloom filter false ratio.
2021-05-18 14:20:26 -05:00
Bereng fdabda1da8 patch by Berenguer Blasi; reviewed by Andrés de la Peña for CASSANDRA-16654
Co-authored-by: Andrés de la Peña <a.penya.garcia@gmail.com>
Co-authored-by: Bereng <berenguerblasi@gmail.com>
2021-05-18 06:36:49 +02:00
Andrés de la Peña a01cbfdce5 Add CircleCI jobs to repeat specific tests n times
patch by Andrés de la Peña; reviewed by Ekaterina Dimitrova and Berenguer Blasi for CASSANDRA-16625
2021-05-12 11:21:41 +01:00
Brandon Williams 4e370c7e88 Ninja: add comments for enums used in serialization 2021-05-06 10:27:46 -05:00
jacek-lewandowski d84c6e9810 Prevent loss of commit log data when moving sstables between nodes
patch by Jakub Zytka and Jacek Lewandowski; reviewed by Branimir Lambov and Benjamin Lerer for CASSANDRA-16619

Add originating host ID to sstable metadata

- md, me sstables
- add missing test cases in MetadataSerializerTest

Co-authored-by: Jakub Zytka <jakub.zytka@datastax.com>
Co-authored-by: Jacek Lewandowski <jacek.lewandowski@datastax.com>
2021-05-05 16:41:01 +02:00
Sam Tunnicliffe 4763d5625a Merge branch 'cassandra-2.2' into cassandra-3.0 2021-04-27 11:56:07 +01:00
Sam Tunnicliffe 26163bb12a Follow up fixes to CASSANDRA-16633
* Don't run rat check if git fails or not available
* Check for presence of rat.txt before running eclipse-warnings task
  (to ensure that the report is always generated by CI runs)

Patch by Sam Tunnicliffe; reviewed by Mick Semb Wever for CASSANDRA-16633
2021-04-27 11:12:07 +01:00
Sam Tunnicliffe ad2f41ef88 Merge branch 'cassandra-2.2' into cassandra-3.0 2021-04-27 09:18:50 +01:00
Sam Tunnicliffe bd270260c8 Only include versioned files in rat-report
Patch by Sam Tunnicliffe; reviewed by Benedict Elliott Smith
and Mick Semb Wever for CASSANDRA-16633
2021-04-27 09:17:56 +01:00
Sam Tunnicliffe 5be6d7e6b1 Only include versioned files in rat-report
Patch by Sam Tunnicliffe; reviewed by Benedict Elliott Smith
and Mick Semb Wever for CASSANDRA-16633
2021-04-27 08:57:50 +01:00
Mitesh e9cf21b3a7 Update README links
Patch by Mitesh Gupta, reviewed by brandonwilliams for CASSANDRA-16631
2021-04-26 08:46:20 -05:00
Brandon Williams 8fd046f255 Ninja fix typo in logging for CASSANDRA-16628 2021-04-23 15:08:22 -05:00