Skip to content

Commit

Permalink
FF moved to yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
bereng committed May 29, 2023
1 parent f9d4ea7 commit 89dda66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ttl_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def _base_expiration_overflow_policy_test(self, default_ttl, policy):
@jira_ticket CASSANDRA-14092 and CASSANDRA-14227
"""
# Post 5.0 TTL may overflow in 2038 (legacy) or 2106 C14227
overflow_policy_applies = "NONE" != os.getenv("cassandra.storage_compatibility_mode", "CASSANDRA_4")\
overflow_policy_applies = "NONE" != self.cluster.nodelist()[0].get_conf_option("storage_compatibility_mode") \
or datetime.date.today().year >= 2086
MAX_TTL = 20 * 365 * 24 * 60 * 60 # 20 years in seconds
default_time_to_live = MAX_TTL if default_ttl else None
Expand Down

0 comments on commit 89dda66

Please sign in to comment.