Skip to content

Replace SimpleStrategy with NetworkTopologyStrategy#881

Closed
roydahan wants to merge 86 commits into
masterfrom
refactor/replace-simplestrategy-with-nts
Closed

Replace SimpleStrategy with NetworkTopologyStrategy#881
roydahan wants to merge 86 commits into
masterfrom
refactor/replace-simplestrategy-with-nts

Conversation

@roydahan

Copy link
Copy Markdown
Collaborator

Summary

  • Replaced all SimpleStrategy usage with NetworkTopologyStrategy across tests, examples, benchmarks, and cqlengine/management.py (29 files)
  • ScyllaDB has stopped supporting SimpleStrategy; all CREATE KEYSPACE statements now use NetworkTopologyStrategy with replication_factor shorthand
  • Unit tests updated to use NTS objects with dc-based replication options ({'dc1': N} instead of {'replication_factor': N})
  • The SimpleStrategy class in cassandra/metadata.py is preserved for backward compatibility with Cassandra clusters

Bret McGuire and others added 30 commits March 27, 2023 20:22
* update RH nav order

* add line break

* add api
Added error handling blog reference.
absurdfarce and others added 29 commits May 2, 2024 10:14
before this change, when testing with cqlsh, we have warnings like:

```
  <frozen importlib._bootstrap>:488: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
````

in this change, we replace the deprecated API with timezone-aware API,
to avoid this warning.

to keep the backward compatibility, `DateTime.to_python()` still
returns an offset-naive timestamp.

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
…x handling of variable length types (OSS C* 5.0) (apache#1217)
Co-authored-by: Madhavan <msmygit@users.noreply.github.com>
* Run integration tests with HCD 1.0.0

* Apply review comments
… examples, and management code

ScyllaDB has deprecated SimpleStrategy. All CREATE KEYSPACE statements
now use NetworkTopologyStrategy with replication_factor shorthand.
Unit tests updated to use NTS objects with dc-based replication options.
The SimpleStrategy class in cassandra/metadata.py is preserved for
backward compatibility with Cassandra clusters.
@roydahan roydahan closed this May 11, 2026
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.