Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare SM 3.4.1 release #4153

Merged
merged 6 commits into from
Dec 11, 2024
Merged

Prepare SM 3.4.1 release #4153

merged 6 commits into from
Dec 11, 2024

Conversation

Michal-Leszczynski
Copy link
Collaborator

@Michal-Leszczynski
Copy link
Collaborator Author

This PR is rebased on #4152.

Michal-Leszczynski and others added 6 commits December 11, 2024 10:56
This commit also bumps other patch versions.

(cherry picked from commit bd6d131)
* chore(go.mod): bump go to 1.23.2

* feat(install-dependencies): bump golangci-lint to 1.61.0

It has support for go 1.23.

* chore(linter): replace unused arguments with _

* chore(linter): update linter spec

It refreshes linter configuration by:
- using new config fields
- excluding stale linters
- excluding 'mnd' (magic number detected) - we can consider to re-enable it in the future
- excluding error not checked from CLI

* chore(linter): use canonical header names

* chore(linter): use new for loop syntax

* chore(linter): use safe metrics getters

* chore(linter): improve string formatting

* chore(linter): use named http status codes

* chore(linter): name arguments in interfaces

* chore(linter): allow for fatcontext in scyllaclient

* chore(linter): don't wrap error with no-const string

(cherry picked from commit 18103e0)
* fix: adds SSL_ENABLED flag to start scylla cluster in ssl only mode

This adds SSL_ENABLED flag to Makefile, so that when you run
SSL_ENABLED=true make start-dev-env the scylla cluster will be created
with ssl_only config.

* fix: handle ssl only scylla clusters

This fixes how SM decides which port to use when connecting to Scylla
nodes.

* fix: CQLAddr provides ssl or non-ssl addr depending on cluster conf.

This replaces CQLAddr and CQLSSLAddr with one function which returns
correct cql addr depending on cluster configuration.
Also backup worker is modified a little bit to get cluster configuration
with tls related info.

* fix(Makefile): use yq to produce scylla config with ssl enabled

This uses yq to delete non ssl port from scylla.yaml config and
also merges it with scylla-ssl.yaml which contains requried parameters
to enable ssl in scylla cluster.

* fix: typo in testing/scylla/config/scylla-ssl.yaml

Co-authored-by: karol-kokoszka <[email protected]>

* fix(test): use scylla cluster with SSL for integration tests

This enables ssl only scylla cluster for the most of our integration tests
in ci.
This also fixes cqlping test so it supports a scylla cluster
with ssl.

* fix(cluster): simplifies SingleHostSessionOption when dealing with SSL

This changes the signature of SessionConfigOption so that SingleHostSession func
can be simplified when Scylla cluster uses SSL.

* fix(test): adds ssl support to cqlping integration tests

This adds ssl related configuration options to cqlping integration tests config when ssl
is enabled.

* fix(test): adds ssl support to repair integration test

This adds ssl support to repair integartion test case that uses cqlping

* fix(test): adds ssl support to healthcheck integration tests

* fix(test): unifies how SSL_ENABLED is used in testconfig

* fix(ci): adds missing ssl-enabled option for a one entry in ci config

* refactor: moves parsing of SSL_ENABLED env var to the testconfig pkg

This refactor some parts of the tests that are using SSL_ENABLED env var.

* fix(test): use cqlping with ssl for the restore test of old scylla ver

This fixes how restore integration tests handle old Scylla versions: old versions require a restart after schema restoration.
To ensure Scylla is up and running, the tests perform a CQL ping, which should be initialized correctly when SSL is enabled.

---------

Co-authored-by: karol-kokoszka <[email protected]>
(cherry picked from commit 75fb75c)
…4077)

* fix(cluster): parallelize discovering cluster hosts and make cache update async

Fixes #4074

This PR makes the cluster hosts discovery more robust, as when the cluster.host is DOWN,
it probes all other hosts in parallel and returns response from the fastest one.
Additionally, this PR makes the call to cluster config cache async on updating cluster.

(cherry picked from commit da83642)
…4120)

* fix(rcserver): don't rely on cached bandwidth limit in configguard

Fixes #4119

* refactor(backup): remove unnecessary calls to RcloneSetBandwidthLimit

Setting bandwidth limit should be handled by specific Rclone calls.

(cherry picked from commit d9dde35)
…#4147)

This documents how to prevent interference between restore and backup/repair
tasks.

Fixes: #3742
(cherry picked from commit c12903d)
@Michal-Leszczynski Michal-Leszczynski merged commit 4bfccc2 into branch-3.4 Dec 11, 2024
51 checks passed
@Michal-Leszczynski Michal-Leszczynski deleted the ml/3.4.1 branch December 11, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants