Skip to content

Commit 1e5633f

Browse files
committed
[PYTHON-1140] Update tests/docs to remove read_repair_chance in c* 4.0+
1 parent 4073c0a commit 1e5633f

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Unreleased
44

55
Features
66
--------
7+
* Remove *read_repair_chance table options (PYTHON-1140)
78
89
Bug Fixes
910
---------

docs/api/cassandra/cqlengine/models.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ Model
6464
__options__ = {'compaction': {'class': 'LeveledCompactionStrategy',
6565
'sstable_size_in_mb': '64',
6666
'tombstone_threshold': '.2'},
67-
'read_repair_chance': '0.5',
6867
'comment': 'User data stored here'}
6968
7069
user_id = columns.UUID(primary_key=True)

tests/integration/cqlengine/management/test_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from tests.integration.cqlengine import DEFAULT_KEYSPACE
3434

3535

36-
INCLUDE_REPAIR = not (DSE_VERSION and DSE_VERSION >= Version('6.0.7'))
36+
INCLUDE_REPAIR = not CASSANDRA_VERSION >= Version('4-a') # This should cover DSE 6.0+
3737

3838

3939
class KeyspaceManagementTest(BaseCassEngTestCase):

tests/integration/simulacron/test_empty_column.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ def test_empty_columns_in_system_schema(self):
124124
"caching": {"keys": "ALL", "rows_per_partition": "NONE"},
125125
"comment": "comment",
126126
"gc_grace_seconds": 60000,
127-
"dclocal_read_repair_chance": 0.1,
128-
"read_repair_chance": 0.1,
129127
"keyspace_name": "testks",
130128
"table_name": "testtable",
131129
"columnfamily_name": "testtable", # C* 2.2
@@ -140,8 +138,6 @@ def test_empty_columns_in_system_schema(self):
140138
"caching": "map<ascii, ascii>",
141139
"comment": "ascii",
142140
"gc_grace_seconds": "int",
143-
"dclocal_read_repair_chance": "double",
144-
"read_repair_chance": "double",
145141
"keyspace_name": "ascii",
146142
"table_name": "ascii",
147143
"columnfamily_name": "ascii",

0 commit comments

Comments
 (0)