Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Cassie 4.0 #246

Merged
merged 91 commits into from
May 31, 2021
Merged

Cassie 4.0 #246

merged 91 commits into from
May 31, 2021

Conversation

cscetbon
Copy link
Contributor

@cscetbon cscetbon commented Aug 24, 2020

The goal of this PR is to support Cassandra 4.0. In order to do that the first step was to use datastax/cass-config-builder to generate configuration in order to be able to choose between Cassandra 3.11 and 4.0.
A few PRs/issues were created datastax/cass-config-definitions#20, datastax/cass-config-definitions#23 and datastax/cass-config-definitions#22
A new docker image of Cassandra 4.0 has been created as none was available and it's been updated to 4.0-rc1 See /~https://github.com/docker-library/cassandra/tree/master/4.0.

The Configmap is not supposed to have any other files than pre_run.sh and post_run.sh. Also the configuration is now embedded in the CassandraCluster.Spec object and/or in the Topology at DCs/Racks levels.

Integration tests were ran with that new version, see /~https://github.com/cscetbon/cass-operator-casskop-compat/actions/runs/854966176

@cscetbon cscetbon force-pushed the cassie4 branch 2 times, most recently from 88fd787 to b27794b Compare October 8, 2020 03:29
@cscetbon cscetbon marked this pull request as ready for review May 19, 2021 00:52
@cscetbon cscetbon requested review from PERES-Richard and fdehay May 19, 2021 01:08
Comment on lines -104 to -122
func TestGetNumTokensPerRacks_2DC(t *testing.T) {
assert := assert.New(t)

cc := helperInitCluster(t, "cassandracluster-2DC.yaml")

numTokens := cc.NumTokensPerRacks("online-rack1")
assert.Equal(int32(200), numTokens)

numTokens = cc.NumTokensPerRacks("online-rack2")
assert.Equal(int32(200), numTokens)

numTokens = cc.NumTokensPerRacks("stats-rack1")
assert.Equal(int32(32), numTokens)

numTokens = cc.NumTokensPerRacks("toto-toto")
assert.Equal(int32(256), numTokens)

}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the numToken is now directly in Cassandra's config, there is no way / point to test it through this test ? That's why its only a delete and not a refactor ?

PERES-Richard
PERES-Richard previously approved these changes May 26, 2021
Copy link
Contributor

@PERES-Richard PERES-Richard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except one liners and maybe CRD suggestion, all this is good IMO 😀👌

…ion.md

Co-authored-by: PERES-Richard <43060465+PERES-Richard@users.noreply.github.com>
PERES-Richard
PERES-Richard previously approved these changes May 28, 2021
@cscetbon cscetbon merged commit ab9bec7 into master May 31, 2021
@cscetbon cscetbon deleted the cassie4 branch May 31, 2021 12:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants