Skip to content

Switch tests from SimpleStrategy to NetworkTopologyStrategy #271

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

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

sylwiaszunejko
Copy link
Collaborator

SimpleStrategy is getting depricated, as replacement is it recomended to use NetworkTopologyStrategy instead.

This PR switches tests to use NetworkTopologyStrategy. Tests that are specifically targeting SimpleStrategy stays as they are.

Fixes: #217

SimpleStrategy is getting depricated, as replacement is it recomended to use NetworkTopologyStrategy instead.

This commit switches tests to use NetworkTopologyStrategy. Tests that are specifically targeting SimpleStrategy stays as they are.

Fixes: scylladb#217
@sylwiaszunejko
Copy link
Collaborator Author

I am not sure about the recreate tests, I only change the strategy in testdata/recreate files and used updateGolden option to automatically update golden files but the changes does not seem right https://github.com/scylladb/gocql/blob/master/recreate_test.go#L21
@dkropachev could you look at it? You added this option, maybe there is something I am missing on that part

@dkropachev
Copy link
Collaborator

I am not sure about the recreate tests, I only change the strategy in testdata/recreate files and used updateGolden option to automatically update golden files but the changes does not seem right https://github.com/scylladb/gocql/blob/master/recreate_test.go#L21 @dkropachev could you look at it? You added this option, maybe there is something I am missing on that part

Why you think these changes are wrong ? Sure, there are some difference, but it looks reasonable considering difference between scylla and cassandra implementations.

@sylwiaszunejko
Copy link
Collaborator Author

For example lack of 'replication_factor': '2' in keyspace_golden.cql was something I was not sure about, but I guess 'datacenter1': '2' means that in this dc replication factor is 2, I just wasn't that familiar with this notation

@sylwiaszunejko sylwiaszunejko marked this pull request as ready for review September 24, 2024 12:32
@dkropachev
Copy link
Collaborator

For example lack of 'replication_factor': '2' in keyspace_golden.cql was something I was not sure about, but I guess 'datacenter1': '2' means that in this dc replication factor is 2, I just wasn't that familiar with this notation

Yes, it is also caught my attention, it should not happen, but it is happening not only for recreate tests.
It looks like a bug, we need to dig deeper into it.
Other than that I don't see any other problem there.

Since this potential bug has nothing to do with this PR, I think we can merge this PR and investigate issue later, WDYT ?

@sylwiaszunejko
Copy link
Collaborator Author

For example lack of 'replication_factor': '2' in keyspace_golden.cql was something I was not sure about, but I guess 'datacenter1': '2' means that in this dc replication factor is 2, I just wasn't that familiar with this notation

Yes, it is also caught my attention, it should not happen, but it is happening not only for recreate tests. It looks like a bug, we need to dig deeper into it. Other than that I don't see any other problem there.

Since this potential bug has nothing to do with this PR, I think we can merge this PR and investigate issue later, WDYT ?

OK

@sylwiaszunejko sylwiaszunejko merged commit eaad45e into scylladb:master Sep 24, 2024
1 check passed
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.

Switch tests from SimpleStrategy to NetworkTopologyStrategy
2 participants