Skip to content

Conversation

@rkargMsft
Copy link
Contributor

@rkargMsft rkargMsft commented Mar 6, 2025

When large numbers of silos start at the same time, contention on the database can cause many service recycles before being able to start up healthy. This change avoids the Lightweight Transaction (LWT) on creating the table if the table already exists.

Microsoft Reviewers: Open in CodeFlow

@dmorganMsft
Copy link
Contributor

This looks to have solved issues with CREATE TABLE IF NOT EXISTS in our testing!

When large numbers of silos start at the same time, contention on the database can cause many service recycles before being able to start up healthy. This change avoids the Lightweight Transaction (LWT) on creating the table if the table already exists.
It never updates so it doesn't need to initialize it (and it matches prior behavior)
…rrors

It doesn't replicate a multi-datacenter Cassandra cluster but it's about the best we can do in a unit test
@rkargMsft rkargMsft changed the title Addressing contention on startup [Cassandra] Addressing contention on startup Mar 13, 2025
Copy link
Contributor

@dmorganMsft dmorganMsft left a comment

Choose a reason for hiding this comment

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

Would love to see this in the next release!

@ReubenBond ReubenBond merged commit 2f24683 into dotnet:main Mar 21, 2025
24 of 25 checks passed
@rkargMsft rkargMsft deleted the cassandra-table branch March 23, 2025 02:34
@github-actions github-actions bot locked and limited conversation to collaborators Apr 22, 2025
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.

3 participants