Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/topology_experimental_raft: Prevent keyspace creation conflicts …
…with IF NOT EXISTS Background: - Python driver exhibits unexpected behavior causing duplicate keyspace creation attempts (scylladb/python-driver#317) - Existing test cases can fail with cassandra.AlreadyExists exception: ``` cassandra.AlreadyExists: Keyspace 'test_1732631552019_lxagp' already exists ``` Resolution: - Added `IF NOT EXISTS` clause to keyspace and table creation statements - Mitigates potential race conditions during test setup - Aligns with previous mitigation approach in commit 8876b9b Specific Changes: - Ensures safe keyspace creation in concurrent test scenarios - Prevents test failures due to duplicate keyspace generation Fixes scylladb#21701 Signed-off-by: Kefu Chai <[email protected]>
- Loading branch information